Difference between revisions of "Template:List MenuEntries/query template"
From Salem Wiki
m (display icon-image from 'Has icon' property when available, and display the 'Unknown Item icon.png' when not available or not existing.) |
m (correcting link on no-prop unknown-icon link.) |
||
Line 1: | Line 1: | ||
<onlyinclude><li><!-- | <onlyinclude><li><!-- | ||
-->[[{{#if: {{HasProp | -->[[{{#if: {{HasProp | ||
− | |page={{#titleparts: {{{1| | + | |page={{#titleparts: {{{1|}}} ||-1 }} |
|Has icon | |Has icon | ||
}} | }} | ||
Line 19: | Line 19: | ||
}}{{!}}No image found, click to upload | }}{{!}}No image found, click to upload | ||
}} | }} | ||
− | | Image:Unknown Item icon.png{{!}}link=: | + | | 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 }}]].<!-- | }}]] [[{{{1|Anvil}}} | {{#titleparts: {{{1|Somepage/Anvil}}} ||-1 }}]].<!-- | ||
--></li></onlyinclude><noinclude>{{documentation}}</noinclude> | --></li></onlyinclude><noinclude>{{documentation}}</noinclude> |
Revision as of 15:28, 3 July 2012
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.
Visit Template:List MenuEntries/query template/doc to edit this text! (How does this work?)