From GamingWiki
Line 1: | Line 1: | ||
Get a listing of major NPCs in the given campaign. | Get a listing of major NPCs 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><!-- | + | <!-- |
+ | |||
+ | --><onlyinclude><!-- | ||
-->{{#vardefine: campaign | {{{1| {{#show: {{PAGENAME}} | ?campaign#}} }}} }}<!-- | -->{{#vardefine: campaign | {{{1| {{#show: {{PAGENAME}} | ?campaign#}} }}} }}<!-- | ||
+ | --></onlyinclude><!-- | ||
--> | --> | ||
− | + | Here is what this template looks like when called on a page belonging to the {{#vardefineecho: campaign|Ghost Town}} campaign: | |
− | <!-- | + | |
+ | <pre> | ||
+ | {{NPC listing}} | ||
+ | </pre> | ||
+ | |||
+ | <onlyinclude><!-- | ||
− | -->{{#ask: [[ | + | -->{{#ask: [[NPC in campaign::{{#var:campaign}}]] |
|?high concept= | |?high concept= | ||
| format = ul | | format = ul | ||
| template = SMW character list item | | template = SMW character list item | ||
− | | default =: No | + | | default =: No NPCs found for campaign: [[{{#var:campaign}}]] |
}}<!-- | }}<!-- | ||
--></onlyinclude> | --></onlyinclude> |
Revision as of 14:00, 11 April 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 }}