Template:List to Icons Table: Difference between revisions
m (cleanup template) |
No edit summary |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>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 | <noinclude>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. | ||
<p>It expects the following usage format. | <p>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. | ||
<pre> | <pre> | ||
{{List to Icons Table | {{List to Icons Table | ||
|userparam= | |#userparam= | ||
|header= | |header= | ||
|image= | |||
|description= | |||
|keyword= | |||
}} | }} | ||
</pre> | |||
But its usage in practice is like this with the middle two calls of the header and actual query being repeated as necessary | |||
<pre> | |||
{{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}} | |||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
[[Category: | [[Category:Universal Templates]] | ||
</noinclude><includeonly>{{#switch:{{{#userparam|}}} | </noinclude><includeonly>{{#switch:{{{#userparam|}}} | ||
|intro={{{!}} border="1" class="wikitable" | |intro={{{!}} border="1" class="wikitable" |
Latest revision as of 10:49, 12 December 2018
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.