Difference between revisions of "Template:PropVals/doc"

From Salem Wiki
Jump to: navigation, search
m (Undo revision 5144 by ©TriMoon™ (talk) not used anymore)
m (Protected "Template:PropVals/doc": Documentation of key-feature ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 32: Line 32:
  
 
==Examples==
 
==Examples==
#{{t|PropVals|prop<nowiki>=</nowiki>RequiresObj|page<nowiki>=</nowiki>User:©TriMoon™/PropVals testdata|showamount<nowiki>=</nowiki>y}} gives:<br/>{{PropVals|prop=RequiresObj|page=User:©TriMoon™/PropVals testdata|showamount=y}}
+
#{{t|PropVals|prop<nowiki>=</nowiki>RequiresObj|page<nowiki>=</nowiki>Help:Infobox/testdata|showamount<nowiki>=</nowiki>y}} gives:<br/>{{PropVals|prop=RequiresObj|page=Help:Infobox/testdata|showamount=y}}
#{{t|PropVals|prop<nowiki>=</nowiki>RequiresObj|page<nowiki>=</nowiki>User:©TriMoon™/PropVals testdata|showamount<nowiki>=</nowiki>y|debug<nowiki>=</nowiki>y}} gives:<br/>{{PropVals|prop=RequiresObj|page=User:©TriMoon™/PropVals testdata|showamount=y|debug=y}}
+
#{{t|PropVals|prop<nowiki>=</nowiki>RequiresObj|page<nowiki>=</nowiki>Help:Infobox/testdata|showamount<nowiki>=</nowiki>y|debug<nowiki>=</nowiki>y}} gives:<br/>{{PropVals|prop=RequiresObj|page=Help:Infobox/testdata|showamount=y|debug=y}}
  
 
==Sub-templates==
 
==Sub-templates==
*Test data used in examples: [[User:©TriMoon™/PropVals testdata|PropVals testdata]]
+
*Test data used in examples: [[Help:Infobox/testdata|PropVals testdata]]
 
*{{t|PropVals/Group}}
 
*{{t|PropVals/Group}}
 
*{{t|PropVals/Group/NextPart}}
 
*{{t|PropVals/Group/NextPart}}
Line 45: Line 45:
 
*{{t|PropVals/getGroupedRecords}}
 
*{{t|PropVals/getGroupedRecords}}
 
*{{t|PropVals/getRecords}}
 
*{{t|PropVals/getRecords}}
 +
*{{t|PropVals/getIcon}}
 
<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 18:14, 25 July 2012

Description

This is the main-entry-point of a complex template-class
It is used to automatically list all the values of a property of a page as an un-ordered list.
This generated-output will be used in {{Infobox}} to automatically show relevant info.
See these pages for documentation on functions used:
Other pages with relevant info are:

Functional logic

Syntax

Type the below code somewhere inside {{Infobox}} or a page:
{{PropVals |prop=RequiresObj |page={{FULLPAGENAME}} |sep={{{sep|;}}} |grpsep={{{grpsep|/\}}} |showamount={{{showamount|no}}} }}

Examples

  1. {{PropVals|prop=RequiresObj|page=Help:Infobox/testdata|showamount=y}} gives:
    • {{PropVals|prop=RequiresObj|page=Help:Infobox/testdata|showamount=y|debug=y}} gives:

      Sub-templates