Template:Divbox: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>DMacks
add error-checking of parameters (helps catch lint errors before they occur)
Ookami (talk | contribs)
m 125 revisions imported
 
(12 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{{main other
<templatestyles src="Divbox/styles.css" />{{main other
  |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="metadata divbox divbox-{{{1|}}}" {{#if:{{{2|}}}|title="{{{2}}}"}} {{#if:{{{radius|}}}|style="border-radius:{{{radius}}};"}}><div class="divbox-heading">{{{2|}}}</div>{{{3|}}}</div>{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using divbox with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Divbox]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | 2 | 3 | radius }}
}}<includeonly>{{#invoke:TemplatePar
}}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude>
|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>

Latest revision as of 01:06, 3 September 2020