• New article from the Springfield Shopper: A Sneak Peek for “Treehouse of Horror Presents: Simpsons Wicked This Way Comes” has been released!
  • New article from the Springfield Shopper: Season 36 News: Even more Preview Images for “O C’mon All Ye Faithful” have been released!
  • New article from the Springfield Shopper: Season 36 News: The stories which the segments of “Simpsons Wicked This Way Comes” are based of have been announced!
  • Wikisimpsons needs more Featured Article, Picture, Quote, Episode and Comprehensive article nominations!
  • Wikisimpsons has a Discord server! Click here for your invite! Join to talk about the wiki, Simpsons and Tapped Out news, or just to talk to other users.
  • Make an account! It's easy, free, and your work on the wiki can be attributed to you.
TwitterFacebookDiscord

Difference between revisions of "Template:T"

Wikisimpsons - The Simpsons Wiki
(new)
 
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Parameter piece for {{t|t}}, controls styling/showing of parameter fragments.
+
A template link with a variable number of parameters (0-20).
  
Template (invisible by design):
+
Use:
:<onlyinclude>{{#ifeq: {{{1|---}}}|---||&#124;<font color="gray">''&lt;{{{1}}}&gt;''</font>}}</onlyinclude>
+
:{{t|t|parameter1|parameter2|parameter3|parameter4|...|parameter20}} <!-- self-referential examples! -->
  
<!--[[Category:General wiki templates|Template link parameter piece]]-->
+
Template:
 +
:<onlyinclude><nowiki>{{</nowiki>[[{{#ifeq:{{#sub:{{{1}}}|0|1}}|:|{{#sub:{{{1}}}|1}}{{!}}{{{1}}}|Template:{{{1}}}{{!}}{{{1}}}}}]]{{t/piece|{{{2|---}}}}}{{t/piece|{{{3|---}}}}}{{t/piece|{{{4|---}}}}}{{t/piece|{{{5|---}}}}}{{t/piece|{{{6|---}}}}}{{t/piece|{{{7|---}}}}}{{t/piece|{{{8|---}}}}}{{t/piece|{{{9|---}}}}}{{t/piece|{{{10|---}}}}}{{t/piece|{{{11|---}}}}}{{t/piece|{{{12|---}}}}}{{t/piece|{{{13|---}}}}}{{t/piece|{{{14|---}}}}}{{t/piece|{{{15|---}}}}}{{t/piece|{{{16|---}}}}}{{t/piece|{{{17|---}}}}}{{t/piece|{{{18|---}}}}}{{t/piece|{{{19|---}}}}}{{t/piece|{{{20|---}}}}}{{t/piece|{{{21|---}}}}}<nowiki>}}</nowiki></onlyinclude>
 +
 
 +
<!--[[Category:General wiki templates|Template link]]-->
 +
<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 17:30, February 21, 2021

A template link with a variable number of parameters (0-20).

Use:

{{t|<parameter1>|<parameter2>|<parameter3>|<parameter4>|<...>|<parameter20>}}

Template:

{{[[Template:{{{1}}}|{{{1}}}]]}}