Difference between revisions of "Template:Datum/sandbox"
Jump to navigation
Jump to search
Sideriver81 (talk | contribs) (Created page with "<includeonly ><div class="databox-datum" ><div style="display:inline-block; width: 50%;" >{{{1}}}</div ><div style="display:inline-block; width: 50%" >{{...") |
Sideriver81 (talk | contribs) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly | + | <includeonly><div class="databox-datum"><div style="display:inline-block; width: 50%;">{{{1}}}</div><div style="display:inline-block; width: 50%">{{#ifeq:{{{2|}}}|{{{3|}}}|<span style="color:#005900;">{{{2|}}}</span>|{{{2|}}} }}</div></div></includeonly><noinclude> |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | ></includeonly><noinclude> | ||
Utility template for making a line-item in a [[Template:Databox]]. | Utility template for making a line-item in a [[Template:Databox]]. | ||
First argument is the left-hand side label. Second argument is the right-hand side value. Third argument is the default value. If the value is equal to its default, it will be shown in dark green. | First argument is the left-hand side label. Second argument is the right-hand side value. Third argument is the default value. If the value is equal to its default, it will be shown in dark green. | ||
== Example == | == Example == | ||
− | {{Databox|content= | + | {{Databox/sandbox|content= |
− | {{Datum|Rating|6}} | + | {{Datum/sandbox|Rating|6}} |
− | {{Datum|Rating|0|0}} | + | {{Datum/sandbox|Rating|0|0}} |
}} | }} | ||
<nowiki> | <nowiki> | ||
− | {{Databox|content= | + | {{Databox/sandbox|content= |
− | {{Datum|Rating|6}} | + | {{Datum/sandbox|Rating|6}} |
− | {{Datum|Rating|0|0}} | + | {{Datum/sandbox|Rating|0|0}} |
}} | }} | ||
</nowiki> | </nowiki> | ||
[[Category:Template sandboxes]] | [[Category:Template sandboxes]] | ||
</noinclude> | </noinclude> |
Latest revision as of 06:42, 1 January 2020
Utility template for making a line-item in a Template:Databox.
First argument is the left-hand side label. Second argument is the right-hand side value. Third argument is the default value. If the value is equal to its default, it will be shown in dark green.
Example
/Data/
Rating
6
Rating
0
X
{{Databox/sandbox|content= {{Datum/sandbox|Rating|6}} {{Datum/sandbox|Rating|0|0}} }}