All The Tropes:Our Custom Templates: Difference between revisions

Content added Content deleted
m (tweak layout)
(added footnote)
Line 9: Line 9:
The following is a list of many of the templates All The Tropes uses to simplify and streamline the process of creating pages. Whenever the template is in blue text, that means it is a live link to the template or its documentation page, which should provide more information about what it does and how to use it. This is, by the way, only a small subset of all the templates available on the wiki; in addition to others we've created, we have also imported a couple thousand more from Wikipedia.
The following is a list of many of the templates All The Tropes uses to simplify and streamline the process of creating pages. Whenever the template is in blue text, that means it is a live link to the template or its documentation page, which should provide more information about what it does and how to use it. This is, by the way, only a small subset of all the templates available on the wiki; in addition to others we've created, we have also imported a couple thousand more from Wikipedia.


Be aware that template names are case-sensitive: <code><nowiki>{{Work Needs Tropes}}</nowiki></code> if you use <code><nowiki>{{work needs tropes}}</nowiki></code> are not the same template and may do different things. The only exception is, as is standard throughout MediaWiki, the first letter, which can be upper or lower case: <code><nowiki>{{Trope}}</nowiki></code> and <code><nowiki>{{trope}}</nowiki></code> both point at the same template. Pay attention to how the templates are capitalized on this page and you should be okay.
Be aware that template names are case-sensitive: <code><nowiki>{{Work Needs Tropes}}</nowiki></code> and <code><nowiki>{{work needs tropes}}</nowiki></code> are ''not'' the same template and may do different things.<ref>Case in point: for several years after the creation of the wiki, we had both <code><nowiki>{{Unmarked Spoilers}}</nowiki></code> and <code><nowiki>{{Unmarked spoilers}}</nowiki></code>, which displayed different banners with different markups.</ref> The only exception is, as is standard throughout MediaWiki, the first letter, which can be upper or lower case: <code><nowiki>{{Trope}}</nowiki></code> and <code><nowiki>{{trope}}</nowiki></code> both point at the same template. Pay attention to how the templates are capitalized on this page and you should be okay.


Parameters are added using vertical bars ("|") to separate them from the template name itself, and from each other: <code><nowiki>{{template|parameter1|parameter2}}</nowiki></code>
Parameters are added using vertical bars ("|") to separate them from the template name itself, and from each other: <code><nowiki>{{template|parameter1|parameter2}}</nowiki></code>
Line 298: Line 298:
:Inserts the name of the ultimate parent of the current page. For instance, if the current page is RWBY/Recap/Trailers/P1 Red Trailer, it will display <code>RWBY</code>.
:Inserts the name of the ultimate parent of the current page. For instance, if the current page is RWBY/Recap/Trailers/P1 Red Trailer, it will display <code>RWBY</code>.


{{reflist}}


[[Category:{{PAGENAME}}]]
[[Category:{{PAGENAME}}]]