Jump to content

Template:CreditWikipedia: Difference between revisions

From Red Faction Wiki
Created page with "{| style="margin: -1px 10% 0px; background-color: #F8F8F8; border: 1px solid #E0E0E0;" |- | style="padding: 2px 0 2px 2px" | 35px | style="paddi..."
 
No edit summary
 
(4 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=This page uses content from {{#if: {{{2|}}} | '''[[Wikipedia:{{{1| {{PAGENAME}} }}}|{{{2}}}]]''' | '''[[Wikipedia:{{{1| {{PAGENAME}} }}}|{{{1|{{PAGENAME}}}}}]]'''}} on [[Wikipedia:Main Page|Wikipedia]], which is available under the GNU Free Documentation License.}}</includeonly><noinclude>[[Category:Banner Templates]]
|-
<templatedata>
| style="padding: 2px 0 2px 2px" | [[File:Wikipedia-logo-1-.png|35px]]
{
| style="padding: 0.25em 0.5em; width: 100%;" | This page uses content from [[Wikipedia:Main Page|Wikipedia]]. The original article was '''[[Wikipedia:{{{1|{{PAGENAME}}}}}|{{{1|{{PAGENAME}}}}}]]'''.
"params": {
|}
"1": {
<noinclude>
"label": "Wikipedia Page",
[[Category:Banner Templates]]
"description": "The Wikipedia page that the current page uses information from.",
</noinclude>
"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 there is information on the page that has been taken from a Wikipedia article.",
"format": "inline"
}
</templatedata>
<pre>{{CreditWikipedia|WIKIPEDIA_PAGE|DISPLAY_LABEL}}</pre>
'''Usage:'''
<pre>{{CreditWikipedia|Volition (company)}}</pre>
'''Output:'''
{{CreditWikipedia|Volition (company)}}
 
 
'''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:
<pre>{{CreditWikipedia}}</pre>
{{CreditWikipedia}}
</pre></noinclude>

Latest revision as of 05:03, 29 January 2024

Creates a banner at the top of the page to show that there is information on the page that has been taken from a Wikipedia article.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Wikipedia Page1

The Wikipedia page that the current page uses information from.

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
{{CreditWikipedia|WIKIPEDIA_PAGE|DISPLAY_LABEL}}

Usage:

{{CreditWikipedia|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:

{{CreditWikipedia}}