Template:Align: Difference between revisions

Template page
(Created page with "{{#switch: {{lc:{{{1|center}}}}} |left = <div style="float: left;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div> |right = <div style="float: right;{{#if: {{{style|}}} | {{...")
 
No edit summary
 
Line 1: Line 1:
{{#switch: {{lc:{{{1|center}}}}}
<includeonly>{{#switch: {{lc:{{{1|center}}}}}
|left = <div style="float: left;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|left = <div style="float: left;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|right = <div style="float: right;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|right = <div style="float: right;{{#if: {{{style|}}} | {{{style}}};}}">{{{2}}}</div>
|center = {{center|{{{2}}}|style={{{style|}}} }}
|center = {{center|{{{2}}}|style={{{style|}}} }}
|#default = Error in [[Template:Align]]: the alignment setting "{{{1}}}" is invalid.
|#default = Error in [[Template:Align]]: the alignment setting "{{{1}}}" is invalid.
}}
}}</includeonly>
<noinclude>Usage:</br>
<nowiki>{{align|left|Example text}}</nowiki></br>
<nowiki>{{align|center|Example text}}</nowiki></br>
<nowiki>{{align|right|Example text}}</nowiki></br>
Produces:</br>
{{align|left|Example text}}</br>
{{align|center|Example text}}</br>
{{align|right|Example text}}
</noinclude>

Latest revision as of 05:05, 25 November 2020

Usage:
{{align|left|Example text}}
{{align|center|Example text}}
{{align|right|Example text}}
Produces:

Example text


Example text


Example text