Difference between revisions of "Template:List Locations/doc"

From Salem Wiki
Jump to: navigation, search
(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 [[User:©TriMoon™/PropVals testdata|test-data]] page.
+
: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>User:©TriMoon™/PropVals testdata}} gives:<br/>{{List Locations|page=User:©TriMoon™/PropVals testdata}}</li>
+
<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

  1. {{List Locations}} gives:
  2. {{List Locations|page=Help:Infobox/testdata}} gives: