Difference between revisions of "Template:Infobox/List AlchemyVals"

From Salem Wiki
Jump to: navigation, search
m (Humours heading)
m (hiding columns when no relevant data)
Line 12: Line 12:
 
--><tr class="IBheader"><!--
 
--><tr class="IBheader"><!--
 
--><th class="IBhumour"><span>[[Humour]]s</span></th><!--
 
--><th class="IBhumour"><span>[[Humour]]s</span></th><!--
--><th class="IBheal"><span>Heal</span></th><!--
+
-->{{#if: {{#show:{{{page|Help:Infobox/testdata}}}|?hebl|?heph|?heyb|?hebb|link=none|format=list}}
--><th class="IBna"><span>[[Salt|Na]]</span></th><!-- http://www.webelements.com/sodium/
+
| <th class="IBheal"><span>Heal</span></th>
--><th class="IBhg"><span>[[Mercury|Hg]]</span></th><!-- http://www.webelements.com/mercury/
+
}}{{#if: {{#show:{{{page|Help:Infobox/testdata}}}|?sabl|?saph|?sayb|?sabb|link=none|format=list}}
--><th class="IBs"><span>[[Sulphur|S]]</span></th><!-- http://www.webelements.com/sulfur/
+
| <!-- http://www.webelements.com/sodium/
--><th class="IBpb"><span>[[Lead|Pb]]</span></th><!-- http://www.webelements.com/lead/
+
--><th class="IBna"><span>[[Salt|Na]]</span></th>
 +
}}{{#if: {{#show:{{{page|Help:Infobox/testdata}}}|?mebl|?meph|?meyb|?mebb|link=none|format=list}}
 +
| <!-- http://www.webelements.com/mercury/
 +
--><th class="IBhg"><span>[[Mercury|Hg]]</span></th>
 +
}}{{#if: {{#show:{{{page|Help:Infobox/testdata}}}|?subl|?suph|?suyb|?subb|link=none|format=list}}
 +
| <!-- http://www.webelements.com/sulfur/
 +
--><th class="IBs"><span>[[Sulphur|S]]</span></th>
 +
}}{{#if: {{#show:{{{page|Help:Infobox/testdata}}}|?lebl|?leph|?leyb|?lebb|link=none|format=list}}
 +
| <!-- http://www.webelements.com/lead/
 +
--><th class="IBpb"><span>[[Lead|Pb]]</span></th>
 +
}}<!--
 
--></tr><!--
 
--></tr><!--
 
*** ROWS ***
 
*** ROWS ***

Revision as of 22:14, 14 July 2012

Provided Alchemy values:
Humours


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

Description

This template is used to automatically list the Alchemy values of a page..
This template is used by {{Infobox}}.
See these pages for more SMW-documentation:

Syntax

Type the below code somewhere on a page:
{{Infobox/List AlchemyVals
|page=
}}
It can accept 2 named parameters:
  • page
    Selects the page to fetch Alchemy values from.
    This parameter defaults to the test-data page.
  • collapsed
    If assigned anything other than 'no', it will be collapsed by default.
    It defaults to 'no'

Examples

  1. {{Infobox/List AlchemyVals}} gives:
    Provided Alchemy values:
    Humours
  2. {{Infobox/List AlchemyVals|page=Help:Infobox/testdata|collapsed=y}} gives:
    Provided Alchemy values:
    Humours