Difference between revisions of "Template:Skill Link"
From Mushpedia
| Line 1: | Line 1: | ||
| − | <includeonly><onlyinclude>{{:{{{1}}}}} | + | <includeonly><onlyinclude>{{:{{{1}}}}}{{#if: {{#var: {{{1}}} Description}} | | {{#vardefine: {{{1}}} Description|{{#var:Description|{{Todo|Add in-game fluff/description of skill}}}} }} }}{{#if: {{#var: {{{1}}} Effect}} | | {{#vardefine: {{{1}}} Effect|{{#var:Effect|*{{Todo|Add in-game list of effects (as unnumbered MediaWiki list)}}}} }} }}{{#if: {{#var: {{{1}}} Characters}} | | {{#vardefine: {{{1}}} Characters|{{#var:Characters|{{Todo|Add characters}}}} }} }}{{#if: {{#var: {{{1}}} Mush Status}} | | {{#vardefine: {{{1}}} Mush Status|{{#var:Mush Status||{{Todo|Mush status}}}} }} }}{{#switch: {{{2|}}} |
| − | {{#if: {{#var: {{{1}}} Description}} | | {{#vardefine: {{{1}}} Description|{{#var:Description|{{Todo|Add in-game fluff/description of skill}}}} }} }} | + | |
| − | {{#if: {{#var: {{{1}}} Effect}} | | {{#vardefine: {{{1}}} Effect|{{#var:Effect|*{{Todo|Add in-game list of effects (as unnumbered MediaWiki list)}}}} }} }} | + | |
| − | {{#if: {{#var: {{{1}}} Characters}} | | {{#vardefine: {{{1}}} Characters|{{#var:Characters|{{Todo|Add characters}}}} }} }} | + | |
| − | {{#if: {{#var: {{{1}}} Mush Status}} | | {{#vardefine: {{{1}}} Mush Status|{{#var:Mush Status||{{Todo|Mush status}}}} }} }} | + | |
| − | + | ||
| − | {{#switch: {{{2|}}} | + | |
|Human={{Skill Link table|{{{1|}}}}} | |Human={{Skill Link table|{{{1|}}}}} | ||
|Mush={{Skill Link table|{{{1|}}}||no}} | |Mush={{Skill Link table|{{{1|}}}||no}} | ||
| Line 25: | Line 19: | ||
{{Skill Link|Solid}}</pre> | {{Skill Link|Solid}}</pre> | ||
| − | |||
{{Skill Link|Astrophysicist}} | {{Skill Link|Astrophysicist}} | ||
| − | |||
{{Skill Link|Solid}} | {{Skill Link|Solid}} | ||
[[Category:Useful Templates]] | [[Category:Useful Templates]] | ||
Revision as of 07:35, 22 December 2013
A master template to handle the linking of detailed skill info throughout the wiki. This should hardly ever find any use outside of special pages (Template:Skill is used to provide short Skill links with fancy icons, after all), but is still operational on its own, since it might eventually be useful.
Usage:
{{Skill Link|Skill name}} - This will display a fancy little table containing the skill information.
{{Skill Link|Skill name|Human}} - Displays part of a table containing the skill information. ONLY USED IN SKILLS ARTICLE
{{Skill Link|Skill name|Mush}} - Displays part of a table containing the skill information, minus whether or not it's kept as a Mush. ONLY USED IN SKILLS ARTICLE
{{Skill Link|Skill name|Characters}} - Displays part of a table containing the skill information minus Level and Mush information. ONLY USED IN CHARACTERS ARTICLE
As you can see, out of all this you should only be using the regular {{Skill Link|Skill name}} example.
Demo:
{{Skill Link|Astrophysicist}}
{{Skill Link|Solid}}
| Learned by: | If | |
|---|---|---|
Skilled in scanning for planets in range or to determine their composition.
|
Kept |
| Learned by: | If | |
|---|---|---|
| You'll incur no penalties for carrying heavy objects. Also useful for hand-to-hand combat. | Kept |