====== Story (Template) ======

<template>
<WRAP 310px data right round box>
^ //**@@.subject@@**// ^

<if image>
@@image [image::300]@@
</if>

@@description@@

<if forum>**Related Topics**
<list ?f>
?s is a: story
?s [text] = @@.subject@@
?s Forum [forum]: ?f
sort {
  ?f (asc)
}
</list>
</if>

**Characters**\\
{{list> ?c [imagelink]" " | ?s is a: story; ?s [text] = @@.subject@@; ?s Characters [ref]: ?c }}

^ Factions | {{list> ?f | ?s is a: story; ?s [text] = @@.subject@@; ?s Factions [ref]: ?f }} |
^ Where | {{list> ?loc | ?s is a: story; ?s [text] = @@.subject@@; ?s Locations [ref]: ?loc }} |
| ||
^ When | @@start date@@ <if end date>-> @@end date@@</if><*if !end date> -> now (//still going//)</if> |
| ||
^ Related | {{list> ?c | ?s is a: story; ?s [text] = @@.subject@@; ?s related stories [ref]: ?c }} |

<view:list ?character ?reward ?experience ?mission >
template {
  story#jedi_rewards
}

?r is a: jedi_reward
?r Story [text]: @@.subject@@
?r Character [ref]: ?character
optional {
  ?r Reward [wiki]: ?reward
}
optional {
  ?r Experience: ?experience
}
optional {
  ?r Mission: ?mission
}
group {
  ?r
}
</view>
<view:list ?faction ?influence>
template {
  story#faction_rewards
}

?r is a: faction_reward
?r Story [text]: @@.subject@@
?r Faction [ref]: ?faction
optional {
  ?r Influence: ?influence
}
group {
  ?r
}
</view>

| <sub>(@@type@@ story<if Story Teller> told by @@Story Teller [ref]@@</if>)</sub> <wrap right><sub>[ [[tech:story model|D]], [[template:story|T]] ]</sub></wrap>|
</WRAP>

[ [[ic:stories]] ]
</template>

<template jedi_rewards>
  * @@character@unique [ref]@@:\\ <*if reward>@@reward@unique [wiki]@@,</if> <*if experience>+@@experience@unique@@(:xp)</if><*if mission>, +@@mission@unique@@ mission completion</if>
</template>

<template faction_rewards>
  * @@faction@unique [ref]@@:\\ <*if influence>+@@influence@unique@@(:ip)</if>
</template>
===== Listing template =====

This template is used in listings of stories, and has only two parameters: ''story'' and ''description''.

<template listing>
<WRAP round box>
//**@@story@@ <wrap lo>({{list> ?t | ?s Type: ?t; ?s [text] = @@story@@ }})</wrap>**//

@@description@@

{{list> ?c [imagelink]" " | ?s Characters [ref]: ?c; ?s [text] = @@story@@; ?c is a: character; ?c Type [rule]: ?type; sort { ?type (desc); } }}
</WRAP>
</template>