]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
Revert "Use templatebody for the templates in the basewiki and docwiki"
authorSimon McVittie <smcv@debian.org>
Mon, 15 Sep 2014 22:12:53 +0000 (23:12 +0100)
committerSimon McVittie <smcv@debian.org>
Mon, 15 Sep 2014 22:12:53 +0000 (23:12 +0100)
This reverts commit 236c46a3f7e5e62296484dc47b4882f7f4327a06.
We can't apply this bit until the ikiwiki on ikiwiki.info
(i.e. Branchable) supports [[!templatebody]].

doc/templates/gitbranch.mdwn
doc/templates/links.mdwn
doc/templates/note.mdwn
doc/templates/plugin.mdwn
doc/templates/popup.mdwn

index 4ea73c91b24c6d6f6b545caf7d9334a22c1c62b4..853da92801ffc8c039c29f9133238cd4342aa4d6 100644 (file)
@@ -1,11 +1,9 @@
-[[!templatebody <<ENDBODY
 <div class="infobox">
 Available in a [[!taglink /git]] repository [[!taglink branch|/branches]].<br />
 Branch: <TMPL_IF browse><a href="<TMPL_VAR browse>"></TMPL_IF><TMPL_VAR branch><TMPL_IF browse></a></TMPL_IF><br />
 <TMPL_IF author>Author: <TMPL_VAR author><br /></TMPL_IF>
 </div>
-ENDBODY]]
-
+<TMPL_UNLESS branch>
 This template is used to create an infobox for a git branch. It uses
 these parameters:
 
@@ -15,3 +13,4 @@ these parameters:
   (e.g. github/master)</li>
 <li>author - the author of the branch</li>
 </ul>
+</TMPL_UNLESS>
index 3239a59c239ff49bdba5a444a755ea6d3a1c1d65..4bd1a85bf9559c1d6f38c378f9a696b2f21298b3 100644 (file)
@@ -1,4 +1,3 @@
-[[!templatebody <<ENDBODY
 <div class="infobox">
 [[ikiwiki_logo|logo/ikiwiki.png]]  
 <ul>
@@ -15,6 +14,3 @@
 <img src="https://api.flattr.com/button/flattr-badge-large.png"
 alt="Flattr this" title="Flattr this" /></a>
 </div>
-ENDBODY]]
-
-This template contains the navigation links used on the front page.
index 8de7374bc0c1a096cbe10fb26606547d99a0bae5..9ef5ad9421abcdb730996dc51a621ea5e74340fa 100644 (file)
@@ -1,12 +1,11 @@
-[[!templatebody <<ENDBODY
 <div class="notebox">
 <TMPL_VAR text>
 </div>
-ENDBODY]]
-
+<TMPL_UNLESS text>
 Use this template to insert a note into a page. The note will be styled to
 float to the right of other text on the page. This template has one
 parameter:
 <ul>
 <li>`text` - the text to display in the note
 </ul>
+</TMPL_UNLESS>
index d36dd5f85172c4db42eae534ae4919d355d45915..322c494457af3768e54dbeaa56b6884902a42d3b 100644 (file)
@@ -1,4 +1,3 @@
-[[!templatebody <<ENDBODY
 <span class="infobox">
 Plugin: <TMPL_VAR name><br />
 Author: <TMPL_VAR author><br />
@@ -9,8 +8,7 @@ Currently enabled: [[!if test="enabled(<TMPL_VAR name>)" then="yes" else="no"]]<
 </span>
 [[!if test="sourcepage(plugins/contrib/*)" then="""[[!meta title="<TMPL_VAR name> (third party plugin)"]]"""]]
 <TMPL_IF core>[[!tag plugins/type/core]]</TMPL_IF>
-ENDBODY]]
-
+<TMPL_UNLESS name>
 This template is used to create an infobox for an ikiwiki plugin. It uses
 these parameters:
 <ul>
@@ -18,3 +16,4 @@ these parameters:
 <li>author - the author of the plugin
 <li>core - set to a true value if the plugin is enabled by default
 </ul>
+</TMPL_UNLESS>
index b721a95f9febee926f2ba220ece3cf837c25a16d..92455eb216acf1df2250dd8d14026bb743179b64 100644 (file)
@@ -1,3 +1,4 @@
+<TMPL_UNLESS mouseover>
 Use this template to create a popup window that is displayed when the mouse
 is over part of the page. This template has two parameters:
 <ul>
@@ -9,9 +10,7 @@ large for good usability.
 </ul>
 Note that browsers that do not support the CSS will display the popup
 inline in the page, inside square brackets.
-
-[[templatebody <<ENDBODY
+</TMPL_UNLESS>
 <span class="popup"><TMPL_VAR mouseover>
 <span class="paren">[</span><span class="balloon"><TMPL_VAR popup></span><span class="paren">]</span>
 </span>
-ENDBODY]]