Difference between revisions of "Template:Infobox/List Skillvals/query template"

From Salem Wiki
Jump to: navigation, search
(Initial setup)
 
m (Somehow using concept doesn't work here)
 
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude></onlyinclude><noinclude>{{documentation}}</noinclude>
+
<onlyinclude><!--
 +
--><table class="Infobox mw-collapsible {{#if: {{{userparam|}}}
 +
| {{#ifeq: {{{userparam|}}} | no | | mw-collapsed}}
 +
| {{#ifeq: {{{collapsed|no}}} | no | | mw-collapsed}}
 +
}}" style="float:none;"><!--
 +
--><tr class="IBheader"><!--
 +
--><th><!--
 +
--><span>{{#if:{{#ask: [[IsinGameMenu::Technologies]] [[{{{?|{{FULLPAGENAME}} }}}]] |link=none}}
 +
| Required
 +
| Provided
 +
}} [[Skills|skill]] [[Proficiencies|proficiency]]:<!--
 +
--></span><!--
 +
--></th><!--
 +
--></tr><!--
 +
*** INFO ***
 +
--><tr class="IBinfo"><td class="IBboth"><!--
 +
--><table class="Infobox sortable"><!--
 +
*** HEADER ***
 +
--><tr class="IBheader"><!--
 +
--><th width="80%"><span>Name</span></th><!--
 +
--><th width="20%"><span>val</span></th><!--
 +
--></tr><!--
 +
*** ROWS ***
 +
-->{{#ifexpr: 0 < {{formatnum:{{{?Arts|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Arts & Crafts]] {{PropVals/getIcon|Arts & Crafts}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Arts|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Cloak|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Cloak & Dagger]] {{PropVals/getIcon|Cloak & Dagger}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Cloak|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Faith|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Faith & Wisdom]] {{PropVals/getIcon|Faith & Wisdom}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Faith|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Frontier|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Frontier & Wilderness]] {{PropVals/getIcon|Frontier & Wilderness}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Frontier|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Hammer|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Hammer & Nail]] {{PropVals/getIcon|Hammer & Nail}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Hammer|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Hunting|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Hunting & Gathering]] {{PropVals/getIcon|Hunting & Gathering}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Hunting|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Law|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Law & Lore]] {{PropVals/getIcon|Law & Lore}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Law|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Mines|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Mines & Mountains]] {{PropVals/getIcon|Mines & Mountains}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Mines|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Pots|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Pots & Pans]] {{PropVals/getIcon|Pots & Pans}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Pots|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Sparks|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Sparks & Embers]] {{PropVals/getIcon|Sparks & Embers}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Sparks|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Stocks|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Stocks & Cultivars]] {{PropVals/getIcon|Stocks & Cultivars}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Stocks|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Sugar|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Sugar & Spice]] {{PropVals/getIcon|Sugar & Spice}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Sugar|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Thread|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Thread & Needle]] {{PropVals/getIcon|Thread & Needle}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Thread|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Natural|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Natural Philosophy]] {{PropVals/getIcon|Natural Philosophy}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Natural|0}}}</td><!--
 +
--></tr>
 +
}}{{#ifexpr: 0 < {{formatnum:{{{?Perennial|0}}}|R}}
 +
| <tr class="IBinfo"><!--
 +
--><td class="IBleft"><!--
 +
-->[[Perennial Philosophy]] {{PropVals/getIcon|Perennial Philosophy}}<!--
 +
--></td><!--
 +
--><td class="IBrightC">{{{?Perennial|0}}}</td><!--
 +
--></tr>
 +
}}<!--
 +
--></table><!--
 +
--></td></tr><!--
 +
--></table><!--
 +
--></onlyinclude><noinclude>{{documentation}}</noinclude>

Latest revision as of 14:14, 5 August 2012

Provided skill proficiency:
Nameval


Template documentation (for the template shown above, sometimes hidden or invisible)

Description

This template is used to format the output-results of the SMW-Query used in {{Infobox/List Skillvals}}.
See these pages for more documentation:

Syntax

It accepts 2 named parameters to control the collapsed state.

  • userparam
    If assigned anything other than 'no', it will be collapsed by default.
  • collapsed
    This parameter will only be checked if userparam has an empty value.
    If assigned anything other than 'no', it will be collapsed by default.
    It defaults to 'no'