Difference between revisions of "Template:SER"

From Nookipedia, the Animal Crossing wiki
m (Protected "Template:SER": High traffic page ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m (fixing template usage)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#if: {{{1|}}}
+
{{#invoke:MediumLink|main|medium=Animal Crossing</i> series<i>|link=Animal Crossing (series)|short=Animal Crossing|{{{1|}}}|{{{2|}}}|{{{3|}}}}}<noinclude>{{Documentation}}[[Category:Link templates]]</noinclude>
    | {{#switch: {{{1|}}}
 
          | nolink = {{#if: {{{2|}}}
 
              | {{#switch: {{{2|}}}
 
                    | short = AC series  
 
                    | shorter = ACSER
 
                    | shortest = SER
 
                    }}
 
              | ''Animal Crossing'' series
 
              }}
 
          | short = {{#ifeq: {{{2|}}}
 
              | nolink
 
              | AC series
 
              | [[Animal Crossing (series)|AC series]]
 
              }}
 
          | shorter = {{#ifeq: {{{2|}}}
 
              | nolink
 
              | ACSER
 
              | [[Animal Crossing (series)|ACSER]]
 
              }}
 
          | shortest = {{#ifeq: {{{2|}}}
 
              | nolink
 
              | SER
 
              | [[Animal Crossing (series)|SER]]
 
              }}
 
          | [[Animal Crossing (series)|''Animal Crossing'' series]]
 
          }}
 
    | [[Animal Crossing (series)|''Animal Crossing'' series]]
 
    }}<noinclude>
 
==Usage==
 
The template accepts up to two parameters:
 
#'''nolink'''- Will remove link but still produce game name in italics (e.g. ''Animal Crossing'' series). Can be used in combination with short/shorter/shortest.
 
#'''short''' - Will provide shorthand links (e.g. [[Animal Crossing (series)|AC series]]). Can be used in combination with nolink.
 
::'''shorter''' - Will produce long acronyms instead of title names (e.g. [[Animal Crossing (series)|ACSER]]). Can be used in combination with nolink.
 
::'''shortest''' - Will produce short acronyms instead of title names (e.g. [[Animal Crossing (series)|SER]]). Can be used in combination with nolink.
 
 
 
The parameters can be used in any order to achieve the same effect. (e.g. <tt><nowiki>{{SER|nolink|short}}</nowiki></tt> will yield the same results as <tt><nowiki>{{SER|short|nolink}}</nowiki></tt> : {{SER|short|nolink}})
 
[[Category:Link templates]]
 
</noinclude>
 

Latest revision as of 02:45, November 8, 2022

Animal Crossing series

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 series 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 series). Can be used in combination with sm and short.
    • sm - Will make the name small text but still produce game name in italics (e.g. Animal Crossing series). Can be used in combination with nolink and short.
    • short - Will provide shorthand links (e.g. Animal Crossing). Can be used in combination with nolink and sm.
    The parameters can be used in any order to achieve the same effect. (e.g. {{SER|sm|nolink|short}} will yield the same results as {{SER|short|nolink|sm}}Animal Crossing)