Difference between revisions of "Template:Infobox Element"

From The Powder Toy
Jump to: navigation, search
(Add menu section, and apply categories according to menu section)
(Make menu section name into a link to the category)
Line 7: Line 7:
 
| label2 = Section
 
| label2 = Section
 
| data2 = <span data-toggle="tooltip" data-original-title="{{{menusection}}}">{{#switch: {{{menusection|}}}
 
| data2 = <span data-toggle="tooltip" data-original-title="{{{menusection}}}">{{#switch: {{{menusection|}}}
   | SC_WALL = Walls [[Category:Walls]]
+
   | SC_WALL = [[:Category:Walls|Walls]] [[Category:Walls]]
   | SC_ELEC = Electronics [[Category:Electronics]]
+
   | SC_ELEC = [[:Category:Electronics|Electronics]] [[Category:Electronics]]
   | SC_POWERED => Powered Materials [[Category:Powered Materials]]
+
   | SC_POWERED => [[:Category:Powered Materials|Powered Materials]] [[Category:Powered Materials]]
   | SC_SENSOR => Sensors [[Category:Sensors]]
+
   | SC_SENSOR => [[:Category:Sensors|Sensors]] [[Category:Sensors]]
   | SC_FORCE => Force Elements [[Category:Force]]
+
   | SC_FORCE => [[:Category:Force|Force Elements]] [[Category:Force]]
   | SC_EXPLOSIVE = Explosives [[Category:Explosives]]
+
   | SC_EXPLOSIVE = [[:Category:Explosives|Explosives]] [[Category:Explosives]]
   | SC_GAS = Gases [[Category:Gases]]
+
   | SC_GAS = [[:Category:Gases|Gases]] [[Category:Gases]]
   | SC_LIQUID = Liquids [[Category:Liquids]]
+
   | SC_LIQUID = [[:Category:Liquids|Liquids]] [[Category:Liquids]]
   | SC_POWDERS = Powders [[Category:Powders]]
+
   | SC_POWDERS = [[:Category:Powders|Powders]] [[Category:Powders]]
   | SC_SOLIDS = Solids [[Category:Solids]]
+
   | SC_SOLIDS = [[:Category:Solids|Solids]] [[Category:Solids]]
   | SC_NUCLEAR = Radioactive [[Category:Radioactive]]
+
   | SC_NUCLEAR = [[:Category:Radioactive|Radioactive]] [[Category:Radioactive]]
   | SC_SPECIAL = Special [[Category:Special]]
+
   | SC_SPECIAL = [[:Category:Special|Special]] [[Category:Special]]
   | SC_LIFE = Game Of Life [[Category:Life]]
+
   | SC_LIFE = [[:Category:Life|Game Of Life]] [[Category:Life]]
   | SC_TOOL = Tools [[Category:Tools]]
+
   | SC_TOOL = [[:Category:Tools|Tools]] [[Category:Tools]]
   | SC_DECO = Decoration tools [[Category:Tools]]
+
   | SC_DECO = [[:Category:Tools|Decoration tools]] [[Category:Tools]]
 
   | SC_CRACKER = Shenanigans
 
   | SC_CRACKER = Shenanigans
 
   | SC_CRACKER2 = Shenanigans
 
   | SC_CRACKER2 = Shenanigans

Revision as of 13:03, 6 October 2014

Infobox for displaying various element properties.

Most of them should be passed exactly as in the source code. However, the properties parameter should be space separated (so remove the pipes). Example: TYPE_LIQUID PROP_CONDUCTS PROP_NEUTPENETRATE PROP_LIFE_DEC