Difference between revisions of "Template:CF"

From Nookipedia, the Animal Crossing wiki
m (Changed protection level for "Template:CF": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Converting template to Lua module; moving documentation to its own page)
Line 1: Line 1:
{{#if: {{{1|}}}
+
{{#invoke:MediumLink|main|medium=Animal Crossing: City Folk|short=City Folk|shorter=ACCF|shortest=CF|{{{1|}}}|{{{2|}}}|{{{3|}}}}}<noinclude>{{Documentation}}[[Category:Link templates]]</noinclude>
    | {{#switch: {{{1|}}}
 
          | 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 14:10, November 7, 2022

Animal Crossing: City Folk

Template documentation (view)


Usage

Lua Logo.svg
This template is using a Lua module
To change certain features of this template, the following modules will need to be edited:
  • Module:MediumLink
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.
    Lua Logo.svg
    This template is using a Lua module
    To change certain features of this template, the following modules will need to be edited:
  • Module:MediumLink
  • Note that any changes should first be tested in a sandbox. Please consider discussing planned changes on the talk page or with staff members before implementing them.

    This is a link template, intended to link to Animal Crossing: City Folk quicker and in different ways.

    The template accepts up to three parameters:

    • nolink - Will remove link but still produce game name in italics (e.g. Animal Crossing: City Folk). Can be used in combination with sm and one of the following: short, shorter, shortest.
    • sm - Will make the name small text but still produce game name in italics (e.g. Animal Crossing: City Folk). Can be used in combination with nolink and one of the following: short, shorter, shortest.
    • short - Will provide shorthand links (e.g. City Folk). Can be used in combination with nolink and sm.
    • shorter - Will produce long acronyms instead of title names (e.g. ACCF). Can be used in combination with nolink and sm.
    • shortest - Will produce short acronyms instead of title names (e.g. CF). Can be used in combination with nolink and sm.
    The parameters can be used in any order to achieve the same effect. (e.g. {{CF|sm|nolink|short}} will yield the same results as {{CF|short|nolink|sm}}City Folk)