Difference between revisions of "Template:Skill Link"
From Mushpedia
| (10 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | <includeonly>{{#switch: {{{2|}}} | + | <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|}}} |
|Human={{Skill Link table|{{{1|}}}}} | |Human={{Skill Link table|{{{1|}}}}} | ||
|Mush={{Skill Link table|{{{1|}}}||no}} | |Mush={{Skill Link table|{{{1|}}}||no}} | ||
|Characters={{Skill Link table|{{{1|}}}|no|no}} | |Characters={{Skill Link table|{{{1|}}}|no|no}} | ||
| − | |{{Skill Link extended|{{{1|}}}}}}}</includeonly> | + | |{{Skill Link extended|{{{1|}}}}}<br>}}</onlyinclude></includeonly> |
| + | |||
| + | 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:''' | ||
| + | <pre>{{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</pre> | ||
| + | |||
| + | As you can see, out of all this you should only be using the regular ''<nowiki>{{Skill Link|Skill name}}</nowiki>'' example. | ||
| + | |||
| + | '''Demo:''' | ||
| + | <pre>{{Skill Link|Astrophysicist}} | ||
| + | |||
| + | {{Skill Link|Solid}}</pre> | ||
| + | {{Skill Link|Astrophysicist}} | ||
| + | {{Skill Link|Solid}} | ||
| + | |||
| + | [[Category:Useful Templates]] | ||
Latest revision as of 07:38, 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 |