From: Simon McVittie Date: Fri, 13 Sep 2013 09:30:24 +0000 (+0100) Subject: Use templatebody for the templates in the basewiki and docwiki X-Git-Tag: debian/3.20150329~125 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/f71f80bf430e22dc21c25340d3041d25052ea6a9 Use templatebody for the templates in the basewiki and docwiki Now that ikiwiki.info has ikiwiki (>= 3.20140916) we can do this. --- 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 < Available in a [[!taglink /git]] repository [[!taglink branch|/branches]].
Branch:
Author:
- +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)
  • author - the author of the branch
  • -
    diff --git a/doc/templates/links.mdwn b/doc/templates/links.mdwn index 27f81e653..946694d1b 100644 --- a/doc/templates/links.mdwn +++ b/doc/templates/links.mdwn @@ -1,3 +1,4 @@ +[[!templatebody < [[ikiwiki_logo|logo/ikiwiki.png]] +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]] + 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:
    • `text` - the text to display in the note
    -
    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 < Plugin:
    Author:
    @@ -8,7 +9,8 @@ Currently enabled: [[!if test="enabled()" then="yes" else="no"]]< [[!if test="sourcepage(plugins/contrib/*)" then="""[[!meta title=" (third party plugin)"]]"""]] [[!tag plugins/type/core]] - +ENDBODY]] + This template is used to create an infobox for an ikiwiki plugin. It uses these parameters:
      @@ -16,4 +18,3 @@ these parameters:
    • author - the author of the plugin
    • core - set to a true value if the plugin is enabled by default
    -
    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 @@ - 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:
      @@ -10,7 +9,9 @@ large for good usability.
    Note that browsers that do not support the CSS will display the popup inline in the page, inside square brackets. -
    + +[[templatebody < [] +ENDBODY]]