Difference between revisions of "Template:Infobox/List RequiredBys"
From Salem Wiki
(Initial setup) |
m (Protected "Template:Infobox/List RequiredBys": Key feature of wiki ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <onlyinclude></onlyinclude><noinclude>{{documentation}}</noinclude> | + | <onlyinclude><!-- |
+ | --><table class="Infobox mw-collapsible {{#ifeq: {{{collapsed|no}}} | no | | mw-collapsed}}" style="float:none;"><!-- | ||
+ | --><tr class="IBheader"><!-- | ||
+ | --><th><span>Required By:</span></th><!-- | ||
+ | --></tr><!-- | ||
+ | *** INFO *** | ||
+ | --><tr class="IBinfo"><td class="IBboth"><!-- | ||
+ | -->{{#ask:[[-RequiredBy::{{{page|Help:Infobox/testdata }}}]] | ||
+ | |format=ul | ||
+ | |limit={{{limit|10}}} | ||
+ | |link=none | ||
+ | |columns=2 | ||
+ | |template=PropVals/Print Entry | ||
+ | |userparam=no | ||
+ | }}</td></tr><!-- | ||
+ | --></table><!-- | ||
+ | --></onlyinclude><noinclude>{{documentation}}</noinclude> |
Latest revision as of 18:25, 25 July 2012
Required By: |
---|
Template documentation (for the template shown above, sometimes hidden or invisible)
Description
- This template is used to automatically list the RequiredBy values of a page, with an Embedded SMW-Query using reverse-property notation.
- This template uses {{PropVals/Print Entry}} as result-formater.
- This template is used by {{Infobox}}.
- See these pages for more SMW-documentation:
Syntax
- Type the below code somewhere on a page:
{{Infobox/List RequiredBys |page= }}
- It can accept 3 named parameters:
- page
- Selects the page to fetch RequiredBy values from.
- This parameter defaults to the test-data page.
- collapsed
- If assigned anything other than 'no', it will be collapsed by default.
- It defaults to 'no'
- limit
- Amount of entries to display before a “...further results” appears.
- it defaults to '10'
- page
Examples
- {{Infobox/List RequiredBys}} gives:
Required By: - {{Infobox/List RequiredBys|page=Help:Infobox/testdata|collapsed=y}} gives:
Required By:
Visit Template:Infobox/List RequiredBys/doc to edit this text! (How does this work?)