Template:List to Icons Table

From TEHCC Wiki
Jump to navigation Jump to search

This is a format template for the Template:Auto List to Icons. It is expected to be used in conjunction with a semantic query. The parameter userparam is part of the format 'template' and is used to specify the switch to 'row' when needed. Otherwise repeated calls can use the template to invoke the intro, outro, or header output. If using the header output, you can specify the additional 'header' parameter to give it the text to place in the header row.

It expects the following usage format. Header is only used when #userparam is set to header and image, description, and keyword are used when #userparam is set to row.

{{List to Icons Table
 |#userparam=
 |header=
 |image=
 |description=
 |keyword=
}}

But its usage in practice is like this with the middle two calls of the header and actual query being repeated as necessary

{{List to Icons Table|#userparam=intro}}
{{List to Icons Table|#userparam=header|header=Nature Activities (hiking, biking, etc.) (Infobox Icon Type: Activities)}}
{{#ask:[[Category:Infobox Icons]][[Infobox Icon Type::Activities]]
 |mainlabel=image
 |?Has Caption=description
 |?Semantic Keyword=keyword
 |format=plainlist
 |headers=hide
 |link=none
 |template=List to Icons Table
 |userparam=row
 |named args=yes
}}
{{List to Icons Table|#userparam=outro}}

Edit the page to see the template text.