Difference between revisions of "Template:PG"
From Nookipedia, the Animal Crossing wiki
m (Changed protection level for "Template:PG" ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only administrators] (indefinite))) |
(Adding parameters to allow for the creation an italicized game title without a link, shortened versions of game title and combinations thereof.) |
||
Line 1: | Line 1: | ||
− | ''[[Animal Crossing (GCN)|Animal Crossing]]''<noinclude>[[Category:Link templates]]</noinclude> | + | {{#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 19:13, July 27, 2015
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. Anim. Crossing). 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)