chiark / gitweb /
characterbox template
authorSenji <senji@ysolde.ucam.org>
Sat, 22 Aug 2015 18:51:10 +0000 (19:51 +0100)
committerSenji <senji@ysolde.ucam.org>
Sat, 22 Aug 2015 18:51:10 +0000 (19:51 +0100)
templates/character.mdwn [new file with mode: 0644]

diff --git a/templates/character.mdwn b/templates/character.mdwn
new file mode 100644 (file)
index 0000000..83ebe36
--- /dev/null
@@ -0,0 +1,30 @@
+[[!templatebody <<ENDBODY
+<span class="infobox">
+Name: <TMPL_VAR name><br />
+<TMPL_IF house>House: <TMPL_VAR house><br /></TMPL_IF>
+<TMPL_IF job>Job: <TMPL_VAR job><br /></TMPL_IF>
+<TMPL_IF rank>Rank: <TMPL_VAR rank><br /><TMPL_IF>
+<TMPL_IF covenant>Covenant: <TMPL_VAR covenant><br /><TMPL_IF>
+<hr />
+Born: [[<TMPL_VAR born>|Date/<TMPL_VAR born>]]<br />
+<TMPL_IF died>Died: [[<TMPL_VAR died>|Date/<TMPL_VAR died>]]<br /></TMPL_IF>
+Updated: [[<TMPL_VAR updated>|Date/<TMPL_VAR updated>]]<br />
+<TMPL_IF longpot>App Age: <TMPL_VAR appage><br />
+Long Pot: <TMPL_VAR longpot> levels</TMPL_IF><br />
+ENDBODY]]
+
+This template is used to create an infobox for a character.  It uses
+these parameters:
+
+<ul>
+<li>name - the name of the character
+<li>house - the house of the character (optional)
+<li>job - the job of the character (optional)
+<li>rank - the rank of the character (optional)
+<li>covenant - the covenant of the character (optional)
+<li>born - the birthdate of the character, in the form 1216/01/31
+<li>died - the deathdate of the character, in the form 1216/01/31 (optional)
+<li>updated - when this page was last updated
+<li>longpot - the level of the character's longevity pot (optional)
+<li>appage - the apparent age of the character (mandatory if longpot set)
+</ul>