From GamingWiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
--><onlyinclude><!--
 
--><onlyinclude><!--
 
-->{{#vardefine: campaign | {{{1| {{#show: {{PAGENAME}} | ?campaign#}} }}} }}<!--
 
-->{{#vardefine: campaign | {{{1| {{#show: {{PAGENAME}} | ?campaign#}} }}} }}<!--
 +
-->{{#vardefine: limit    | {{{limit|}}} }}<!--
 
--></onlyinclude><!--
 
--></onlyinclude><!--
  
 
-->
 
-->
Here is what this template looks like when called on a page belonging to the {{#vardefineecho: campaign|Ghost Town}} campaign:
+
Here is what this template looks like when called on a page belonging to the {{#vardefineecho: campaign|Humans are the Worst}} campaign, limiting the number of results to {{#vardefineecho: limit|5}}:
  
 
<pre>
 
<pre>
Line 21: Line 22:
 
   |?high concept=
 
   |?high concept=
 
   | format = ul
 
   | format = ul
 +
  | limit = {{#var:limit}}
 +
  | order = {{#if: {{#var:limit}}|random|asc}}
 
   | template = SMW character list item
 
   | template = SMW character list item
 
   | default =: No NPCs found for campaign: [[{{#var:campaign}}]]
 
   | default =: No NPCs found for campaign: [[{{#var:campaign}}]]

Latest revision as of 01:59, 6 July 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 Humans are the Worst campaign, limiting the number of results to 5:

  {{NPC listing}}

{{#ask: NPC in campaign::Humans are the Worst

  |?high concept=
  | format = ul
  | limit = 5
  | order = random
  | template = SMW character list item
  | default =: No NPCs found for campaign: Humans are the Worst
  }}