chiark / gitweb /
(no commit message)
[ArtibusWiki.git] / templates / character.mdwn
index 83ebe3617141ca9d71708e9248023eb0a14faa2e..fb693a5490c5585f45fa13760fc886baf9aad696 100644 (file)
@@ -1,18 +1,26 @@
-[[!templatebody <<ENDBODY
-<span class="infobox">
+<TMPL_IF name>
+<div 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>
+<TMPL_IF rank>Rank: <TMPL_VAR rank><br /></TMPL_IF>
+<TMPL_IF covenant>Covenant: <TMPL_VAR covenant><br /></TMPL_IF>
 <hr />
+<TMPL_IF parens>Parens: <TMPL_VAR parens><br /></TMPL_IF>
+<TMPL_IF origin>Origin: <TMPL_VAR origin><br /></TMPL_IF>
+<TMPL_IF ethnicity>Ethnicity: <TMPL_VAR ethnicity><br /></TMPL_IF>
+<TMPL_IF religion>Religion: <TMPL_VAR religion><br /></TMPL_IF>
+<hr />
+Date: [[<TMPL_VAR updated>|Date/<TMPL_VAR updated>]]<br />
 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]]
-
+<TMPL_IF age>Age: <TMPL_VAR age><br /></TMPL_IF>
+<TMPL_IF appage>Apparent Age: <TMPL_VAR appage><br /></TMPL_IF>
+<TMPL_IF longpot>Long Pot: <TMPL_VAR longpot> levels<br /></TMPL_IF>
+<TMPL_IF image><hr />
+<TMPL_VAR image></TMPL_IF>
+</div>
+<TMPL_ELSE>
 This template is used to create an infobox for a character.  It uses
 these parameters:
 
@@ -22,9 +30,16 @@ these parameters:
 <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>parens - the parens of the character (optional)
+<li>origin - where the character was born (optional)
+<li>ethnicity - the character's ethnicity (optional)
+<li>religion - the character's current religion (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>updated - when this page was last updated, in the form 1216/01/31
 <li>longpot - the level of the character's longevity pot (optional)
-<li>appage - the apparent age of the character (mandatory if longpot set)
+<li>age - the age of the character
+<li>appage - the apparent age of the character
+<li>image - space for an image (in wiki markup) (optional)
 </ul>
+</TMPL_IF>