plugin:pagetemplate
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
plugin:pagetemplate [2009-01-02 20:06] – 70.103.232.219 | plugin:pagetemplate [2023-04-20 22:18] – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== pagetemplate Plugin ====== | ||
+ | ---- plugin ---- | ||
+ | description: | ||
+ | author | ||
+ | email : mail@lukehowson.com | ||
+ | type : action, syntax | ||
+ | lastupdate : 2007-08-23 | ||
+ | compatible : 2006-11-06 | ||
+ | depends | ||
+ | conflicts | ||
+ | similar | ||
+ | tags : !discontinued, | ||
+ | |||
+ | downloadurl: | ||
+ | bugtracker : | ||
+ | sourcerepo : | ||
+ | |||
+ | screenshot_img: | ||
+ | |||
+ | securitywarning: | ||
+ | ---- | ||
+ | |||
+ | ^ | ||
+ | ^ Status|[[: | ||
+ | ^ Download|[[https:// | ||
+ | |||
+ | ===== Description ===== | ||
+ | |||
+ | The Pagetemplate Plugin is a new link syntax. | ||
+ | |||
+ | The intended purpose is to create a simple template system for semi-standard oft repeated page types. | ||
+ | |||
+ | ===== Syntax ===== | ||
+ | |||
+ | [[[newpagename? | ||
+ | |||
+ | Yes, those are triple square brackets. | ||
+ | |||
+ | ^newpagename|name of new page|required| | ||
+ | ^templatepagename|An existing wiki page|optional| | ||
+ | ^Display Name|the display name for the page|optional| | ||
+ | |||
+ | ===== Example Usage ===== | ||
+ | |||
+ | [[[.new_plugin? | ||
+ | |||
+ | ===== Installation ===== | ||
+ | |||
+ | FIXME Wouldn' | ||
+ | |||
+ | __Don' | ||
+ | |||
+ | Search and install the plugin using the [[plugin: | ||
+ | |||
+ | ===== Code Listing ===== | ||
+ | |||
+ | See: [[plugin: | ||
+ | |||
+ | ===== To Do ===== | ||
+ | |||
+ | * Correct the archive (suppress " | ||
+ | * make it work with last DokuWiki version | ||
+ | |||
+ | ===== Bugs ===== | ||
+ | |||
+ | ==== Not working with version 2008-04-11 ==== | ||
+ | |||
+ | Installed fine but the given examples above show with an underline and an extra " | ||
+ | |||
+ | PerryM 4/20/08 | ||
+ | |||
+ | >+1 : installations says " | ||
+ | |||
+ | > Actually manual install works better : triple brackets are recognized, but the template isn't loaded though... --- // | ||
+ | |||
+ | > Is there any way to get this plugin working on newer versions of dokuwiki? --- // | ||
+ | |||
+ | ===== Comments ===== | ||
+ | |||
+ | == Old wine in new bottles? == | ||
+ | |||
+ | Dokuwiki offers you the possibility to define templates: | ||
+ | * create a file called **" | ||
+ | * fill it with the necessary content and upload it in your namespace (maybe you have to put the permission to 766) | ||
+ | * every time a file in this namespace is created, the template is loaded in the editor-menu. | ||
+ | |||
+ | //Usage/ Example//: If you want to build a site with recipes and one of your namespaces (folders) reads " | ||
+ | |||
+ | Have a try! 8-) | ||
+ | |||
+ | **Reply:** | ||
+ | |||
+ | Well, perhaps the bottle contains a refined pinot to the robust default cab-sauv. ;-) | ||
+ | |||
+ | The differences from the default mechanism are: | ||
+ | * Any existing page can become a template. | ||
+ | * No namepspace restrictions. Templates can be used in all namespaces, and many different templates could be used within the same namespace. | ||
+ | * Makes it possible to spawn a series of pages in a structure. | ||
+ | |||
+ | </ | ||
+ | --- // | ||
+ | |||
+ | **Reply:** | ||
+ | |||
+ | With regards to _template.txt ... you could also symlink template.txt to it and then edit it from within the wiki. Still requires shell interaction, | ||
+ | --- // |
plugin/pagetemplate.txt · Last modified: 2023-12-21 16:17 by Aleksandr