DokuWiki

It's better when it's simple

User Tools

Site Tools


template:binkytestinstance

Differences

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

Link to this comparison view

Next revision
Previous revision
template:binkytestinstance [2014-05-05 12:17] – created 134.99.182.51template:binkytestinstance [2023-02-28 22:11] (current) Aleksandr
Line 5: Line 5:
 author        : hh.lohmann author        : hh.lohmann
 email         : hh.lohmann@yahoo.de email         : hh.lohmann@yahoo.de
-lastupdate_dt : 2014-05-05 +lastupdate    : 2014-05-24 
-compatible    : Binky+compatible    : Hrun, Binky, Ponder Stibbons
 depends       : depends       :
 conflicts     : # prefix templates by template: conflicts     : # prefix templates by template:
 similar       : template:dokuwiki similar       : template:dokuwiki
-screenshot_img: http://raw.githubusercontent.com/hh-lohmann/dokuwiki-template-testinstance/master/Screenshot-DokuWiki-Template-Test-Instance.png+screenshot_img: https://raw.githubusercontent.com/hh-lohmann/dokuwiki-template-testinstance/master/Screenshot-DokuWiki-Template-Test-Instance.png
 tags          :  tags          : 
  
-downloadurl   : http://github.com/hh-lohmann/dokuwiki-template-testinstance/archive/master.zip +downloadurl   : https://github.com/hh-lohmann/dokuwiki-template-testinstance/archive/master.zip 
-bugtracker    : http://github.com/hh-lohmann/dokuwiki-template-testinstance/issues +bugtracker    : https://github.com/hh-lohmann/dokuwiki-template-testinstance/issues 
-sourcerepo    : http://github.com/hh-lohmann/dokuwiki-template-testinstance/ +sourcerepo    : https://github.com/hh-lohmann/dokuwiki-template-testinstance/ 
-donationurl   : # eg. https://www.paypal.com/...+donationurl   : http://plan-international.org/what-you-can-do/sponsor-a-child/sponsor
 ---- ----
  
 ===== Purpose ===== ===== Purpose =====
  
-A very simple variant of [[template: dokuwiki |Binky's default template]] to mark a test instance so that you may switch between a test and a production instance even in the same browser instance without being confused where you are - the only, but very striking difference is the lightpink background. You don't have to praise that color choice, but you surely won't think that a page with that background resides in your production environment - those who do production in lightpink yet might change to a striking color of their own choice by editing the line ''%%__background_site__ = "lightpink"         ; @ini_background_site%%'' in the ''style.ini'' file.+> //This is a minimal variant of [[template:dokuwiki|DokuWiki's default template]] ("forked" from [[https://github.com/dokuwiki/dokuwiki/releases/tag/release_stable_2013-12-08|Release Binky]] which made its name), i.e. no changed usage or being lost in options. Technically also a base to [[https://help.github.com/articles/fork-a-repo/|fork]] own simple variants / adjustments of the original DokuWiki template (that does not exist as a separate repository - yet), e.g. for [[plugin:loadskin#admin_wayspecify_templates_per_namespace_page |templates per namespace via Loadskin Plugin]] (which may be only slight variants of the "normal" template).//  
 + 
 +Simple but effective marking of a test instance so that you may switch between a test and a production instance even in the same browser instance without being confused where you are - the only, but very striking difference is the lightpink background. You don't have to praise that color choice, but you surely won't think that a page with that background resides in your production environment - those who do production in lightpink yet might change to a striking color of their own choice by editing the line ''%%__background_site__ = "lightpink"         ; @ini_background_site%%'' in the ''style.ini'' file.
  
  
Line 34: Line 36:
   * ... feel free to add ...   * ... feel free to add ...
  
 +===== Discussion =====
 +
 +You don't need a separate template for this. Just add a [[devel:style.ini#local_styleini|local style.ini]] (or add a one-line [[devel:css#user_styles|userstyle]]). --- [[user>ach|Anika Henke]] //2014-05-05 12:59//
 +> Basically right, but that misses the rationale: the "test instance" template here is meant for test copies of an DokuWiki installation that may exist for less than an hour - for an according "rapid prototyping" it is much simpler to use generalized building blocks that may be (very) huge and inelegant, but, compared to rather specialized solutions, are quick at hand and quick to manage (you don't have a built-in configuration interface for a local style.ini or userstyles, but you do have an entry for the chosen template, you do not need any additional track keeping for changes). I would use a local style.ini or userstyles exactly for the opposite aim, i.e. for styles to accompany a "persistant" wiki for a rather long time (maybe "surviving" future default templates). Anyway, I'm proud that it's you to comment first, and I hope that is clear that I don't want to compete with your very work or letting people think that it could be me who had the brains for these many features of Binky's default template ...  --- [[user>hh lohmann|hh lohmann]] //2014-05-05 15:25//
 +>> //Litte postscript:// one might suggest to write a plugin for using some standard DokuWiki mechanics for quick adding / removing singular features like the background color, but - at least for me - plugins are often the main topic for test instances and it's advisable to take any possibilty to keep test issues and test environment apart (so user styles would be not that good for testing since it produces "[[wp>Statistical_noise|noise]]" in /conf - not very loud noise, but testing profits from avoiding any [[wp>Noise_(signal_processing) |noise]] at all) --- [[user>hh lohmann|hh lohmann]] //2014-05-05 15:46//
 +>>> I agree that there should be a way to change local style.ini or userstyles easily. The main reason why I wouldn't use something like this template is **maintainability**. Most (if not all) of these types of templates (which use an existing one and only change very little) end up being unmaintained, and when a new DokuWiki version comes out, this will be out of sync with the original. It's also not easy to see the difference between various versions of templates. Depending on your technical expertise, you might also want to consider preparing a patch (diff or git) against DokuWiki. That makes making a change like this (and potentially others) to the existing code base as easy as running one single line in the shell. --- [[user>ach|Anika Henke]] //2014-05-05 16:10//
  
template/binkytestinstance.1399285066.txt.gz · Last modified: 2014-05-05 12:17 by 134.99.182.51

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki