Template:CreditWikipedia: Difference between revisions
No edit summary |
SimpleArrows (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{| | <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> | ||
{ | |||
| | "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 the page's information is used 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> |
Revision as of 05:02, 29 January 2024
Creates a banner at the top of the page to show that the page's information is used from a Wikipedia article.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Wikipedia Page | 1 | The Wikipedia page that the current page uses information from.
| Page name | optional |
Display Label | 2 | 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.
| String | optional |
{{CreditWikipedia|WIKIPEDIA_PAGE|DISPLAY_LABEL}}
Usage:
{{CreditWikipedia|Volition (company)}}
Output:
This page uses content from Volition (company) on Wikipedia, which is available under the GNU Free Documentation License. |
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}}
This page uses content from CreditWikipedia on Wikipedia, which is available under the GNU Free Documentation License. |