Difference between revisions of "Template:List Locations/doc"
From Salem Wiki
(Initial setup) |
m (testdata page has moved) |
||
Line 15: | Line 15: | ||
}}</pre> | }}</pre> | ||
:It can accept one parameter, '''''page''''', to select the page to fetch values of [[Property:Locations]] from. | :It can accept one parameter, '''''page''''', to select the page to fetch values of [[Property:Locations]] from. | ||
− | :This parameter defaults to the [[ | + | :This parameter defaults to the [[Help:Infobox/testdata|test-data]] page. |
==Examples== | ==Examples== | ||
<ol> | <ol> | ||
<li>{{t|List Locations}} gives:<br/>{{List Locations}}</li> | <li>{{t|List Locations}} gives:<br/>{{List Locations}}</li> | ||
− | <li>{{t|List Locations|page<nowiki>=</nowiki> | + | <li>{{t|List Locations|page<nowiki>=</nowiki>Help:Infobox/testdata}} gives:<br/>{{List Locations|page=Help:Infobox/testdata}}</li> |
</ol> | </ol> | ||
<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> |
Revision as of 07:24, 14 July 2012
Description
- This template is used to automatically list the values of Property:Locations using an SMW-Query that makes use of 'reverse-property' values.
- It uses {{List Locations/query template}} for output formating.
- This template is used by {{Infobox}}.
- See these pages for more SMW-documentation:
Syntax
- Type the below code somewhere on a page:
{{List Locations |page= }}
- It can accept one parameter, page, to select the page to fetch values of Property:Locations from.
- This parameter defaults to the test-data page.
Examples
- {{List Locations}} gives:
- {{List Locations|page=Help:Infobox/testdata}} gives: