Difference between revisions of "Template:NLa"

From Nookipedia, the Animal Crossing wiki
Line 1: Line 1:
''[[Animal Crossing: New Leaf]]'' (<small>[[Animal Crossing: New Leaf - Welcome amiibo‎|''Welcome amiibo'' update]]</small>)
+
{{#if: {{{1|}}}
 +
    | {{#switch: {{{1|}}}
 +
          | nolink = {{#if: {{{2|}}}
 +
              | {{#switch: {{{2|}}}
 +
                    | short = ''Welcome amiibo''
 +
                    | shorter = ACNL-Wa
 +
                    | shortest = Wa
 +
                    }}
 +
              | ''Animal Crossing: New Leaf - Welcome amiibo''
 +
              }}
 +
          | short = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | ''Welcome amiibo''
 +
              | ''[[Animal Crossing: New Leaf - Welcome amiibo|Welcome amiibo]]''
 +
              }}
 +
          | shorter = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | ACNL-Wa
 +
              | [[Animal Crossing: New Leaf - Welcome amiibo|ACNL-Wa]]
 +
              }}
 +
          | shortest = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | Wa
 +
              | [[Animal Crossing: Happy Home Designer|Wa]]
 +
              }}
 +
          | ''[[Animal Crossing: New Leaf - Welcome amiibo]]''
 +
          }}
 +
    | ''[[Animal Crossing: New Leaf - Welcome amiibo]]''
 +
    }}<noinclude>
 +
==Usage==
 +
The template accepts up to two parameters:
 +
#'''nolink'''- Will remove link but still produce game name in italics (e.g. ''Animal Crossing: Happy Home Designer''). Can be used in combination with short/shorter/shortest.
 +
#'''short''' - Will provide shorthand links (e.g. ''[[Animal Crossing: Happy Home Designer|Happy Home Designer]]''). Can be used in combination with nolink.
 +
::'''shorter''' - Will produce long acronyms instead of title names (e.g. [[Animal Crossing: Happy Home Designer|ACHHD]]). Can be used in combination with nolink.
 +
::'''shortest''' - Will produce short acronyms instead of title names (e.g. [[Animal Crossing: Happy Home Designer|HHD]]). Can be used in combination with nolink.
 +
 
 +
The parameters can be used in any order to achieve the same effect. (e.g. <tt><nowiki>{{HHD|nolink|short}}</nowiki></tt> will yield the same results as <tt><nowiki>{{HHD|short|nolink}}</nowiki></tt> : {{HHD|short|nolink}})
 +
[[Category:Link templates]]
 +
</noinclude>

Revision as of 09:29, November 6, 2016

Animal Crossing: New Leaf - Welcome amiibo

Usage

The template accepts up to two parameters:

  1. nolink- Will remove link but still produce game name in italics (e.g. Animal Crossing: Happy Home Designer). Can be used in combination with short/shorter/shortest.
  2. short - Will provide shorthand links (e.g. Happy Home Designer). Can be used in combination with nolink.
shorter - Will produce long acronyms instead of title names (e.g. ACHHD). Can be used in combination with nolink.
shortest - Will produce short acronyms instead of title names (e.g. HHD). Can be used in combination with nolink.

The parameters can be used in any order to achieve the same effect. (e.g. {{HHD|nolink|short}} will yield the same results as {{HHD|short|nolink}} : Happy Home Designer)