Difference between revisions of "Template:Title"

From Nookipedia, the Animal Crossing wiki
m (Testing inline-block)
m (Undo revision 622843 by Sunmarsh (talk))
Tag: Undo
Line 1: Line 1:
<div style="display:inline-block; background-color:{{{color|lightgray}}}; padding:0px {{#switch:{{{1|}}}|l|1|left|first=4px 0px 8px|#default=8px 0px 4px}}; {{#switch:{{{1|}}}|l|1|left|first={{roundyleft}}|#default={{roundyright}}}}; width:auto;">{{#if:{{{2|}}}|{{{2|}}}|{{{1|Title}}}}}</div><noinclude>{{clear}}{{Documentation}}</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>{{clear}}{{Documentation}}</noinclude>

Revision as of 18:50, 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
The color of the title can be changed using the color parameter. The default color is lightgray. Hex codes will require a leading #.