Difference between revisions of "Template:PropVals/getRecords"
From Salem Wiki
(Initial setup) |
m (Protected "Template:PropVals/getRecords": Key feature of wiki ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(No difference)
|
Latest revision as of 18:16, 25 July 2012
Template documentation (for the template shown above, sometimes hidden or invisible)
Description
- This template is used to retrieve all records for the property of the page asked for, using an SMW-inline-query.
- {{PropVals/getGroupedRecords}} will use the generated-output of this template to inject extra arguments into {{PropVals/Group}}.
- See these pages for documentation on functions used:
Syntax
- Type the below code somewhere in your code:
{{PropVals/getRecords |prop={{{prop|RequiresObj}}} |page={{{page|{{FULLPAGENAME}} }}} }}
- It accepts 2-named parameters to control the SMW-Query:
- prop
- Mandatory; The name of the property to retrieve.
- page
- Optional; The name of the page to consult the property from.
- prop
Examples
- {{PropVals/getRecords|prop=RequiresObj|page=User:©TriMoon™/PropVals testdata }} gives:
Visit Template:PropVals/getRecords/doc to edit this text! (How does this work?)