Difference between revisions of "Template:List MenuEntries/query template"

From Salem Wiki
Jump to: navigation, search
m (correcting link on no-prop unknown-icon link.)
m (Protected "Template:List MenuEntries/query template": Key feature of wiki ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
<onlyinclude><li><!--
 
<onlyinclude><li><!--
-->[[{{#if: {{HasProp
+
-->{{PropVals/getIcon
|page={{#titleparts: {{{1|}}} ||-1 }}
+
|{{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }}
|Has icon
+
}} [[{{{1|Anvil}}} | {{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }}]].<!--
}}
 
| {{#ifexist:
 
{{#show: {{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }}
 
|?Has icon
 
|link=none
 
}}
 
| {{#show: {{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }}
 
|?Has icon
 
|link=none
 
}}
 
| Image:Unknown Item icon.png{{!}}link=:{{
 
#show: {{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }}
 
|?Has icon
 
|link=none
 
}}{{!}}No image found, click to upload
 
}}
 
| Image:Unknown Item icon.png{{!}}link=:Image:{{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }} icon.png{{!}}No image found, click to upload
 
}}]] [[{{{1|Anvil}}} | {{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }}]].<!--
 
 
--></li></onlyinclude><noinclude>{{documentation}}</noinclude>
 
--></li></onlyinclude><noinclude>{{documentation}}</noinclude>

Latest revision as of 13:17, 25 July 2012

  • Anvil icon.png Anvil.

  • Template documentation (for the template shown above, sometimes hidden or invisible)

    Description

    This template is used to format the output-results of the SMW-Query used in {{List MenuEntries}}.
    It uses {{PropVals/getIcon|page}} to fetch the icon-image to display.
    See Inline queries to see how an inline query can use this to format the display of query results.