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

From Salem Wiki
Jump to: navigation, search
m (expaning full-width and no margins as preparation to include in Infobox)
m (Changed styling to use the custom stylesheet file's rules.)
Line 1: Line 1:
 
<onlyinclude><!--
 
<onlyinclude><!--
--><table class="wikitable mw-collapsible" width="100%; margin:0 0 0 0;"><!--
+
--><table class="Infobox mw-collapsible"><!--
--><tr><th>[[:Category:Skill Values|Skill Values]]</th></tr><!--
+
--><tr class="IBheader"><th>[[:Category:Skill Values|Skill Values]]</th></tr><!--
 
*** INFO ***
 
*** INFO ***
--><tr><td style="padding:0 0 0 0;"><!--
+
--><tr class="IBinfo"><td class="IBboth"><!--
--><table class="wikitable sortable" style="width:100%; margin:0 0 0 0;"><!--
+
--><table class="Infobox sortable"><!--
 
*** HEADER ***
 
*** HEADER ***
--><tr><!--
+
--><tr class="IBheader"><!--
--><th width="80%">Name</th><!--
+
--><th width="80%"><span>Name</span></th><!--
--><th width="20%">val</th><!--
+
--><th width="20%"><span>val</span></th><!--
 
--></tr><!--
 
--></tr><!--
 
*** ROWS ***
 
*** ROWS ***
 
-->{{#ifexpr: 0 < {{formatnum:{{{?Arts|0}}}|R}}
 
-->{{#ifexpr: 0 < {{formatnum:{{{?Arts|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Arts & Crafts]] {{PropVals/getIcon|Arts & Crafts}}<!--
 
-->[[Arts & Crafts]] {{PropVals/getIcon|Arts & Crafts}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Arts|0}}}</td><!--
+
--><td class="IBrightC">{{{?Arts|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Cloak|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Cloak|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Cloak & Dagger]] {{PropVals/getIcon|Cloak & Dagger}}<!--
 
-->[[Cloak & Dagger]] {{PropVals/getIcon|Cloak & Dagger}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Cloak|0}}}</td><!--
+
--><td class="IBrightC">{{{?Cloak|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Faith|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Faith|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Faith & Wisdom]] {{PropVals/getIcon|Faith & Wisdom}}<!--
 
-->[[Faith & Wisdom]] {{PropVals/getIcon|Faith & Wisdom}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Faith|0}}}</td><!--
+
--><td class="IBrightC">{{{?Faith|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Frontier|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Frontier|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Frontier & Wilderness]] {{PropVals/getIcon|Frontier & Wilderness}}<!--
 
-->[[Frontier & Wilderness]] {{PropVals/getIcon|Frontier & Wilderness}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Frontier|0}}}</td><!--
+
--><td class="IBrightC">{{{?Frontier|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Hammer|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Hammer|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Hammer & Nail]] {{PropVals/getIcon|Hammer & Nail}}<!--
 
-->[[Hammer & Nail]] {{PropVals/getIcon|Hammer & Nail}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Hammer|0}}}</td><!--
+
--><td class="IBrightC">{{{?Hammer|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Hunting|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Hunting|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Hunting & Gathering]] {{PropVals/getIcon|Hunting & Gathering}}<!--
 
-->[[Hunting & Gathering]] {{PropVals/getIcon|Hunting & Gathering}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Hunting|0}}}</td><!--
+
--><td class="IBrightC">{{{?Hunting|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Law|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Law|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Law & Lore]] {{PropVals/getIcon|Law & Lore}}<!--
 
-->[[Law & Lore]] {{PropVals/getIcon|Law & Lore}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Law|0}}}</td><!--
+
--><td class="IBrightC">{{{?Law|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Mines|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Mines|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Mines & Mountains]] {{PropVals/getIcon|Mines & Mountains}}<!--
 
-->[[Mines & Mountains]] {{PropVals/getIcon|Mines & Mountains}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Mines|0}}}</td><!--
+
--><td class="IBrightC">{{{?Mines|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Pots|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Pots|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Pots & Pans]] {{PropVals/getIcon|Pots & Pans}}<!--
 
-->[[Pots & Pans]] {{PropVals/getIcon|Pots & Pans}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Pots|0}}}</td><!--
+
--><td class="IBrightC">{{{?Pots|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Sparks|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Sparks|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Sparks & Embers]] {{PropVals/getIcon|Sparks & Embers}}<!--
 
-->[[Sparks & Embers]] {{PropVals/getIcon|Sparks & Embers}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Sparks|0}}}</td><!--
+
--><td class="IBrightC">{{{?Sparks|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Stocks|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Stocks|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Stocks & Cultivars]] {{PropVals/getIcon|Stocks & Cultivars}}<!--
 
-->[[Stocks & Cultivars]] {{PropVals/getIcon|Stocks & Cultivars}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Stocks|0}}}</td><!--
+
--><td class="IBrightC">{{{?Stocks|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Sugar|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Sugar|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Sugar & Spice]] {{PropVals/getIcon|Sugar & Spice}}<!--
 
-->[[Sugar & Spice]] {{PropVals/getIcon|Sugar & Spice}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Sugar|0}}}</td><!--
+
--><td class="IBrightC">{{{?Sugar|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Thread|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Thread|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Thread & Needle]] {{PropVals/getIcon|Thread & Needle}}<!--
 
-->[[Thread & Needle]] {{PropVals/getIcon|Thread & Needle}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Thread|0}}}</td><!--
+
--><td class="IBrightC">{{{?Thread|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Natural|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Natural|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Natural Philosophy]] {{PropVals/getIcon|Natural Philosophy}}<!--
 
-->[[Natural Philosophy]] {{PropVals/getIcon|Natural Philosophy}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Natural|0}}}</td><!--
+
--><td class="IBrightC">{{{?Natural|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Perennial|0}}}|R}}
 
}}{{#ifexpr: 0 < {{formatnum:{{{?Perennial|0}}}|R}}
| <tr style="text-align:right;"><!--
+
| <tr class="IBinfo"><!--
--><td><!--
+
--><td class="IBleft"><!--
 
-->[[Perennial Philosophy]] {{PropVals/getIcon|Perennial Philosophy}}<!--
 
-->[[Perennial Philosophy]] {{PropVals/getIcon|Perennial Philosophy}}<!--
 
--></td><!--
 
--></td><!--
--><td>{{{?Perennial|0}}}</td><!--
+
--><td class="IBrightC">{{{?Perennial|0}}}</td><!--
 
--></tr>
 
--></tr>
 
}}<!--
 
}}<!--
Line 120: Line 120:
 
--></td></tr><!--
 
--></td></tr><!--
 
--></table><!--
 
--></table><!--
--></onlyinclude><noinclude>{{documentation}}</noinclude>
+
--></onlyinclude><noinclude>{{-}}{{documentation}}</noinclude>

Revision as of 05:57, 9 July 2012

Skill Values
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'