Template:SameName

From Red Faction Wiki
Revision as of 02:25, 23 February 2024 by SimpleArrows (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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
Type1

Type of SameName being used. Use "single" if there is only one (1) page with the same name. Use "multi" if there are multiple pages with the same name.

Suggested values
single multi
Example
single
Stringrequired
SINGLE: Current Topic // MULTI: Other Page2

SINGLE: 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. // MULTI: Links to the other pages with the same name.

Example
SINGLE: the character // MULTI: [[Assault Rifle (RF2)]], [[Assault Rifle (RF:G)]], or [[Assault Rifle (RF:A)]]
Stringoptional
Other Topic (SINGLE only)3

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
Stringoptional
Other Page (SINGLE only)4

A link to the other page with the same name. Make sure to include any extensions to the name such as parentheses.

Example
[[Parker (Sector)]]
Stringoptional
{{SameName|single|CURRENT_TOPIC|OTHER_TOPIC|OTHER_PAGE_LINKS}}
{{SameName|multi|OTHER_PAGE_LINKS}}

Usage:

{{SameName|single|the character|the sector|[[Parker (Sector)]]}}
{{SameName|multi|[[Assault Rifle (RF2)]], [[Assault Rifle (RF:G)]], or [[Assault Rifle (RF:A)]]}}

Output:

Banner InfoIcon.png This article is about the character. For the sector, see Parker (Sector).
Banner InfoIcon.png For other similarly named articles, see Assault Rifle (RF2), Assault Rifle (RF:G), or Assault Rifle (RF:A).

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|single|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.