Difference between revisions of "Template:Category Icons"

From WikiPETia.info

(Expression tests)
(Maybe now?)
Line 7: Line 7:
 
     {{ #tag: gallery
 
     {{ #tag: gallery
 
       | {{ #while:
 
       | {{ #while:
         | {{ #ifexpr: {{ #expr: {{ #var: i }} < {{ #var: j }} }} | true }}
+
         | {{ #ifexpr: {{ #var: i }} < {{ #var: j }} | true }}
 
         | <span style="display:none;">{{ #var: i }}</span>
 
         | <span style="display:none;">{{ #var: i }}</span>
           File:Icon {{ #switch: {{{ {{ #var: i }} | }}}
+
           {{ #switch: {{{ {{ #var: i }} | }}}
          | Companies = company.png{{!}}[[Companies]]
+
            | File:Icon Companies = company.png{{!}}[[Companies]]
          | Events = event.png{{!}}[[Events]]
+
            | File:Icon Events = event.png{{!}}[[Events]]
          | People = people.png{{!}}[[People]]
+
            | File:Icon People = people.png{{!}}[[People]]
          | Material = material.png{{!}}[[Material]]
+
            | File:Icon Material = material.png{{!}}[[Material]]
          | Recycling = recycling.png{{!}}[[PET recycling]]
+
            | File:Icon Recycling = recycling.png{{!}}[[PET recycling]]
          | Preforms = preform.png{{!}}[[Preform production]]
+
            | File:Icon Preforms = preform.png{{!}}[[Preform production]]
          | Bottle making = bottle.png{{!}}[[Bottle making]]
+
            | File:Icon Bottle making = bottle.png{{!}}[[Bottle making]]
          | Filling = filling.png{{!}}[[Filling]]
+
            | File:Icon Filling = filling.png{{!}}[[Filling]]
          | Capping = capping.png{{!}}[[Capping]]
+
            | File:Icon Capping = capping.png{{!}}[[Capping]]
          | Labelling = labeling.png{{!}}[[Labelling]]
+
            | File:Icon Labelling = labeling.png{{!}}[[Labelling]]
 
           }}
 
           }}
 
           {{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}
 
           {{ #vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }}

Revision as of 16:49, 28 March 2017