Difference between revisions of "Template:Infobox/List AlchemyVals/doc"
From Salem Wiki
m (testdata page has moved) |
m (adding collapsing togle) |
||
Line 12: | Line 12: | ||
|page= | |page= | ||
}}</pre> | }}</pre> | ||
− | :It can accept | + | :It can accept 2 named parameters: |
− | :This parameter defaults to the [[Help:Infobox/testdata|test-data]] page. | + | :*'''''page''''' |
+ | :*:Selects the page to fetch [[Alchemy]] values from. | ||
+ | :*:This parameter defaults to the [[Help:Infobox/testdata|test-data]] page. | ||
+ | :*'''collapsed''' | ||
+ | :*:If assigned anything other than 'no', it will be collapsed by default. | ||
+ | :*:It defaults to 'no' | ||
+ | |||
==Examples== | ==Examples== | ||
<ol> | <ol> | ||
<li>{{t|Infobox/List AlchemyVals}} gives:<br/>{{Infobox/List AlchemyVals}}</li> | <li>{{t|Infobox/List AlchemyVals}} gives:<br/>{{Infobox/List AlchemyVals}}</li> | ||
− | <li>{{t|Infobox/List AlchemyVals|page<nowiki>=</nowiki>Help:Infobox/testdata}} gives:<br/>{{Infobox/List AlchemyVals|page=Help:Infobox/testdata}}</li> | + | <li>{{t|Infobox/List AlchemyVals|page<nowiki>=</nowiki>Help:Infobox/testdata|collapsed<nowiki>=</nowiki>y}} gives:<br/>{{Infobox/List AlchemyVals|page=Help:Infobox/testdata|collapsed=y}}</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 18:15, 14 July 2012
Description
- This template is used to automatically list the Alchemy values of a page..
- This template is used by {{Infobox}}.
- See these pages for more SMW-documentation:
Syntax
- Type the below code somewhere on a page:
{{Infobox/List AlchemyVals |page= }}
- It can accept 2 named parameters:
Examples
- {{Infobox/List AlchemyVals}} gives:
Provided Alchemy values: Humours - {{Infobox/List AlchemyVals|page=Help:Infobox/testdata|collapsed=y}} gives:
Provided Alchemy values: Humours