Template:SameName: Difference between revisions

From Red Faction Wiki
(Created page with "<includeonly>:: 17px|link= ''This article is about {{{1}}}. For {{{2}}}, see [[{{{3}}}{{#if: {{{4|}}}|{{!}}{{{4}}} }}]].''</includeonly><noinclude>Category:Banner Templates <templatedata> { "params": { "1": { "label": "Current Topic", "description": "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.", "type": "string", "example": "the character", "r...")
 
mNo edit summary
Line 1: Line 1:
<includeonly>:: [[File:Icon_Document.png|17px|link=]] ''This article is about {{{1}}}. For {{{2}}}, see [[{{{3}}}{{#if: {{{4|}}}|{{!}}{{{4}}} }}]].''</includeonly><noinclude>[[Category:Banner Templates]]
<includeonly>:: [[File:Banner InfoIcon.png|17px|link=]] ''This article is about {{{1}}}. For {{{2}}}, see [[{{{3}}}{{#if: {{{4|}}}|{{!}}{{{4}}} }}]].''</includeonly><noinclude>[[Category:Banner Templates]]
<templatedata>
<templatedata>
{
{

Revision as of 15:30, 1 February 2024

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

Template parameters

This template prefers block 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. It is advised to use "the" before writing the topic unless there is a case it isn't needed.

Example
the sector
Stringrequired
Other Page Name3

The name of the other page. Make sure to include any extra parts of the name such as parentheses.

Example
Parker (Sector)
Page namerequired
Display Label4

A display name of the linked page, usually a shortened version of the linked page or the name of the current page. Don't use unless absolutely necessary.

Stringoptional
{{SameName|CURRENT_TOPIC|OTHER_TOPIC|OTHER_PAGE_NAME|DISPLAY_LABEL}}

Usage:

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

Output:

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


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.