Difference between revisions of "Template:TSTOtable"
Wikisimpsons - The Simpsons Wiki
m |
|||
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
{{TB|{{{2}}}}} | {{TB|{{{2}}}}} | ||
{{#switch: {{{more|1}}}|1={{TB|{{{3}}}}}|2={{TRs|{{{3}}}|{{{q|}}}}}|3=}} | {{#switch: {{{more|1}}}|1={{TB|{{{3}}}}}|2={{TRs|{{{3}}}|{{{q|}}}}}|3=}} | ||
− | {{#switch: {{{moreT|1}}}|1={{TB|{{{4}}}}}|2={{TRs|{{{4}}}|{{{q1|}}}}}|3=}} | + | {{#switch: {{{deco|no}}} |
− | {{TB|{{{5}}}}} | + | |no={{#switch: {{{moreT|1}}}|1={{TB|{{{4}}}}}|2={{TRs|{{{4}}}|{{{q1|}}}}}|3=}} |
+ | {{TB|{{{5}}}}}}} | ||
{{#switch: {{{moreN|1}}}|1={{TB|{{{6}}}}}|2={{TRs|{{{6}}}|{{{q2|}}}}}|3=}}<noinclude> | {{#switch: {{{moreN|1}}}|1={{TB|{{{6}}}}}|2={{TRs|{{{6}}}|{{{q2|}}}}}|3=}}<noinclude> | ||
}} | }} | ||
+ | == Usage == | ||
+ | <pre>{{TSTOtable|<1>|<2>|<3>|<4>|<5>|<6>|<options>}}</pre> | ||
+ | *<1> --> Name of the file (without "File:" and ".png") | ||
+ | *<2> --> Name of the building/decoration | ||
+ | *<3> --> Cost of the building/decoration | ||
+ | *<4> --> Building time (leave blank for decorations) | ||
+ | *<5> --> Task (leave blank for decorations) | ||
+ | *<6> --> Notes | ||
+ | *<options> --> Options include: | ||
+ | **'''"size=Npx"''', where "N" is a number --> change the size of the image (100px is default size) | ||
+ | **'''"deco=yes"''' --> for decorations only | ||
+ | **'''"more=2"''' --> To have "<code><nowiki>{{TRs|cost|q}}</nowiki></code>", where "q" should be specified as the option '''"q=n"''', where "n" is a number. The following "n-1" rows should have the option '''"more=3"'''. | ||
+ | **'''"moreT=2"''' --> To have "<code><nowiki>{{TRs|building time|q1}}</nowiki></code>", where "q1" should be specified as the option '''"q1=n"''', where "n" is a number. The following "n-1" rows should have the option '''"moreT=3"'''. | ||
+ | **'''"moreN=2"''' --> To have "<code><nowiki>{{TRs|notes|q2}}</nowiki></code>", where "q2" should be specified as the option '''"q2=n"''', where "n" is a number. The following "n-1" rows should have the option '''"moreN=3"'''. | ||
+ | |||
</noinclude><noinclude>[[Category:Templates]]</noinclude> | </noinclude><noinclude>[[Category:Templates]]</noinclude> |
Latest revision as of 11:25, January 3, 2018
|
Usage[edit]
{{TSTOtable|<1>|<2>|<3>|<4>|<5>|<6>|<options>}}
- <1> --> Name of the file (without "File:" and ".png")
- <2> --> Name of the building/decoration
- <3> --> Cost of the building/decoration
- <4> --> Building time (leave blank for decorations)
- <5> --> Task (leave blank for decorations)
- <6> --> Notes
- <options> --> Options include:
- "size=Npx", where "N" is a number --> change the size of the image (100px is default size)
- "deco=yes" --> for decorations only
- "more=2" --> To have "
{{TRs|cost|q}}
", where "q" should be specified as the option "q=n", where "n" is a number. The following "n-1" rows should have the option "more=3". - "moreT=2" --> To have "
{{TRs|building time|q1}}
", where "q1" should be specified as the option "q1=n", where "n" is a number. The following "n-1" rows should have the option "moreT=3". - "moreN=2" --> To have "
{{TRs|notes|q2}}
", where "q2" should be specified as the option "q2=n", where "n" is a number. The following "n-1" rows should have the option "moreN=3".