Difference between revisions of "Template:Title"
From Nookipedia, the Animal Crossing wiki
Tag: Undo |
m |
||
Line 1: | Line 1: | ||
− | <div style="display:inline; background-color:{{{color|lightgray}}}; padding:1px {{#switch:{{{1|}}}|l|1|left|first=4px 1px 8px|#default=8px 1px 4px}}; {{#switch:{{{1|}}}|l|1|left|first={{roundyleft}}|#default={{roundyright}}}}; width:auto;">{{#if:{{{2|}}}|{{{2|}}}|{{{1|Title}}}}}</div><noinclude> | + | <div style="display:inline; background-color:{{{color|lightgray}}}; padding:1px {{#switch:{{{1|}}}|l|1|left|first=4px 1px 8px|#default=8px 1px 4px}}; {{#switch:{{{1|}}}|l|1|left|first={{roundyleft}}|#default={{roundyright}}}}; width:auto;">{{#if:{{{2|}}}|{{{2|}}}|{{{1|Title}}}}}</div><noinclude><br>{{Documentation}}</noinclude> |
Revision as of 18:59, September 17, 2021
Title
Template documentation (view)
This template accepts two unnamed parameters.
If the first parameter's value is set to 1
, l
, first
, or left
the template will round the left side of a title:
{{title|left|First part}}
→First part
The second parameter's value will be used as the title text unless there is only one parameter. By default, the template will round the right side of a title:
{{title|Second part}}
→Second part
color
parameter. The default color is lightgray. Hex codes will require a leading #.