Template:List to Icons Table: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 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 envoke the intro, outro, a 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.
<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>
|header={{!}}-
But its usage in practice is like this with the middle two calls of the header and actual query being repeated as necessary
colspan="3"|{{{header|}}}
<pre>
 
{{List to Icons Table|#userparam=intro}}
 
{{List to Icons Table|#userparam=header|header=Nature Activities (hiking, biking, etc.) (Infobox Icon Type: Activities)}}
{{#switch:{{{userparam|}}}
{{#ask:[[Category:Infobox Icons]][[Infobox Icon Type::Activities]]
|intro={{{!}} border="1" class="wikitable"
|mainlabel=image
{{!}}-
|?Has Caption=description
! Image Monkey
|?Semantic Keyword=keyword
! Description
|format=plainlist
! Semantic property
|headers=hide
|outro={{!}}} Done!
|link=none
|row={{!}}-
|template=List to Icons Table
{{!}}[[{{{image|}}}|center|50px]]
|userparam=row
{{!}}{{{description|}}}
|named args=yes
{{!}}{{{keyword|}}}
}}
}}
{{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:Experimental]]
[[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 09: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.