{{#ifeq:doc |doc
|
{{#ifeq:show |show
| {{#invoke:Message box|mbox}}
}}{{#if: |
| {{#ifexist:Template:Align
| [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
|
}}
}}
|
}}
{{#invoke:High-use|main|1=120520|2=|info=|demo=|form=|expiry=|system=}} {{#invoke:Message box|mbox}} This is a generic template for handling the horizontal alignment of elements on a page. Use the template like this:
{{#Invoke:Template link general|main|code=on}}
Examples[edit]
| main|code=on}} produces this: {{#switch: left |
left = Hello world!
|
right = Hello world!
|
center = Hello world!
|
#default = Error in Template:Align: the alignment setting "left" is invalid.
}} |
| main|code=on}} produces this: {{#switch: right |
left = Hello world!
|
right = Hello world!
|
center = Hello world!
|
#default = Error in Template:Align: the alignment setting "right" is invalid.
}} |
| main|code=on}} produces this: {{#switch: center |
left = Hello world!
|
right = Hello world!
|
center = Hello world!
|
#default = Error in Template:Align: the alignment setting "center" is invalid.
}} |
| main|code=on}} produces this: {{#switch: center |
left = Hello world!
|
right = Hello world!
|
center = Hello world!
|
#default = Error in Template:Align: the alignment setting "center" is invalid.
}} |
See also[edit]
- {{center}}, {{right}}, {{left}} and {{justify}}
- {{center block}}
- {{Image frame}}