From d73eb7d9b2569ebb44fc79480b6ec2d8c1faea5d Mon Sep 17 00:00:00 2001 From: joey Date: Sat, 31 Mar 2007 06:55:12 +0000 Subject: * Add a templates page to the basewiki. It will automatically list all available templates. Rename the old templates page to wikitemplates. * Include the note template in the basewiki. * Add a popup template in the basewiki. CSS based on some by Martin Krafft. * Make the note, popup, and plugin templates detect missing variables and be self-documenting, listing the available variables. --- doc/templates/note.mdwn | 8 ++++++++ doc/templates/plugin.mdwn | 9 +++++++++ doc/templates/popup.mdwn | 16 ++++++++++++++++ 3 files changed, 33 insertions(+) create mode 100644 doc/templates/popup.mdwn (limited to 'doc/templates') diff --git a/doc/templates/note.mdwn b/doc/templates/note.mdwn index 2cbc230b3..d992e0236 100644 --- a/doc/templates/note.mdwn +++ b/doc/templates/note.mdwn @@ -1,3 +1,11 @@ + +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: + + diff --git a/doc/templates/plugin.mdwn b/doc/templates/plugin.mdwn index 5ce05b231..b4dabc341 100644 --- a/doc/templates/plugin.mdwn +++ b/doc/templates/plugin.mdwn @@ -7,3 +7,12 @@ Currently enabled: [[if test="enabled()" then="yes" else="no"]] [[if test="sourcepage(plugins/contrib/*)" then="""[[meta title=" (third party plugin)"]]"""]] [[tag type/core]] + +This template is used to create an infobox for an ikiwiki plugin. It uses +these parameters: +
    +
  • name - the name of the plugin +
  • 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 new file mode 100644 index 000000000..244c1d4dd --- /dev/null +++ b/doc/templates/popup.mdwn @@ -0,0 +1,16 @@ + +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: +
    +
  • `mouseover` - This is the text or other content that triggers the +popup. +
  • `popup` - This should be the content of the popup window. It can be +anything, even images or a whole little wiki page, but should not be too +large for good usability. +
+Note that browsers that do not support the CSS will display the popup +inline in the page, inside parens. +
+ +[] + -- cgit v1.2.3