Jump to content

Template:SeeWikipedia: Difference between revisions

From Red Faction Wiki
No edit summary
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| style="margin: -1px 10% 0px; background-color: #F8F8F8; border: 1px solid #E0E0E0;"
<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]]
| style="padding: 2px 0 2px 2px" | [[File:Wikipedia-logo-1-.png|35px]]
<templatedata>
| style="padding: 0.25em 0.5em; width: 100%;" | There is more information available on this subject on Wikipedia: '''[[Wikipedia:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]'''.
{
|}<noinclude>
"params": {
Use this to show that a subject has more info at Wikipedia. To supply an alternate Wiki page, use the first parameter.
"1": {
"label": "Wikipedia Page",
"description": "The Wikipedia page that relates to the same subject as the current page.",
"type": "wiki-page-name",
"example": "Volition (company)"
},
"2": {
"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. Don't use unless absolutely necessary.",
"example": "Volition",
"type": "string"
}
},
"description": "Creates a banner at the top of the page to show that a subject has more info on Wikipedia.",
"format": "inline"
}
</templatedata>
<pre>{{SeeWikipedia|WIKIPEDIA_PAGE|DISPLAY_LABEL}}</pre>
'''Usage:'''
<pre>{{SeeWikipedia|Volition (company)}}</pre>
'''Output:'''
{{SeeWikipedia|Volition (company)}}


'''Usage:'''<pre>
{{SeeWikipedia}} (same page name)
{{SeeWikipedia|Mars}} (specify different page name)
</pre>


[[Category:Banner Templates]]
'''Other Cases:'''
</noinclude>
 
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:
<pre>{{SeeWikipedia}}</pre>
{{SeeWikipedia}}
</pre></noinclude>

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[Edit template data]

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}}