Difference between revisions of "Template:Infobox/List Skillvals/query template"
From Salem Wiki
m (expaning full-width and no margins as preparation to include in Infobox) |
m (Somehow using concept doesn't work here) |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
− | --><table class=" | + | --><table class="Infobox mw-collapsible {{#if: {{{userparam|}}} |
− | --><tr><th>[[: | + | | {{#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 *** | *** INFO *** | ||
− | --><tr><td | + | --><tr class="IBinfo"><td class="IBboth"><!-- |
− | --><table class=" | + | --><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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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 | + | | <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> | ||
}}<!-- | }}<!-- |
Latest revision as of 14:14, 5 August 2012
Provided skill proficiency: | ||
---|---|---|
|
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:
- Manual:Collapsible elements
- Help:Selecting pages
- Help:Displaying information
- Help:Template format.
- Help:Inline queries to see how an inline query can use this to format the display of query results.
- Extension:FormatNum
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'
Visit Template:Infobox/List Skillvals/query template/doc to edit this text! (How does this work?)