Template:Divbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>TheDJ
No edit summary
meta>DMacks
add error-checking of parameters (helps catch lint errors before they occur)
Line 2: Line 2:
  |1 = <!-- not displayed in mainspace -->
  |1 = <!-- not displayed in mainspace -->
  |2 = <div class="boilerplate metadata" {{#if:{{{2|}}}|title="{{{2}}}"|}} style="{{divbox/style/{{{1}}}}};{{#if:{{{radius|}}}|{{border-radius|{{{radius}}}}}|}} padding: 1em;">{{center|<b>{{{2|}}}</b>}}{{{3|}}}</div>
  |2 = <div class="boilerplate metadata" {{#if:{{{2|}}}|title="{{{2}}}"|}} style="{{divbox/style/{{{1}}}}};{{#if:{{{radius|}}}|{{border-radius|{{{radius}}}}}|}} padding: 1em;">{{center|<b>{{{2|}}}</b>}}{{{3|}}}</div>
}}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
}}<includeonly>{{#invoke:TemplatePar
|check
|all= 1= 3=
|opt= 2= radius=
|template=Template:Divbox}}</includeonly><noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>

Revision as of 04:34, 12 August 2017