Difference between revisions of "Template:PG"

From Nookipedia, the Animal Crossing wiki
 
m (Changed protection level for "Template:PG": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(7 intermediate revisions by 6 users not shown)
Line 1: Line 1:
''[[Animal Crossing]]''
+
{{#if: {{{1|}}}
 +
    | {{#switch: {{{1|}}}
 +
          | nolink = {{#if: {{{2|}}}
 +
              | {{#switch: {{{2|}}}
 +
                    | short = ''Anim. Crossing''
 +
                    | shorter = ACGC
 +
                    | shortest = AC
 +
                    }}
 +
              | ''Animal Crossing''
 +
              }}
 +
          | short = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | ''Anim. Crossing''
 +
              | ''[[Animal Crossing (GCN)|Anim. Crossing]]''
 +
              }}
 +
          | shorter ={{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | ACGC
 +
              | [[Animal Crossing (GCN)|ACGC]]
 +
              }}
 +
          | shortest = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | AC
 +
              | [[Animal Crossing (GCN)|AC]]
 +
              }}
 +
          | ''[[Animal Crossing (GCN)|Animal Crossing]]''
 +
          }}
 +
    | ''[[Animal Crossing (GCN)|Animal Crossing]]''
 +
    }}<noinclude>
 +
==Usage==
 +
The template accepts up to two parameters:
 +
#'''nolink'''- Will remove link but still produce game name in italics (e.g. ''Animal Crossing''). Can be used in combination with short/shorter/shortest.
 +
#'''short''' - Will provide shorthand links (e.g. ''[[Animal Crossing (GCN)|Anim. Crossing]]''). Can be used in combination with nolink.
 +
::'''shorter''' - Will produce long acronyms instead of title names (e.g. [[Animal Crossing (GCN)|ACGC]])*. Can be used in combination with nolink.
 +
::'''shortest''' - Will produce short acronyms instead of title names (e.g. [[Animal Crossing (GCN)|AC]])*. Can be used in combination with nolink.
 +
:<nowiki>*</nowiki><small>'''Note:''' Due to the nature of some title names the shorter and shortest parameters may produce the same output.</small>
 +
 
 +
The parameters can be used in any order to achieve the same effect. (e.g. <tt><nowiki>{{PG|nolink|short}}</nowiki></tt> will yield the same results as <tt><nowiki>{{PG|short|nolink}}</nowiki></tt> : {{PG|short|nolink}})
 +
[[Category:Link templates]]
 +
</noinclude>

Revision as of 11:04, July 28, 2015

Animal Crossing

Usage

The template accepts up to two parameters:

  1. nolink- Will remove link but still produce game name in italics (e.g. Animal Crossing). Can be used in combination with short/shorter/shortest.
  2. short - Will provide shorthand links (e.g. Anim. Crossing). Can be used in combination with nolink.
shorter - Will produce long acronyms instead of title names (e.g. ACGC)*. Can be used in combination with nolink.
shortest - Will produce short acronyms instead of title names (e.g. AC)*. Can be used in combination with nolink.
*Note: Due to the nature of some title names the shorter and shortest parameters may produce the same output.

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