Template:Gamepage: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[{{#if:{{{game|}}}|{{#if:{{{1|}}}|{{{1}}} in}} {{{game}}}|{{#if:{{{1|}}}|{{{1}}}|Main Page}}}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|{{#if:{{{game|}}}|{{{game}}}|Main Page}}}}}}]]</includeonly><noinclude>
<includeonly>[[{{
#if:
  {{{game|}}}
  |{{#if:
    {{{1|}}}
    |{{#if:
      {{{p|}}}
      |{{{1}}} ({{{game}}})
      |{{{1}}} in {{{game}}}
    }}
    |{{{game}}}
  }}
  |{{#if:
    {{{1|}}}
    |{{{1}}}
    |Main Page
  }}
}}|{{
#if:
  {{{2|}}}
  |{{{2}}}
  |{{#if:
    {{{1|}}}
    |{{{1}}}
    |{{#if:
      {{{game|}}}
      |{{{game}}}
      |Main Page
    }}
  }}
}}]]{{#if:{{{2|}}}|{{#if:{{{1|}}}|{{#ifeq:{{{2}}}|{{{1}}}|[[Category:Pages with redundant template parameters]]}}}}}}</includeonly><noinclude>
{{documentation}}</noinclude>
{{documentation}}</noinclude>

Latest revision as of 06:25, 5 July 2021

Documentation [edit]

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.

The above documentation is transcluded from Template:Gamepage/doc.