Template:Gamepage/doc: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}


This is a link shortcut template to link to game-specific versions of pages. Typically you will want to use one of the shortcuts to it, <span class="plainlinks">[{{fullurl:Special:WhatLinksHere|target=Template:Gamepage&namespace=10}} listed here]</span>.
This is a link shortcut template to link to game-specific versions of pages. Typically you will want to use one of the shortcuts to it, [{{fullurl:Special:WhatLinksHere|target=Template:Gamepage&namespace=10}} listed here].


If you don't need to hide or change the " in <game>" part, just use a regular wikitext link.
If you don't need to hide or change the " in <game>" / " (game)" part, you can just use a regular wikitext link.
 
To document a shortcut to this template, use [[Template:Gamepage/shortcut doc]].


==Parameters==
==Parameters==
Line 9: Line 11:
*(optional) Second unnamed parameter: what to display as the text of the link. Defaults to the first parameter.
*(optional) Second unnamed parameter: what to display as the text of the link. Defaults to the first parameter.
*game: The full name of the game. (Can be obtained with {{t|abbrgame}} if needed.)
*game: The full name of the game. (Can be obtained with {{t|abbrgame}} if needed.)
*p: Define this parameter to link to "X (Game Name)" instead of "X in Game Name".


==Example==
==Example==
*<code><nowiki>{{gamepage|Lord of Darkness|game=Cyber Nations}}</nowiki></code> produces: {{gamepage|Lord of Darkness|game=Cyber Nations}} (note: {{t|CN}} should be used in this case)
Note that {{t|CN}} should be used instead in actual use of these cases.
*<code><nowiki>{{gamepage|Lord of Darkness|game=Cyber Nations}}</nowiki></code> produces: {{gamepage|Lord of Darkness|game=Cyber Nations}}
*<code><nowiki>{{gamepage|New Pacific Order|game=Cyber Nations|p=x}}</nowiki></code> produces: {{gamepage|New Pacific Order|game=Cyber Nations|p=x}}


<includeonly>[[Category:Link templates]]</includeonly>
<includeonly>[[Category:Internal link templates]]</includeonly>

Latest revision as of 03:50, 6 August 2020

This page contains the documentation for Template:Gamepage. It includes information about the template, such as usage and categories, and is not displayed when using the template itself.

This is a link shortcut template to link to game-specific versions of pages. Typically you will want to use one of the shortcuts to it, listed here.

If you don't need to hide or change the " in <game>" / " (game)" part, you can just use a regular wikitext link.

To document a shortcut to this template, use Template:Gamepage/shortcut doc.

Parameters

  • First unnamed parameter: the subject (name of the page to link to).
  • (optional) Second unnamed parameter: what to display as the text of the link. Defaults to the first parameter.
  • game: The full name of the game. (Can be obtained with {{abbrgame}} if needed.)
  • p: Define this parameter to link to "X (Game Name)" instead of "X in Game Name".

Example

Note that {{CN}} should be used instead in actual use of these cases.