Template:Disamb: Difference between revisions
No edit summary |
Tweaking the unnecessarily long documentation |
||
| Line 1: | Line 1: | ||
<includeonly>*'''{{{y|{{{2|????}}}}}}''' — {{{1|}}}</includeonly><noinclude> | <includeonly>*'''{{{y|{{{2|????}}}}}}''' — {{{1|}}}</includeonly><noinclude> | ||
<pre>{{Disamb | |||
|Description (String) | |||
|YEAR #### (if not set '????') | |||
|y=YEAR #### (same as previous) | |||
}} | |||
</pre> | |||
'''Template:Disamb''' is a simple template designed to aid in the layout of [[Project:disambiguation|disambiguation]] pages. | '''Template:Disamb''' is a simple template designed to aid in the layout of [[Project:disambiguation|disambiguation]] pages. | ||
| Line 9: | Line 15: | ||
'''<tt><nowiki>{{</nowiki>disamb<br/> | '''<tt><nowiki>{{</nowiki>disamb<br/> | ||
'''|y=1984<br/> | '''|y=1984<br/> | ||
'''|[[Prowl (G1)|Prowl]] the [[Autobot]] police car (and later [[Maximal]] lion) from [[Generation 1]]<br/> | '''|<nowiki>[[Prowl (G1)|Prowl]] the [[Autobot]] police car (and later [[Maximal]] lion) from [[Generation 1]]</nowiki><br/> | ||
'''}}</tt> | '''}}</tt> | ||
| Line 19: | Line 25: | ||
The year can be set using either through the [[Project:Using Templates|named term]] "y=", or by making the year the ''second'' term. | The year can be set using either through the [[Project:Using Templates|named term]] "y=", or by making the year the ''second'' term. | ||
'''<nowiki>{{</nowiki>disamb |y=YEAR |Character Description }}<br/> | <tt>'''<nowiki>{{</nowiki>disamb |y=YEAR |Character Description }}<br/> | ||
<nowiki>{{</nowiki>disamb |Character Description |YEAR }}<br/> | '''<nowiki>{{</nowiki>disamb |Character Description |YEAR }}<br/> | ||
<nowiki>{{</nowiki>disamb |Character Description |y=YEAR }}</tt>''' | '''<nowiki>{{</nowiki>disamb |Character Description |y=YEAR }}</tt>''' | ||
All 3 formats are functional equivalent. This allows for the quick conversion of un-templated disambig pages (without tracking down years) while also permitting the use of a 'logical' layout with the year in front. (Mimicking layout order.) | All 3 formats are functional equivalent. This allows for the quick conversion of un-templated disambig pages (without tracking down years) while also permitting the use of a 'logical' layout with the year in front. (Mimicking layout order.) | ||
Revision as of 12:02, 4 January 2008
{{Disamb
|Description (String)
|YEAR #### (if not set '????')
|y=YEAR #### (same as previous)
}}
Template:Disamb is a simple template designed to aid in the layout of disambiguation pages.
{{disamb}} creates a listing preceded by the year this character first appeared (making extremely long disambig pages such as Prowl (disambiguation)) easier to navigate.
Example:
{{disamb
|y=1984
|[[Prowl (G1)|Prowl]] the [[Autobot]] police car (and later [[Maximal]] lion) from [[Generation 1]]
}}
- 1984 — Prowl the Autobot police car (and later Maximal lion) from Generation 1
The year can be set using either through the named term "y=", or by making the year the second term.
{{disamb |y=YEAR |Character Description }}
{{disamb |Character Description |YEAR }}
{{disamb |Character Description |y=YEAR }}
All 3 formats are functional equivalent. This allows for the quick conversion of un-templated disambig pages (without tracking down years) while also permitting the use of a 'logical' layout with the year in front. (Mimicking layout order.)
If no year is provided, the template displays ???? in place of a year.
{{disamb |Character Description }}
- ???? — Character Description

