Template:SameName

From Red Faction Wiki
Revision as of 14:10, 7 February 2024 by SimpleArrows (talk | contribs)

Creates text to show there is another page with the same name, although different topics. Place this at the top of the page, under any infoboxes or BubbleNav templates.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Current Topic1

The topic of the current page. It is advised to use "the" before writing the topic unless there is a case it isn't needed.

Example
the character
Stringrequired
Other Topic2

The topic of the other page with the same name. If the topic has multiple pages, use (for example) "other games" for this parameter.

Example
the sector
Stringrequired
Other Page Name(s)3

The name(s) of the other page(s). Make sure to include any extensions to the name such as parentheses.

Example
[[Parker (Sector)]]
Page namerequired
{{SameName|CURRENT_TOPIC|OTHER_TOPIC|OTHER_PAGE_NAMES}}

Usage:

{{SameName|the character|the sector|[[Parker (Sector)]]}}

Output:

Banner InfoIcon.png This article is about the character. For the sector, see Parker (Sector).


Multiple pages:

If there are multiple pages with the same name, follow this example:

{{SameName|the weapon in [[Red Faction: Armageddon]]|other games|[[Assault Rifle]], [[Assault Rifle (RF2)]], or [[Assault Rifle (RF:G)]]}}
Banner InfoIcon.png This article is about the weapon in Red Faction: Armageddon. For other games, see Assault Rifle, Assault Rifle (RF2), or Assault Rifle (RF:G).


Linking a section from a page:

If the other topic is within a section under a heading, you can add a hashtag and the name of the heading in front of the page's name, for example:

{{SameName|the character|the sector|[[Parker (Sector)#Background|Parker (Sector)]]}}
Banner InfoIcon.png This article is about the character. For the sector, see Parker (Sector).

Be sure to use the display label parameter to make the link appear as the page name.