chiark / gitweb /
We don't hate templatebody in this version of ikiwiki
authorSenji <senji@ysolde.ucam.org>
Sat, 22 Aug 2015 19:03:47 +0000 (20:03 +0100)
committerSenji <senji@ysolde.ucam.org>
Sat, 22 Aug 2015 19:03:47 +0000 (20:03 +0100)
templates/character.mdwn

index 99c90b4042d32594562a333f55f0341684daacb4..30c4cd5456e536c1213f951055c115df543ccc8f 100644 (file)
@@ -1,5 +1,5 @@
-[[!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>
@@ -11,8 +11,8 @@ Born: [[<TMPL_VAR born>|Date/<TMPL_VAR born>]]<br />
 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]]
-
+</div>
+<TMPL_ELSE>
 This template is used to create an infobox for a character.  It uses
 these parameters:
 
@@ -28,3 +28,4 @@ these parameters:
 <li>longpot - the level of the character's longevity pot (optional)
 <li>appage - the apparent age of the character (mandatory if longpot set)
 </ul>
+</TMPL_IF>