Difference between revisions of "Template:Center"

From Wicri animals
 
Line 1: Line 1:
<div class="wst-center tiInherit {{#if:{{{nomargin|}}}|wst-center-nomargin}} {{#if:{{{class|}}}|{{{class|}}}}}" {{optional style|style={{{style|}}}}}>
+
<includeonly><div class="center" style="width:auto; margin-left:auto; margin-right:auto;{{#if: {{{style|}}} | {{{style}}};}}">{{{1|[[Category:Pages using center with no arguments]]}}}</div></includeonly>{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using center with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Center]] with unknown parameter "_VALUE_"|ignoreblank=y| 1 | style }}<noinclude>
{{{text|{{{1|}}}}}}
 
</div>{{#if:{{{text|{{{1|}}}}}}||{{category handler
 
| 1 = [[Category:Pages using center with no text argument]]
 
| main = 1
 
| page = 1
 
| translation = 1
 
| wikisource = 1
 
| nocat = {{{nocat|}}}
 
}}}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 +
<!-- Add categories to the /doc subpage, interwikis to Wikidata, not here -->
 
</noinclude>
 
</noinclude>

Latest revision as of 09:13, 11 January 2024

Template documentation[create]