Template:SeeWikipedia: Difference between revisions

From Red Faction Wiki
No edit summary
No edit summary
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
<includeonly>{{Banner|SeeWikipedia|caption_override=There is real world information on this subject on Wikipedia: '''[[Wikipedia:{{{1|{{PAGENAME}}}}}|{{{2|{{PAGENAME}}}}}]]'''.}}</includeonly><noinclude>[[Category:Banner Templates]]
<includeonly>{{Banner|Wikipedia|caption_override=There is additional information on this subject on Wikipedia: {{#if: {{{2|}}} | '''[[Wikipedia:{{{1| {{PAGENAME}} }}}|{{{2}}}]]''' | '''[[Wikipedia:{{{1| {{PAGENAME}} }}}|{{{1|{{PAGENAME}}}}}]]'''}}.
}}</includeonly><noinclude>[[Category:Banner Templates]]
<templatedata>
<templatedata>
{
{
Line 7: Line 8:
"description": "The Wikipedia page that relates to the same subject as the current page.",
"description": "The Wikipedia page that relates to the same subject as the current page.",
"type": "wiki-page-name",
"type": "wiki-page-name",
"required": true,
"example": "Volition (company)"
"example": "Volition (company)"
},
},
"2": {
"2": {
"label": "Display Label",
"label": "Display Label",
"description": "A display name of the linked Wikipedia page, usually a shortened version of the linked page or the name of the current page.",
"description": "A display name of the linked Wikipedia page, usually a shortened version of the linked page or the name of the current page. Don't use unless absolutely necessary.",
"example": "Volition",
"example": "Volition",
"type": "string",
"type": "string"
"suggested": true
}
}
},
},
Line 24: Line 23:
<pre>{{SeeWikipedia|WIKIPEDIA_PAGE|DISPLAY_LABEL}}</pre>
<pre>{{SeeWikipedia|WIKIPEDIA_PAGE|DISPLAY_LABEL}}</pre>
'''Usage:'''
'''Usage:'''
<pre>{{SeeWikipedia|Volition (company)|Volition}}</pre>
<pre>{{SeeWikipedia|Volition (company)}}</pre>
'''Output:'''
'''Output:'''
{{SeeWikipedia|Volition (company)|Volition}}
{{SeeWikipedia|Volition (company)}}





Latest revision as of 01:34, 8 July 2024

Creates a banner at the top of the page to show that a subject has more info on Wikipedia.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Wikipedia Page1

The Wikipedia page that relates to the same subject as the current page.

Example
Volition (company)
Page nameoptional
Display Label2

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

Example
Volition
Stringoptional
{{SeeWikipedia|WIKIPEDIA_PAGE|DISPLAY_LABEL}}

Usage:

{{SeeWikipedia|Volition (company)}}

Output:


Other Cases:

When a page on the Red Faction Wiki has the same name as on Wikipedia, you can use the template without any parameters, for example:

{{SeeWikipedia}}