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
Line 1: | Line 1: | ||
{{#vardefine: snes-text | Super Nintendo Entertainment System}} | {{#vardefine: snes-text | Super Nintendo Entertainment System}}{{#vardefine: n64-text | Nintendo 64}}{{#vardefine: gcn-text | Nintendo GameCube}}{{#vardefine: wii-text | Wii}} | ||
{{#vardefine: n64-text | Nintendo 64}} | {{#vardefine: vc-text | Virtual Console}}{{#vardefine: nds-text | Nintendo DS}}{{#switch: {{lc:{{{1|}}}}} | ||
{{#vardefine: gcn-text | Nintendo GameCube}} | |||
{{#vardefine: wii-text | Wii}} | |||
{{#vardefine: vc-text | Virtual Console}} | |||
{{#vardefine: nds-text | Nintendo DS}} | |||
{{#switch: {{lc:{{{1|}}}}} | |||
| super nintendo entertainment system | | super nintendo entertainment system | ||
| snes = {{#vardefine: output-text | {{#var: snes-text}} }} | | snes = {{#vardefine: output-text | {{#var: snes-text}} }} | ||
Line 20: | Line 15: | ||
| nds = {{#vardefine: output-text | {{#var: nds-text}} }} | | nds = {{#vardefine: output-text | {{#var: nds-text}} }} | ||
| #default = | | #default = | ||
}} | }}[[{{#var: output-text | Consoles }}]]{{#ifeq: {{{cat|}}} | yes | [[Category:{{#var: output-text }}|{{{sortkey|}}}]] }} | ||
[[{{#var: output-text | Consoles }}]] | |||
{{#ifeq: {{{cat|}}} | yes | [[Category:{{#var: output-text }}|{{{sortkey|}}}]] }} | |||
<noinclude>{{doc}}</noinclude> | <noinclude>{{doc}}</noinclude> |
Revision as of 23:12, 23 April 2010
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 }}