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

From Salem Wiki
Jump to: navigation, search
m (→‎Description: updated with auto-icon info)
m (Protected "Template:List MenuEntries/query template/doc": Documentation of key-feature ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
==Description==
 
==Description==
 
:This template is used to format the output-results of the SMW-Query used in {{t|List MenuEntries}}.
 
:This template is used to format the output-results of the SMW-Query used in {{t|List MenuEntries}}.
:It uses {{t|HasProp|Has icon}}, on the page of the entry to be displayed, and use that as icon-image to display.
+
:It uses {{t|PropVals/getIcon|page}} to fetch the icon-image to display.
:If it can't find that property or the set image doesn't exist it will use [[Image:Unknown Item icon.png]] and link this image, so ppl can click it, to the last part of the entry-name followed by "_icon.png".
 
::fe. when an entry should be displayed for "somepage/subpage", then this link would point to "Image:subpage icon.png".
 
 
:See [http://semantic-mediawiki.org/wiki/Help:Inline_queries Inline queries] to see how an inline query can use this to format the display of query results.
 
:See [http://semantic-mediawiki.org/wiki/Help:Inline_queries Inline queries] to see how an inline query can use this to format the display of query results.
 
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself -->
 
<includeonly>[[Category:Templates|{{PAGENAME}}]]<!-- Any categories for the template itself -->
 
[[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]]
 
[[Category:Templates/©TriMoon™|{{SUBPAGENAME}}]]
 
</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
 
</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 13:17, 25 July 2012

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.