Difference between revisions of "Template:CF"
From Nookipedia, the Animal Crossing wiki
m (Changed protection level for "Template:CF" ([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: City Folk|{{# | + | {{#if: {{{1|}}} |
− | | | + | | {{#switch: {{{1|}}} |
− | |''Animal Crossing: City Folk''}}]]< | + | | nolink = {{#if: {{{2|}}} |
+ | | {{#switch: {{{2|}}} | ||
+ | | short = ''City Folk'' | ||
+ | | shorter = ACCF | ||
+ | | shortest = CF | ||
+ | }} | ||
+ | | ''Animal Crossing: City Folk'' | ||
+ | }} | ||
+ | | short = {{#ifeq: {{{2|}}} | ||
+ | | nolink | ||
+ | | ''City Folk'' | ||
+ | | ''[[Animal Crossing: City Folk|City Folk]]'' | ||
+ | }} | ||
+ | | shorter = {{#ifeq: {{{2|}}} | ||
+ | | nolink | ||
+ | | ACCF | ||
+ | | [[Animal Crossing: City Folk|ACCF]] | ||
+ | }} | ||
+ | | shortest = {{#ifeq: {{{2|}}} | ||
+ | | nolink | ||
+ | | CF | ||
+ | | [[Animal Crossing: City Folk|CF]] | ||
+ | }} | ||
+ | | ''[[Animal Crossing: City Folk]]'' | ||
+ | }} | ||
+ | | ''[[Animal Crossing: City Folk]]'' | ||
+ | }}<noinclude> | ||
+ | ==Usage== | ||
+ | The template accepts up to two parameters: | ||
+ | #'''nolink'''- Will remove link but still produce game name in italics (e.g. ''Animal Crossing: City Folk''). Can be used in combination with short/shorter/shortest. | ||
+ | #'''short''' - Will provide shorthand links (e.g. ''[[Animal Crossing: City Folk|City Folk]]''). Can be used in combination with nolink. | ||
+ | ::'''shorter''' - Will produce long acronyms instead of title names (e.g. [[Animal Crossing: City Folk|ACCF]]). Can be used in combination with nolink. | ||
+ | ::'''shortest''' - Will produce short acronyms instead of title names (e.g. [[Animal Crossing: City Folk|CF]]). Can be used in combination with nolink. | ||
+ | |||
+ | The parameters can be used in any order to achieve the same effect. (e.g. <tt><nowiki>{{CF|nolink|short}}</nowiki></tt> will yield the same results as <tt><nowiki>{{CF|short|nolink}}</nowiki></tt> : {{CF|short|nolink}}) | ||
+ | [[Category:Link templates]] | ||
+ | </noinclude> |
Revision as of 20:57, 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: City Folk). Can be used in combination with short/shorter/shortest.
- short - Will provide shorthand links (e.g. City Folk). Can be used in combination with nolink.
The parameters can be used in any order to achieve the same effect. (e.g. {{CF|nolink|short}} will yield the same results as {{CF|short|nolink}} : City Folk)