Template:Warning: Difference between revisions

make |align= work as it normally does in other templates
m (1 revision imported: Templates)
(make |align= work as it normally does in other templates)
Line 1:
{{ mboxMbox
| typename = contentWarning
| demospace = {{{demospace|}}}
| type = content
| imagestyle = {{#if:{{{imagestyle|}}}| [[Image|{{#if:{{{imagesmall|}}}|40px|Warning]]margin:inherit auto;width:80%;}} {{{style}}} }}
| subst = <includeonly>{{subst:substcheck}}</includeonly>
| textstyle = {{{align|text-align: center;}}}
| type = content
| text = {{#if:{{{header|}}}|<div style="text-align: center">'''{{{header}}}'''</div>}}{{{text|{{{1}}}}}}
| image = {{#if:{{{image|}}}| [[File:{{{image}}}|40px|Warning]] }}
 
| small = {{{small|}}}
}}<noinclude>{{Documentation}}<!-- Add categories and interwikis to the /doc sub-page --></noinclude>
| smallimage = {{#if:{{{image|}}}| [[File:{{{image}}}|30px|Warning]]}}
| imageright = {{#if:{{{imageright|}}} |{{{imageright}}} |{{#if:{{{shortcut|{{{shortcut1|}}}}}} |{{Ombox/shortcut|{{{shortcut|{{{shortcut1|}}}}}}|{{{shortcut2|}}}|{{{shortcut3|}}}|{{{shortcut4|}}}|{{{shortcut5|}}}}}}} }}
| textstyle = {{{aligntextstyle|text-align: {{#if:{{{center|}}}|center|{{{align|left}}}}};}}}}
| text = {{#if:{{{header|{{{heading|{{{title|}}}}}}}}} |<div style="{{{headstyle|text-align: {{#if:{{{center|}}}|center|left}};}}}">'''{{{header}}}'''</div>}}|{{{textheading|{{{1title|}}}}}}}}}'''</div>}}<!--
-->{{{text|{{{content|{{{reason|{{{1}}}}}}}}}}}}
}}<noinclude>
<!-- Add categories to the /doc subpage; interwikis go to Wikidata. -->
{{Documentation}}
</noinclude>
Anonymous user