Difference between revisions of "Template:DnM"

From Nookipedia, the Animal Crossing wiki
(Getting rid of line breaks generated by nested parser functions... hopefully.)
(Extra line break wasn't caused by nested parameters, it was due to placement of <noinclude>. Fixed.)
Line 1: Line 1:
{{#ifeq: 1 | 1 | {{#if: {{{1|}}}  
+
{{#if: {{{1|}}}  
 
     | {{#switch: {{{1|}}}
 
     | {{#switch: {{{1|}}}
 
           | nolink = {{#if: {{{2|}}}
 
           | nolink = {{#if: {{{2|}}}
Line 23: Line 23:
 
           }}
 
           }}
 
     | ''[[Doubutsu no Mori]]''
 
     | ''[[Doubutsu no Mori]]''
     }}}}
+
     }}<noinclude>
<noinclude>
 
 
==Usage==
 
==Usage==
 
The template accepts up to two parameters:
 
The template accepts up to two parameters:

Revision as of 19:29, July 27, 2015

Doubutsu no Mori

Usage

The template accepts up to two parameters:

  1. nolink- Will remove link but still produce game name in italics (e.g. Doubutsu no Mori). Can be used in combination with short/shorter/shortest.
  2. short - Will provide shorthand links (e.g. Doub. no Mori). Can be used in combination with nolink.
shorter - Will produce long acronyms instead of title names (e.g. DnM)*. Can be used in combination with nolink.
shortest - Will produce short acronyms instead of title names (e.g. DnM)*. 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. {{DnM|nolink|short}} will yield the same results as {{DnM|short|nolink}} : Doub. no Mori)