From GamingWiki
(Created page with "Get a listing of organizations in the given campaign. The one required argument to this template is the campaign name. <onlyinclude><!-- -->{{#vardefine: campaign | {{{1| Prope...") |
|||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
Get a listing of organizations in the given campaign. | Get a listing of organizations in the given campaign. | ||
− | The | + | The only argument to this template is the campaign name, and if that is omitted the "campaign" property of the current page will be used. |
+ | <!-- | ||
+ | |||
+ | --><onlyinclude><!-- | ||
+ | -->{{#vardefine: campaign | {{{1| {{#show: {{PAGENAME}} | ?campaign#}} }}} }}<!-- | ||
+ | --></onlyinclude><!-- | ||
+ | |||
+ | --> | ||
+ | Here is what this template looks like when called on a page belonging to the {{#vardefineecho: campaign|Steel Town}} campaign: | ||
+ | |||
+ | <pre> {{Organization listing}}</pre> | ||
+ | |||
<onlyinclude><!-- | <onlyinclude><!-- | ||
− | -->{{# | + | -->{{#if: {{#var:campaign}} | <!-- |
− | + | -->{{#ask: [[Organization in campaign::{{#var:campaign}}]] | |
− | -->{{#ask: [[Organization in campaign::{{#var:campaign}}]] | + | |?high concept= |
− | |?high concept= | + | | format = ul |
− | | format = ul | + | | template = SMW character list item |
− | | template = SMW character list item | + | | default =: No organizations found for campaign: [[{{#var:campaign}}]] |
− | | default =: No organizations found for campaign: [[{{#var:campaign}}]] | + | }}<!-- |
− | }}<!-- | + | -->|''template error: no campaign name provided''<!-- |
+ | -->}}<!-- | ||
--></onlyinclude> | --></onlyinclude> | ||
+ | [[Category: campaign templates]] |
Latest revision as of 20:31, 30 May 2014
Get a listing of organizations in the given campaign.
The only argument to this template is the campaign name, and if that is omitted the "campaign" property of the current page will be used.
Here is what this template looks like when called on a page belonging to the Steel Town campaign:
{{Organization listing}}
{{#ask: Organization in campaign::Steel Town
|?high concept= | format = ul | template = SMW character list item | default =: No organizations found for campaign: Steel Town }}