====== Location (template) ======
This is the template for locations.
~~NOTOC~~
@@Image [image::300]|ic:default-location.png@@
@@Description@@ <*if tags>//[ @@tags@@ ]//
@@->fields|exclude=image,tags,in,description, aspect,rating,hearthstone,attuned to, faction emblem,allegiance@@
--
-- Place an explicit 'Location information' header if the location is also a faction
--
template {
location#location information header
}
?self is a: faction
?self[text] = @@.subject[text]@@
<*if In>**Lies in**: @@In@@
template {
location#containment
}
?loc is a: location
?loc In [text]: @@.subject@@
group {
}
template {
location#residences
}
?person is a: person
?person Residence[text]: @@.subject@@
group {
}
--
-- This view triggers for any tag with the 'magical location' meta to
-- put a magical location information segment in the template
--
template {
location#magical location
}
?loc is a: location
?loc Tags[ref]: ?kind
?kind Meta: Magical Location
?kind entry title: ?kind_title
optional {
?loc Aspect: ?aspect
}
optional {
?loc Rating: ?rating
}
optional {
?loc Hearthstone[ref]: ?hearthstone
}
optional {
?loc Attuned To[ref]: ?attuned_to
}
?loc[text] = @@.subject[text]@@
--
-- This view triggers if the location is also a faction
--
template {
location#faction information
}
?self is a: faction
?self[text] = @@.subject[text]@@
optional {
?self Allegiance[ref]: ?allegiance
}
group {
?self
}
===== Conditional relation displays =====
**Contains:** @@loc@@
**Residence of: ** @@person@@
===== Magical Location =====
**//<*if aspect>@@aspect@@ @@kind_title@@ <*if !rating>information<*if rating> @@rating[dot::t5]@@//**
**Hearthstone:** @@hearthstone@@
**Attuned to** @@attuned_to@@
===== Faction multiplexing =====
**//Location information//**
**//Faction information//**
@@self[imagelink::64::ic:default-faction.png::Faction Emblem]@@
<*if Allegiance>**Allegiance to**: @@Allegiance@@
template {
faction#containment
}
?affiliations is a: faction
?affiliations Allegiance[text]: @@self@@
group {
}