Difference between revisions of "Template:Skill Link"

From Mushpedia
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{:{{{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}}
 
|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}}
Icon Astrophysicist Learned by: If Icon Mush:
Skilled in scanning for planets in range or to determine their composition.
  • The Planet Scan action discovers 2 zones per Analyze action.
  • Bonus for developing certain NERON projects.
  • Icon Undocumented: The Scan action costs 1 Action Point less.
Icon Frieda 1
Icon Gioele 4
Icon Kuan Ti 3
Icon Mage Book
Kept

Icon Solid Learned by: If Icon Mush:
You'll incur no penalties for carrying heavy objects. Also useful for hand-to-hand combat.
  • Your hand-to-hand attacks inflict one additional damage point
  • No penalties for carrying heavy objects.
  • Icon Undocumented: You can kick people out of a room.
Icon Gioele 1

Icon Stephen 2

Kept