aboutsummaryrefslogtreecommitdiff
path: root/doc/templates
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-09-15 21:52:03 +0100
committerSimon McVittie <smcv@debian.org>2014-09-15 21:52:03 +0100
commit7f5c2cfa5a987d887f42d6db95f80f42ceb3b5ff (patch)
tree020a296316b69b723511ff5b327815f81dce3d46 /doc/templates
parent7660979f74f29560cd91220ade073d4ef2b9bcb0 (diff)
parentc04a26f3e70d654ccec5542daf8425e44cb5bac8 (diff)
downloadikiwiki-7f5c2cfa5a987d887f42d6db95f80f42ceb3b5ff.tar
ikiwiki-7f5c2cfa5a987d887f42d6db95f80f42ceb3b5ff.tar.gz
Merge branch 'ready/templatebody'
Diffstat (limited to 'doc/templates')
-rw-r--r--doc/templates/gitbranch.mdwn5
-rw-r--r--doc/templates/links.mdwn4
-rw-r--r--doc/templates/note.mdwn5
-rw-r--r--doc/templates/plugin.mdwn5
-rw-r--r--doc/templates/popup.mdwn5
5 files changed, 16 insertions, 8 deletions
diff --git a/doc/templates/gitbranch.mdwn b/doc/templates/gitbranch.mdwn
index 853da9280..4ea73c91b 100644
--- a/doc/templates/gitbranch.mdwn
+++ b/doc/templates/gitbranch.mdwn
@@ -1,9 +1,11 @@
+[[!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>
-<TMPL_UNLESS branch>
+ENDBODY]]
+
This template is used to create an infobox for a git branch. It uses
these parameters:
@@ -13,4 +15,3 @@ these parameters:
(e.g. github/master)</li>
<li>author - the author of the branch</li>
</ul>
-</TMPL_UNLESS>
diff --git a/doc/templates/links.mdwn b/doc/templates/links.mdwn
index 4bd1a85bf..3239a59c2 100644
--- a/doc/templates/links.mdwn
+++ b/doc/templates/links.mdwn
@@ -1,3 +1,4 @@
+[[!templatebody <<ENDBODY
<div class="infobox">
[[ikiwiki_logo|logo/ikiwiki.png]]
<ul>
@@ -14,3 +15,6 @@
<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.
diff --git a/doc/templates/note.mdwn b/doc/templates/note.mdwn
index 9ef5ad942..8de7374bc 100644
--- a/doc/templates/note.mdwn
+++ b/doc/templates/note.mdwn
@@ -1,11 +1,12 @@
+[[!templatebody <<ENDBODY
<div class="notebox">
<TMPL_VAR text>
</div>
-<TMPL_UNLESS text>
+ENDBODY]]
+
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>
diff --git a/doc/templates/plugin.mdwn b/doc/templates/plugin.mdwn
index 322c49445..d36dd5f85 100644
--- a/doc/templates/plugin.mdwn
+++ b/doc/templates/plugin.mdwn
@@ -1,3 +1,4 @@
+[[!templatebody <<ENDBODY
<span class="infobox">
Plugin: <TMPL_VAR name><br />
Author: <TMPL_VAR author><br />
@@ -8,7 +9,8 @@ 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>
-<TMPL_UNLESS name>
+ENDBODY]]
+
This template is used to create an infobox for an ikiwiki plugin. It uses
these parameters:
<ul>
@@ -16,4 +18,3 @@ 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>
diff --git a/doc/templates/popup.mdwn b/doc/templates/popup.mdwn
index 92455eb21..b721a95f9 100644
--- a/doc/templates/popup.mdwn
+++ b/doc/templates/popup.mdwn
@@ -1,4 +1,3 @@
-<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>
@@ -10,7 +9,9 @@ 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.
-</TMPL_UNLESS>
+
+[[templatebody <<ENDBODY
<span class="popup"><TMPL_VAR mouseover>
<span class="paren">[</span><span class="balloon"><TMPL_VAR popup></span><span class="paren">]</span>
</span>
+ENDBODY]]