Template:Examples/doc: Difference between revisions

Everything About Fiction You Never Wanted to Know.
Content added Content deleted
No edit summary
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
: A header for the examples section for use on '''trope pages''' (see the nearly identical {{tl|tropelist}} for use on work pages). This makes a gray box that clearly delineates description from examples listings, and allows use of all of the normal headers for subsections.
: A header for the examples section for use on '''trope pages''' (see the nearly identical {{tl|tropelist}} for use on work pages). This makes a gray box that clearly delineates description from examples listings, and allows use of all of the normal headers for subsections.
; Use
; Use
: Place the template {{tl|examples}} immediately above examples for in a trope list. It will automatically include the name of the trope:
: Place the template {{tl|examples}} immediately above the examples for a trope. It will automatically include the name of the trope:
{{examples}}
{{examples}}
; Options
; Options
; Description
; Description
: Use the <code>art</code> argument (short for "article") to precede the trope name with additional words, namely articles (a, an, the). This is <code><nowiki>{{examples|art=The}}</nowiki></code>:
: Use the <code>art</code> argument (short for "article") to precede the article name with additional words, namely articles (a, an, the). This is <code><nowiki>{{examples|art=The}}</nowiki></code>:
{{examples|art=The}}
{{examples|art=The}}

: Use the <code>pre</code> argument (short for "prefix") to append extra characters to the start of the title. This is <code><nowiki>{{examples|pre=Prefixed-}}</nowiki></code>:
: Use the <code>pre</code> argument (short for "prefix") to append extra characters to the start of the title. This is <code><nowiki>{{examples|pre=Prefixed-}}</nowiki></code>:
{{examples|pre=Prefixed-}}
{{examples|pre=Prefixed-}}

: Use the <code>suf</code> argument (short for "suffix") to append extra characters to the end of the title. This is <code><nowiki>{{examples|suf=ample}}</nowiki></code>:
: Use the <code>suf</code> argument (short for "suffix") to append extra characters to the end of the title. This is <code><nowiki>{{examples|suf=ample}}</nowiki></code>:
{{examples|suf=ample}}
{{examples|suf=ample}}

: Use the <code>page</code> argument to replace the default trope name. This is <code><nowiki>{{examples|page=A Completely Different Trope}}</nowiki></code>:
: Use the <code>page</code> argument to replace the default trope name. This is <code><nowiki>{{examples|page=A Completely Different Trope}}</nowiki></code>:
{{examples|page=A Completely Different Trope}}
{{examples|page=A Completely Different Trope}}

: To provide entirely alternate text, use an unnamed argument, like {{t|examples|I can't believe it's not ''Troper''!}}:
{{examples|I can't believe it's not ''Troper''!}}
: To provide entirely alternate text, use an unnamed argument, like <code><nowiki>{{examples|I can't believe it's not Troper!}}</nowiki></code>:
{{examples|I can't believe it's not Troper!}}


<includeonly>[[Category:ATT Templates]]</includeonly>
<includeonly>[[Category:ATT Templates]]</includeonly>

Latest revision as of 14:30, 18 April 2024

Description
A header for the examples section for use on trope pages (see the nearly identical {{tropelist}} for use on work pages). This makes a gray box that clearly delineates description from examples listings, and allows use of all of the normal headers for subsections.
Use
Place the template {{examples}} immediately above the examples for a trope. It will automatically include the name of the trope:
Examples of Examples/doc include:
Options
Description
Use the art argument (short for "article") to precede the article name with additional words, namely articles (a, an, the). This is {{examples|art=The}}:
Examples of The Examples/doc include:


Use the pre argument (short for "prefix") to append extra characters to the start of the title. This is {{examples|pre=Prefixed-}}:
Examples of Prefixed-Examples/doc include:


Use the suf argument (short for "suffix") to append extra characters to the end of the title. This is {{examples|suf=ample}}:
Examples of Examples/docample include:


Use the page argument to replace the default trope name. This is {{examples|page=A Completely Different Trope}}:
Examples of A Completely Different Trope include:


To provide entirely alternate text, use an unnamed argument, like {{examples|I can't believe it's not Troper!}}:
I can't believe it's not Troper!