DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:templatepagename

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
plugin:templatepagename [2015-08-10 19:52]
dariogomezt [Usage]
plugin:templatepagename [2019-09-12 14:58] (current)
Aleksandr
Line 2: Line 2:
  
 ---- plugin ---- ---- plugin ----
-description:​ Renames the template ​page names '_template.txt' ​and '__template.txt' ​(only editable as server admin) to the (configurablenames 'c_template' ​and 'i_template' ​which are normal wikipages(Original author: Martin Hamant) +description:​ Renames the template ​pages _template.txt and __template.txt (only editable as server admin) to the configurable names c_template and i_template which are normal wikipages 
-author ​    : Gerrit Uitslag+author ​    : Gerrit Uitslag ​(Original author: Martin Hamant)
 email      : klapinklapin@gmail.com email      : klapinklapin@gmail.com
 type       : action type       : action
-lastupdate : 2014-04-29 +lastupdate : 2016-08-24 
-compatible : Angua, Adora Belle, Weatherwax, ​Binky,​Ponder Stibbons,​Hrun+compatible : Binky, Ponder Stibbons, Hrun, Detritus, Elenor Of Tsort, Frusterick Manners, Greebo
 depends ​   :  depends ​   : 
 conflicts ​ :  conflicts ​ : 
Line 20: Line 20:
  
 ===== Usage ===== ===== Usage =====
 +
 This plugin improves the usage of [[:​namespace templates]] (Scaffolding) by changing the name of these templates. This plugin improves the usage of [[:​namespace templates]] (Scaffolding) by changing the name of these templates.
 +
 The users of your wiki can add the wiki pages ''​c_template''​ and ''​i_template''​ in a namespace via the normal editor. DokuWiki will use these pages as template for new created pages. ​ The users of your wiki can add the wiki pages ''​c_template''​ and ''​i_template''​ in a namespace via the normal editor. DokuWiki will use these pages as template for new created pages. ​
  
-DokuWiki uses default the template page names''​_template''​ and ''​%%__%%template'',​ this plugin changes this to:+DokuWiki uses by default the template page names ''​_template''​ and ''​%%__%%template'',​ this plugin changes this to:
   * ''​c_template''​ (template for new page in the current namespace) ​   * ''​c_template''​ (template for new page in the current namespace) ​
   * and ''​i_template''​ (template inherited from higher namespaces as well)   * and ''​i_template''​ (template inherited from higher namespaces as well)
  
-Via the Configuration Manager you can modify the page names ''​c_template''​ and ''​i_template''​ to your own preferences.+Via the [[plugin:​config|Configuration Manager]] you can modify the page names ''​c_template''​ and ''​i_template''​ to your own preferences. 
 + 
 +=== Example ===
  
-===Example=== 
 Wiki users can create ''​ns:​c_template''​ in the wiki, which will be recognized now as namespace template. When you create ''​ns:​page''​ next, the content of the page ''​c_template''​ is prefilled in the edit window of ''​page''​. Wiki users can create ''​ns:​c_template''​ in the wiki, which will be recognized now as namespace template. When you create ''​ns:​page''​ next, the content of the page ''​c_template''​ is prefilled in the edit window of ''​page''​.
  
 +==== Which pagenames are allowed? ====
  
-====Which pagenames are allowed?​==== 
 You may use any name you like, but it depends on the pagename whether a page is editable via the wiki interface. (See next question for details) You may use any name you like, but it depends on the pagename whether a page is editable via the wiki interface. (See next question for details)
  
-====When are namespace templates editable?​====+==== When are namespace templates editable? ==== 
 By configuring a wikipage with a name following the [[:​pagename|page name convention]] as template via this plugin, the users (with of course enough ACL rights) can update these wikipages via the wiki interface like any other wiki page. So you only use the characters ''​a-z0-9''​ and (but not as first or last character of pagename:) ''​-_.''​. By configuring a wikipage with a name following the [[:​pagename|page name convention]] as template via this plugin, the users (with of course enough ACL rights) can update these wikipages via the wiki interface like any other wiki page. So you only use the characters ''​a-z0-9''​ and (but not as first or last character of pagename:) ''​-_.''​.
  
 Without this plugin, DokuWiki looks for the namespace templates ''​_template.txt''​ or ''​%%__%%template.txt''​. These pages don't follow the pagename conventions as they start by ''​_''​. Therefore they aren't editable via the wiki interface. You have to modify or add them via the filesystem as server administrator. Without this plugin, DokuWiki looks for the namespace templates ''​_template.txt''​ or ''​%%__%%template.txt''​. These pages don't follow the pagename conventions as they start by ''​_''​. Therefore they aren't editable via the wiki interface. You have to modify or add them via the filesystem as server administrator.
  
-====Can this plugin be combined with Templatebyname plugin? ==== +==== Can this plugin be combined with Templatebyname plugin? ==== 
-Yes. When [[TemplatebyName]] plugin has a matching page it can already load a template before this plugin is checked. It depends a bit on loading order (which is not sure) of these plugins which one is checked first.+ 
 +Yes. When [[plugin:TemplatebyName]] plugin has a matching page it can already load a template before this plugin is checked. It depends a bit on loading order (which is not sure) of these plugins which one is checked first.
  
 ===== Installation ===== ===== Installation =====
  
-Install ​the plugin using the [[plugin:plugin|Plugin ​Manager]] ​and the download URL above, which points to latest version of the plugin. Refer to [[:​Plugins]] on how to install plugins manually.+Search and install ​the plugin using the [[plugin:extension|Extension ​Manager]]. Refer to [[:plugins|Plugins]] on how to install plugins manually.
  
 ===== Configuration and Settings ===== ===== Configuration and Settings =====
  
 See Configuration Manager, here you can modify the templatenames yourself. See Configuration Manager, here you can modify the templatenames yourself.
- 
  
 ===== Development ===== ===== Development =====
  
-Original author: [[martin@sound4.biz|Martin Hamant]].+Original author: [[martin@sound4.biz|Martin Hamant]]
  
 August 2013 adopted by [[user>​Klap-in]] August 2013 adopted by [[user>​Klap-in]]
  
-=== Change Log === +=== Last commits ===
-  * **2013-08-16** Very small update +
-  * **2012-07-16** Initial release +
- +
-===Last commits===+
  
 {{rss>​https://​github.com/​Klap-in/​dokuwiki-plugin-templatepagename/​commits/​master.atom date}} {{rss>​https://​github.com/​Klap-in/​dokuwiki-plugin-templatepagename/​commits/​master.atom date}}
  
 === Known Bugs and Issues === === Known Bugs and Issues ===
-See for the issues or report them at the [[https://​github.com/​Klap-in/​dokuwiki-plugin-templatepagename/​issues|issue tracker]]+ 
 +See for the issues or report them at the [[https://​github.com/​Klap-in/​dokuwiki-plugin-templatepagename/​issues|issue tracker]].
plugin/templatepagename.1439229141.txt.gz · Last modified: 2015-08-10 19:52 by dariogomezt