From GamingWiki
(2 intermediate revisions by the same user not shown) | |||
Line 9: | Line 9: | ||
--> | --> | ||
− | Here is what this template looks like when called on a page belonging to the {{#vardefineecho: campaign|Humans are the Worst}} campaign: | + | Here is what this template looks like when called on a page belonging to the [[{{#vardefineecho: campaign|Humans are the Worst}}]] campaign: |
<pre> | <pre> | ||
Line 17: | Line 17: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
− | -->{{#ask: [[PC in campaign::{{#var:campaign}}]] | + | -->{{#if: {{#var:campaign}} | <!-- |
− | |?high concept # - | + | -->{{#ask: [[PC in campaign::{{#var:campaign}}]] |
− | |?player= | + | |?high concept # - |
− | | format = ul | + | |?player= |
− | | template = SMW character list item | + | | format = ul |
− | | default =: No PCs found for campaign: [[{{#var:campaign}}]] | + | | template = SMW character list item |
− | }}<!-- | + | | default =: No PCs found for campaign: [[{{#var:campaign}}]] |
+ | }}<!-- | ||
+ | -->|''template error: no campaign name provided''<!-- | ||
+ | -->}}<!-- | ||
--></onlyinclude> | --></onlyinclude> | ||
[[Category: campaign templates]] | [[Category: campaign templates]] |
Latest revision as of 20:31, 30 May 2014
Get a listing of PCs 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 Humans are the Worst campaign:
{{PC listing}}
{{#ask: PC in campaign::Humans are the Worst
|?high concept # - |?player= | format = ul | template = SMW character list item | default =: No PCs found for campaign: Humans are the Worst }}