From GamingWiki
Line 17: | Line 17: | ||
<onlyinclude><!-- | <onlyinclude><!-- | ||
− | -->{{#ask: [[NPC in campaign::{{#var:campaign}}]] | + | -->{{#if: {{#var:campaign}} | <!-- |
− | |?high concept= | + | -->{{#ask: [[NPC in campaign::{{#var:campaign}}]] |
− | | format = ul | + | |?high concept= |
− | | template = SMW character list item | + | | format = ul |
− | | default =: No NPCs found for campaign: [[{{#var:campaign}}]] | + | | template = SMW character list item |
− | }}<!-- | + | | default =: No NPCs found for campaign: [[{{#var:campaign}}]] |
+ | }}<!-- | ||
+ | -->}}<!-- | ||
--></onlyinclude> | --></onlyinclude> | ||
[[Category: campaign templates]] | [[Category: campaign templates]] |
Revision as of 20:29, 30 May 2014
Get a listing of major NPCs 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 Ghost Town campaign:
{{NPC listing}}
{{#ask: NPC in campaign::Ghost Town
|?high concept= | format = ul | template = SMW character list item | default =: No NPCs found for campaign: Ghost Town }}