From GamingWiki
Jump to: navigation, search
 
(49 intermediate revisions by the same user not shown)
Line 4: Line 4:
  
 
-->{{#vardefine: campaign | {{{campaign|M_NUL}}} }}<!--
 
-->{{#vardefine: campaign | {{{campaign|M_NUL}}} }}<!--
 +
-->{{#vardefine: key      | {{anchorencode:{{PAGENAME}}}} }}<!--
 +
-->{{#vardefine: map page | {{#ask:[[is a::campaign map]][[campaign::{{#var:campaign}}]]|link=none}} }}<!--
 +
-->{{#vardefine: map      | {{#if:{{#var:map page}}|{{#var:map page}}#{{#var:key}}}} }}<!--
 +
-->{{#vardefine: altmap  | {{#if:{{#var:map page}}|{{#var:map page}}/{{#var:key}}}} }}<!--
 +
-->{{#vardefine: is mapped}}<!--
  
 
-->{{#set:
 
-->{{#set:
| campaign    = {{#var:campaign}}
+
| is in campaign    = {{#var:campaign}}
 
| is a        = location
 
| is a        = location
| key        = {{anchorencode:{{PAGENAME}}}}
+
| key        = {{#var:key}}
 
}}<!--
 
}}<!--
  
--><!--{{#if:{{{aspect|}}}      | {{#set: has aspect  = {{{aspect}}}      }} }}--><!--
+
  we may have several aspects
 
-->{{#if:{{{aspect|{{{aspects|}}}}}}|<!--
 
-->{{#if:{{{aspect|{{{aspects|}}}}}}|<!--
  we may have several aspects
+
   -->{{#arraydefine: aspectarray | {{{aspect|{{{aspects}}}}}} | ; }}<!--
   -->{{#arraydefine: aspectarray | {{{aspect|{{{aspects}}}}}} | ;; }}<!--
 
 
   -->{{#arrayprint:  aspectarray | | @@@@ | {{#set:has aspect=@@@@}} }}<!--
 
   -->{{#arrayprint:  aspectarray | | @@@@ | {{#set:has aspect=@@@@}} }}<!--
 
-->}}<!--
 
-->}}<!--
Line 24: Line 28:
 
   we may have several faces
 
   we may have several faces
 
   -->{{#arraydefine: facearray | {{{face}}} | ; }}<!--
 
   -->{{#arraydefine: facearray | {{{face}}} | ; }}<!--
   -->{{#arrayprint:  facearray | | @@@@ | {{#set: face = @@@@ }} }}<!--
+
   -->{{#arrayprint:  facearray | | @@@@ | {{#set: has face = @@@@ }} }}<!--
 +
-->}}<!--
 +
-->{{#if:{{{address|}}}    | <!--
 +
  -->{{#set: address    = {{{address}}}    }}<!--
 +
  -->{{#vardefine: is mapped | 1}} <!--
 
-->}}<!--
 
-->}}<!--
-->{{#if:{{{address|}}}    | {{#set: address    = {{{address}}}    }} }}<!--
 
 
-->{{#ifeq:{{{lat|}}}|||{{#ifeq:{{{lng|}}}|||<!--
 
-->{{#ifeq:{{{lat|}}}|||{{#ifeq:{{{lng|}}}|||<!--
 +
  -->{{#vardefine: latlng|{{{lat}}},{{{lng}}}}}<!--
 
   -->{{#set:  
 
   -->{{#set:  
 
       | lat = {{{lat}}}
 
       | lat = {{{lat}}}
Line 33: Line 41:
 
       | latlng = {{{lat}}}, {{{lng}}}  
 
       | latlng = {{{lat}}}, {{{lng}}}  
 
       }}<!--
 
       }}<!--
 +
  -->{{#vardefine: is mapped | 1}}<!--
 
-->}}}}<!--
 
-->}}}}<!--
 +
-->{{#if:{{{zoom|}}}        | {{#set: zoom        = {{{zoom}}}        }} }}<!--
 +
-->{{#if:{{{corners|}}}    | {{#set: corners    = {{{corners}}}    }} }}<!--
 +
-->{{#if:{{#var:is mapped}} | {{#set: map        = {{#var:map}}      }} }}<!--
 +
-->{{#if:{{#var:is mapped}} | {{#set: altmap      = {{#var:altmap}}  }} }}<!--
  
 
   Lay out the location page.
 
   Lay out the location page.
  
-->{{#if: {{{image|}}} | [[Image:{{{image}}}|right|200px]] }}<!--
+
-->{{#if: {{{image|}}} | [[Image:{{{image}}}|right|400px]] }}<!--
 +
  Static GMaps image
 +
-->{{#if: {{#var: is mapped}} |<!--
 +
  -->{{#vardefine: GMCentre|{{#var:latlng|{{#urlencode:{{{address}}}}}}}}}<!--
 +
  --><html><a href="</html>{{#var:map|{{#var:map page}}}}<html>"><img style="float:right;" src="http://maps.googleapis.com/maps/api/staticmap?center=</html>{{#var:GMCentre}}<html>&zoom=</html>{{{zoom|14}}}<html>&size=200x200&maptype=roadmap&sensor=false" /></a></html><!--
 +
-->}}<!--
 +
 
 +
-->{{#if:{{#arrayprint:aspectarray|}}|
 +
'''Aspects:''' <!--
 +
  -->{{#arrayprint:  aspectarray |, | @@@@ | {{aspect|@@@@}} }}<!--
 +
  --><nowiki />
 +
 
 +
<nowiki /><!--
 +
-->}}<!--
 +
 
 +
-->{{#if:{{#arrayprint:facearray|}}|
 +
'''Face:''' <!--
 +
  -->{{#arrayprint:  facearray |, | @@@@ | [[@@@@]] }}<!--
 +
  --><nowiki />
  
-->{{#if:{{{aspect|}}}|
+
<nowiki /><!--
'''Aspect: <span class="aspect">{{{aspect}}}</span>'''
+
-->}}<!--
}}<!--
+
 
 +
-->{{#if:{{{description|}}}|
 +
{{{description}}} <nowiki />
 +
 
 +
<nowiki />}}<!--
 +
 
 +
-->{{#if:{{{ps|}}}|
 +
{{{ps}}} <nowiki />
  
-->{{#if:{{{description|}}}| <nowiki />
+
<nowiki />}}<!--
  
{{{description}}} }}<!--
+
  If the map page is defined, we provide a link to it. If, in addition,
 +
  this location has coordinate information, we link to this location's
 +
  page anchor.
 +
-->{{#if: {{#var: is mapped}}<!--
 +
  -->| {{#if:{{#var:map}}| <nowiki />
  
-->{{#if:{{{ps|}}}| <nowiki />
+
[[{{#var:map}}|Show in map]] }}<!--
 +
  -->| {{#if:{{#var:map page}}| <nowiki />
  
{{{ps}}} }}<!--
+
[[{{#var:map page}}|View campaign map]] }}<!--
 +
-->}}<!--
  
--><!--[[Category: {{#var:campaign}}]]--><!--
 
 
-->[[Category: Locations in {{#var:campaign}}]]<!--
 
-->[[Category: Locations in {{#var:campaign}}]]<!--
 
-->{{#switch: {{{threshold}}}
 
-->{{#switch: {{{threshold}}}
| strong = [[Category: Strong thresholds]]
+
| strong = {{#set:threshold=strong}}[[Category: Strong thresholds]]
| weak  = [[Category: Weak thresholds]]
+
| weak  = {{#set:threshold=weak}}[[Category: Weak thresholds]]
| none  = [[Category: Absent thresholds]]
+
| none  = {{#set:threshold=none}}[[Category: Absent thresholds]]
 
}}<!--
 
}}<!--
  
  
--></includeonly>
+
--><nowiki/>
 +
 
 +
<nowiki/></includeonly>

Latest revision as of 14:27, 20 January 2016

[edit] [purge]
Error creating thumbnail: File missing
Template documentation

Use this template for locations in FATE games.

Usage[edit]

{{#set: | is in campaign = Steel Town | is a = location | key = Location }}{{#set:has aspect=Location aspect}}{{#set: description = Location description }}{{#set: ps = Optional secondary description }}{{#set: idea = Idea }}{{#set: has face = Face Name }}{{#set: address = Address including postal code }}{{#set: map = {{#ask:is a::campaign mapcampaign::Steel Town|link=none}}#Location }}{{#set: altmap = {{#ask:is a::campaign mapcampaign::Steel Town|link=none}}/Location }}is a::campaign mapcampaign::Steel Town|link=none}}#Location">Aspects: Location aspect

Face: Face Name

Location description

Optional secondary description

[[{{#ask:is a::campaign mapcampaign::Steel Town|link=none}}#Location|Show in map]]

{{Steel Town location
| idea        = Idea
| aspect      = Location aspect
| face        = Face Name
| address     = Address including postal code
| lat         = 
| lng         = 
| threshold   = strong, weak or none
| description = Location description
| ps          = Optional secondary description
}}