Difference between revisions of "Template:SSB4"

From Nookipedia, the Animal Crossing wiki
(Adding protection notice)
(Module is a hot mess atm, so reverting.)
Line 1: Line 1:
{{#invoke:SSB4Link|main|{{{1|}}}|{{{2|}}}|{{{3|}}}|{{{4|}}}}}<noinclude>{{Pp|semi}}{{Documentation}}[[Category:Link templates]]</noinclude>
+
{{#if: {{{1|}}}
 +
    | {{#switch: {{{1|}}}
 +
          | nolink = {{#if: {{{2|}}}
 +
              | {{#switch: {{{2|}}}
 +
                    | short = {{#if: {{{3|}}}
 +
                        | {{#switch: {{{3|}}}
 +
                              | 3ds = ''Smash 3DS''
 +
                              | wiiu = ''Smash Wii U''
 +
                              | 3dswiiu
 +
                              | wiiu3ds = ''Smash 3DS / Wii U''
 +
                              | ''Smash 4''
 +
                        }}
 +
                    }}
 +
                    | shorter =  {{#if: {{{3|}}}
 +
                        | {{#switch: {{{3|}}}
 +
                              | 3ds = ''SSB3DS''
 +
                              | wiiu = ''SSBWiiU''
 +
                              | 3dswiiu
 +
                              | wiiu3ds = ''SSB3DS/WiiU''
 +
                              | SSB4
 +
                        }}
 +
                    }}
 +
                    | 3ds = ''Super Smash Bros. for Nintendo 3DS''
 +
                    | wiiu = ''Super Smash Bros. for Wii U''
 +
                    | 3dswiiu
 +
                    | wiiu3ds = ''Super Smash Bros. for Nintendo 3DS / Wii U''
 +
                    }}
 +
              | ''Super Smash Bros. 4''
 +
              }}
 +
          | short = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | {{#switch: {{{3|}}}
 +
                    | 3ds = ''Smash 3DS''
 +
                    | wiiu = ''Smash Wii U''
 +
                    | 3dswiiu
 +
                    | wiiu3ds =  = ''Smash 3DS / Wii U''
 +
                    | ''Smash 4''
 +
              }}
 +
              | {{#switch: {{{2|}}}
 +
                    | 3ds = {{#ifeq:{{{3|}}}|nolink|''Smash 3DS''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''}}
 +
                    | wiiu = {{#ifeq:{{{3|}}}|nolink|''Smash Wii U''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''}}
 +
                    | 3dswiiu
 +
                    | wiiu3ds = {{#ifeq:{{{3|}}}|nolink|''Smash 3DS and Wii U''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS / Wii U]]''}}
 +
                    | {{#ifeq:{{{3|}}}|nolink|''Smash 4''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 4]]''}}
 +
              }}
 +
              }}
 +
          | shorter ={{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | {{#switch: {{{3|}}}
 +
                    | 3ds = SSB3DS
 +
                    | wiiu = SSBWiiU
 +
                    | 3dswiiu
 +
                    | wiiu3ds =  = SSB3DS/WiiU
 +
                    | SSB4
 +
              }}
 +
              | {{#switch: {{{2|}}}
 +
                    | 3ds = {{#ifeq:{{{3|}}}|nolink|SSB3DS|[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB3DS]]}}
 +
                    | wiiu = {{#ifeq:{{{3|}}}|nolink|SSBWiiU|[[Super Smash Bros. for Nintendo 3DS and Wii U|SSBWiiU]]}}
 +
                    | 3dswiiu
 +
                    | wiiu3ds = {{#ifeq:{{{3|}}}|nolink|SSB3DSWiiU|[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB3DS/WiiU]]}}
 +
                    | {{#ifeq:{{{3|}}}|nolink|SSB4|[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB4]]}}
 +
              }}
 +
              }}
 +
          | 3ds = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | {{#switch: {{{3|}}}
 +
                    | short = ''Smash 3DS''
 +
                    | shorter = SSB3DS
 +
                    | ''Super Smash Bros. for Nintendo 3DS''
 +
              }}
 +
              | {{#switch: {{{2|}}}
 +
                    | short = {{#ifeq:{{{3|}}}|nolink|''Smash 3DS''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash 3DS]]''}}
 +
                    | shorter = {{#ifeq:{{{3|}}}|nolink|SSB3DS|[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB3DS]]}}
 +
                    | {{#ifeq:{{{3|}}}|nolink|''Super Smash Bros. for Nintendo 3DS''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS]]''}}
 +
              }}
 +
              }}
 +
          | wiiu = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | {{#switch: {{{3|}}}
 +
                    | short = ''Smash Wii U''
 +
                    | shorter = SSBWiiU
 +
                    | ''Super Smash Bros. for Wii U''
 +
              }}
 +
              | {{#switch: {{{2|}}}
 +
                    | short = {{#ifeq:{{{3|}}}|nolink|''Smash Wii U''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''}}
 +
                    | shorter = {{#ifeq:{{{3|}}}|nolink|SSBWiiU|[[Super Smash Bros. for Nintendo 3DS and Wii U|SSBWiiU]]}}
 +
                    | {{#ifeq:{{{3|}}}|nolink|''Super Smash Bros. for Wii U''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Wii U]]''}}
 +
              }}
 +
              }}
 +
          | 3dswiiu
 +
          | wiiu3ds = {{#ifeq: {{{2|}}}
 +
              | nolink
 +
              | {{#switch: {{{3|}}}
 +
                    | short = ''Smash Wii U''
 +
                    | shorter = SSB3DSWiiU
 +
                    | ''Super Smash Bros. for Nintendo 3DS / Wii U''
 +
              }}
 +
              | {{#switch: {{{2|}}}
 +
                    | short = {{#ifeq:{{{3|}}}|nolink|''Smash Wii U''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Smash Wii U]]''}}
 +
                    | shorter = {{#ifeq:{{{3|}}}|nolink|SSBWiiU|[[Super Smash Bros. for Nintendo 3DS and Wii U|SSB3DSWiiU]]}}
 +
                    | {{#ifeq:{{{3|}}}|nolink|''Super Smash Bros. for Nintendo 3DS and Wii U''|''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. for Nintendo 3DS / Wii U]]''}}
 +
              }}
 +
              }}
 +
          | ''[[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. 4]]''
 +
          }}
 +
    | ''[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. 4]]''
 +
    }}<noinclude>{{Pp|semi}}{{Documentation}}[[Category:Link templates]]</noinclude>

Revision as of 03:02, November 8, 2022

Super Smash Bros. 4

This template is semi-protected to prevent editing by anonymous and new users

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:SSB4Link
  • 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:SSB4Link
  • 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 Super Smash Bros. 4 quicker and in different ways.

    The template accepts up to four parameters:

    • nolink - Will remove link but still produce game name in italics (e.g. Super Smash Bros. 4). Can be used in combination with sm, 3ds, wiiu, 3dswiiu/wiiu3ds, and one of the following: short, shorter, shortest.
    • sm - Will make the name small text but still produce game name in italics (e.g. Super Smash Bros. 4). Can be used in combination with nolink, 3ds, wiiu, 3dswiiu/wiiu3ds, and one of the following: short, shorter, shortest.
    • short - Will provide shorthand links (e.g. Smash 4). Can be used in combination with nolink, sm, 3ds, wiiu, and 3dswiiu/wiiu3ds.
    • shorter - Will produce long acronyms instead of title names (e.g. SSB4). Can be used in combination with nolink, sm, 3ds, wiiu, and 3dswiiu/wiiu3ds.
    • shortest - Will produce short acronyms instead of title names (e.g. SSB4). Can be used in combination with nolink, sm, 3ds, wiiu, and 3dswiiu/wiiu3ds.
    • 3ds - Will only display the Nintendo 3DS title (e.g. Super Smash Bros. for Nintendo 3DS). Can be used in combination with nolink, sm, and one of the following: short, shorter, shortest.
    • wiiu - Will only display the Wii U title (e.g. Super Smash Bros. for Wii U). Can be used in combination with nolink, sm, and one of the following: short, shorter, shortest.
    • 3dswiiu/wiiu3ds - Will only display the official title (e.g. Super Smash Bros. for Nintendo 3DS / Wii U). Can be used in combination with nolink, sm, and one of the following: short, shorter, shortest.
    The parameters can be used in any order to achieve the same effect. (e.g. {{SSB4|sm|short|3dswiiu|nolink}} will yield the same results as {{SSB4|nolink|3dswiiu|short|sm}}[[[Super Smash Bros. for Nintendo 3DS and Wii U|Super Smash Bros. 4]])