From GamingWiki
Jump to: navigation, search
(Created page with "Use this template to print a table of locations in Steel Town: <code><nowiki>{{Steel Town/Locations}}</nowiki></code> You can also specify the number of results to return. If ...")
 
 
(One intermediate revision by the same user not shown)
Line 8: Line 8:
  
 
For example:
 
For example:
{{#vardefine: defaultlimit|5}}
 
 
<onlyinclude><!--
 
<onlyinclude><!--
  -->{{#ask: [[campaign::Steel Town]] [[is a::location]]
+
-->{{#if:{{#vardefineecho:defaultlimit|{{{limit|<noinclude>5</noinclude>}}}}}|<!--
|? idea
+
-->{{#ask: [[campaign::Steel Town]] [[is a::location]]
|? has aspect=Aspect
+
  |? idea
|? face
+
  |? has aspect=Aspect
| default      =No locations listed
+
  |? face
| format      =table
+
  | default      =No locations listed
| template    =SMW Locations Table
+
  | format      =table
{{#if:{{{limit| {{#var: defaultlimit}} }}}|
+
  | template    =SMW Locations Table
   {{!}} limit ={{{limit|{{#var:defaultlimit}}}}}
+
  | limit       ={{#var:defaultlimit}}
   {{!}} order =random
+
  | order        =random
}}
+
   }}<!--
}}<!--  
+
-->|<!--
 +
-->{{#ask: [[campaign::Steel Town]] [[is a::location]]
 +
  |? idea
 +
  |? has aspect=Aspect
 +
  |? face
 +
  | default      =No locations listed
 +
  | format      =table
 +
   | template    =SMW Locations Table
 +
  }}<!--
 +
-->}}<!--  
  
 
--></onlyinclude>
 
--></onlyinclude>

Latest revision as of 22:32, 21 September 2011

Use this template to print a table of locations in Steel Town:

{{Steel Town/Locations}}

You can also specify the number of results to return. If you do, a random set of locations will be chosen.

{{Steel Town/Locations | limit=7}}

For example: {{#ask: campaign::Steel Town is a::location

  |? idea
  |? has aspect=Aspect
  |? face
  | default      =No locations listed
  | format       =table
  | template     =SMW Locations Table
  | limit        =5
  | order        =random
  }}