Template:Disamb: Difference between revisions

From Simulacrum Wiki
Jump to navigation Jump to search
m (1 revision imported)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
__NOTOC__
__NOTOC__
==Description==
==Description==
'''<tt><nowiki>{{</nowiki>disamb}}</tt>''' is a simple template used in [[Help:Disambiguation|disambiguation]] articles. It creates a listing preceded by the ''year this character first appeared'', making extremely long disambig pages such as [[Prowl (disambiguation)]] easier to navigate. It should only be used when listing fictional appearances. Real world entities should use a simple bulletpoint.
'''<tt><nowiki>{{</nowiki>disamb}}</tt>''' is a simple template used in [[Help:Disambiguation|disambiguation]] articles. It creates a listing preceded by the ''year this character first appeared'', making extremely long disambig pages easier to navigate. It should only be used when listing fictional appearances. Real world entities should use a simple bulletpoint.
==Usage==
==Usage==
===Parameters===
===Parameters===

Latest revision as of 19:38, 15 August 2023


Description

{{disamb}} is a simple template used in disambiguation articles. It creates a listing preceded by the year this character first appeared, making extremely long disambig pages easier to navigate. It should only be used when listing fictional appearances. Real world entities should use a simple bulletpoint.

Usage

Parameters

Required

The first parameter of this template is an anonymous one that represents the main text of the bulletpoint. This should always be provided.

Optional

Optionally, a year can be provided. The year can be set using either through the named parameter "y=", or by making the year the second parameter.

{{disamb |y=YEAR |Character Description }}
{{disamb |Character Description |YEAR }}
{{disamb |Character Description |y=YEAR }}

The 3 above formats are functionally equivalent. This allows for the easy 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.

Code

{{Disamb
|Description (String)
|YEAR #### (if not set '????')
|y=YEAR #### (same as previous)
}}

Examples

Code

{{disamb|y=[[2001]]|[[Wind Sheer (RID)|Wind Sheer]], the [[Decepticon]] jet from the 2001 ''[[Transformers: Robots in Disguise (2001 franchise)|Robots in Disguise]]'' franchise.}}

Result

Code

{{disamb|[[Wind Sheer (RID)|Wind Sheer]], the [[Decepticon]] jet from the 2001 ''[[Transformers: Robots in Disguise (2001 franchise)|Robots in Disguise]]'' franchise.|2001}}

Result

Code

{{disamb|[[Wind Sheer (RID)|Wind Sheer]], the [[Decepticon]] jet from the 2001 ''[[Transformers: Robots in Disguise (2001 franchise)|Robots in Disguise]]'' franchise.}}

Result