Welcome to the Lylat Wiki, all about the Star Fox series! If you'd like to help out, please take a look at our community portal.
Difference between revisions of "Template:Console-code"
From Lylat Wiki, your source on Star Fox information. By Fans, for Fans.
Jump to navigationJump to search
(Created page with '{{#vardefine: snes-text |Super Nintendo Entrainment System}} {{#switch: {{{1|}}} | SNES | Super Nintendo Entrainment System | snes = {{#vardefine: output-text | {{#var: snes-text…') |
(does this work?) |
||
(12 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine: snes-text |Super Nintendo | {{#vardefine: snes-text | Super Nintendo Entertainment System}}{{#vardefine: n64-text | Nintendo 64}}{{#vardefine: gcn-text | Nintendo GameCube}}{{#vardefine: wii-text | Wii}}{{#vardefine: gba-text | Game Boy Advance}}{{#vardefine: 3ds-text | Nintendo 3DS}} | ||
{{#switch: {{{1|}}} | {{#vardefine: vc-text | Virtual Console}}{{#vardefine: nds-text | Nintendo DS}}{{#switch: {{lc:{{{1|}}}}} | ||
| | | super nintendo entertainment system | ||
| snes = {{#vardefine: output-text | {{#var: snes-text}} }} | | snes = {{#vardefine: output-text | {{#var: snes-text}} }} | ||
| | | nintendo 64 | ||
| | | n64 = {{#vardefine: output-text | {{#var: n64-text}} }} | ||
| | | nintendo gamecube | ||
| gamecube | |||
| gcn = {{#vardefine: output-text | {{#var: gcn-text}} }} | |||
| wii = {{#vardefine: output-text | {{#var: wii-text}} }} | |||
| virtual console | |||
| vc = {{#vardefine: output-text | {{#var: vc-text}} }} | |||
| game boy advance | |||
| gba = {{#vardefine: output-text | {{#var: gba-text}} }} | |||
| nintendo ds | |||
| ds | |||
| nds = {{#vardefine: output-text | {{#var: nds-text}} }} | |||
| nintendo 3ds | |||
| 3ds = {{#vardefine: output-text | {{#var: 3ds-text}} }} | |||
| #default = | | #default = | ||
}} | }}[[{{#var: output-text | Category:Consoles|Consoles }}]]{{#ifeq: {{{cat|}}} | yes | [[Category:{{#var: output-text }}|{{{sortkey|}}}]] }} | ||
[[{{#var: output-text | Consoles }}]] | <noinclude>{{doc}}[[Category:Console Templates]]</noinclude> | ||
{{#ifeq: {{{cat|}}} | yes | [[Category:{{#var: output-text }}|{{{sortkey|}}}]] }} | |||
<noinclude>{{doc}}</noinclude> |
Latest revision as of 04:05, 27 January 2019
Peppy Hare: "Falco, this template's documentation needs to be improved to meet LW:TS." | |
Falco Lombardi: "Why are you asking me? Isn't that Slippy's job?"
|
Name | Console-code |
---|---|
Link | {{Console-code}} |
Info |
Purpose
Usage
By putting in a specific text, the template will auto-generate a link to the requested Console page. By adding cat = yes
, it automatically adds the page to a category of the same name as the console page. This category link uses a sortkey given through {{{sortkey}}}. This is helpful with sorting box art, screenshots, and other pages
Parameters
Name | Description | Value information | |||||||
---|---|---|---|---|---|---|---|---|---|
(the first one) |
|
||||||||
cat | yes | ||||||||
sortkey | |||||||||
Notes:
|
Example
{{Console-code | #1 }}