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