Template:Disamb

From Simulacrum Wiki
Revision as of 12:20, 12 March 2023 by Revo admin (talk | contribs) (1 revision imported)
Jump to navigation Jump to search


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 such as Prowl (disambiguation) 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