DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:rack

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revision
plugin:rack [2010-02-15 20:38]
82.237.229.154 deleted the link to my website since it has no use now - Sylvain Bigonneau
plugin:rack [2018-06-05 22:47]
Klap-in [Download and Installation]
Line 1: Line 1:
-====== rack plugin ======+====== rack Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: Displays an elevation of a datacenter rack.+description: Displays an elevation of a datacenter rack
 author     : Tyler Bletsch author     : Tyler Bletsch
 email      : Tyler.Bletsch@netapp.com email      : Tyler.Bletsch@netapp.com
 type       : syntax type       : syntax
-lastupdate : 2010-01-18+lastupdate : 2012-08-16
 compatible : 2009-02-14 compatible : 2009-02-14
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : advrack 
-tags       : media, images, diagram+tags       : media, images, diagram, cage, rack, server 
 + 
 +downloadurl: http://dsss.be/f/dat/rack-20120816.1.zip
 ---- ----
  
 ===== Download and Installation ===== ===== Download and Installation =====
  
-Download and install the plugin using the [[plugin:plugin|Plugin Manager]] using the following URL. Refer to [[:Plugins]] on how to install plugins manually.+Search and install the plugin using the [[plugin:extension|Extension Manager]]. Refer to [[:Plugins]] on how to install plugins manually.
  
-  * [[http://dsss.be/f/dat/rack-20100118.0.zip|Rack 20100118.0]]+  * [[http://dsss.be/f/dat/rack-20120816.1.zip|Rack 20120816.1]]
   * Old versions:   * Old versions:
 +    * [[http://dsss.be/f/dat/rack-20120816.0.zip|Rack 20120816.0]]
 +    * [[http://dsss.be/f/dat/rack-20100301.0.zip|Rack 20100301.0]]
 +    * [[http://dsss.be/f/dat/rack-20100118.0.zip|Rack 20100118.0]]
     * [[http://dsss.be/f/dat/rack-20100115.0.zip|Rack 20100115.0]]     * [[http://dsss.be/f/dat/rack-20100115.0.zip|Rack 20100115.0]]
     * [[http://dsss.be/f/dat/rack-20090608.0.zip|Rack 20090608.0]]     * [[http://dsss.be/f/dat/rack-20090608.0.zip|Rack 20090608.0]]
Line 26: Line 31:
  
 ===== Update notes ===== ===== Update notes =====
 +**20120816.1**: Make "show CSV" toggleable and a few tiny tweaks.
 +
 +**20120816.0**: (1) Added "show CSV" option at the bottom for easy exporting to a spreadsheet.  (2) Committed the link improvements suggested by [[user>schplurtz]] below.
 +
 +**20100301.0**: Add Josef Fortier's improved link HTML.  Also styled the links a bit.
 +
 **20100118.0**: Added a small feature request: you can now express racks that number top-to-bottom by specifying "''descending''" in the <rack> tag. **20100118.0**: Added a small feature request: you can now express racks that number top-to-bottom by specifying "''descending''" in the <rack> tag.
  
Line 40: Line 51:
  
 //Put your comments/fixes here// //Put your comments/fixes here//
 +
 +==== Proposed changes ====
 +
 +(None)
 +
  
 ==== Changes accepted ==== ==== Changes accepted ====
 +
 +=== Internal link and link recognized even if no name field is present ===
 +
 +Hi, great plugin, thank you. I have a patch that addresses 2 issues (I think).
 +
 +  - the current pattern matching system will misinterpret ''link:whatever'' as name if there is no name and no color. such as in<code doku rackexemple>
 +<rack name=A20 height=42>
 +12 1 Cableguide link:http://www.example.com/
 +</rack>
 +</code>
 +  - Second, the ''link:somelink'' can only be an external link. With the //recently accepted// patch, it is now possible to use such links as ''%%link:[[page]]%%'', ''%%link:[[page|]]%%'' or ''%%link:[[ns:page|link title]]%%'' to point to internal pages.
 +
 + --- [[user>schplurtz]] //2011/01/19 11:50//
 +
 + --- Edited //2011/01/19 11:50// by Tyler Bletsch to accept this patch
  
 === URL Add by Sylvain Bigonneau === === URL Add by Sylvain Bigonneau ===
Line 52: Line 83:
  
 (This feature is now available in the official 20100115.0 release linked at the top of this page. --TKB) (This feature is now available in the official 20100115.0 release linked at the top of this page. --TKB)
 +
 +=== Link tweak by Josef Fortier ===
 +The link now covers the whole cell, so you can now click on the model or hostname.  [[fortier@augsburg.edu|Email]].
 +
 +(Integrated into 20100301.0 --TKB)
  
 ===== Rack syntax ===== ===== Rack syntax =====
Line 70: Line 106:
   * **[name]**: Optional. The hostname or other designator of this specific item (e.g. "rtpserver1").  If it has spaces, enclose it in quotes.  If you want to specify a comment but no name, use "" as the name.     * **[name]**: Optional. The hostname or other designator of this specific item (e.g. "rtpserver1").  If it has spaces, enclose it in quotes.  If you want to specify a comment but no name, use "" as the name.  
   * **[#color]**: Optional. The color of the item is normally automatically picked based on the model, but you can override it by specifying a #RRGGBB HTML color after the model/name.   * **[#color]**: Optional. The color of the item is normally automatically picked based on the model, but you can override it by specifying a #RRGGBB HTML color after the model/name.
-  * **[link:<URL>]**: Optional. Optional. The model name will now link to the URL given.+  * **[link:<URL>]**: Optional. Optional. The cell will now link to the URL given.
   * **[comment]**: Optional. After the name (and possibly color), any remaining text on the line is treated as free-form comment.  Comments are visible by hovering the mouse over the equipment in the rack.  Items with comments are designated with an asterisk * after the model name.   * **[comment]**: Optional. After the name (and possibly color), any remaining text on the line is treated as free-form comment.  Comments are visible by hovering the mouse over the equipment in the rack.  Items with comments are designated with an asterisk * after the model name.
  
Line 98: Line 134:
  
 # To override the color, just specify a #RRGGBB HTML color after the model/name.  We'll make this one yellow: # To override the color, just specify a #RRGGBB HTML color after the model/name.  We'll make this one yellow:
-14 1 "Crazytown 9000" crazy2 #FFFF00+14 1 "Crazytown 9000" crazy2 #FFFF00 link:http://example.com/
 </rack> </rack>
 </code> </code>
  
-{{http://dsss.be/f/dat/rack-plugin.png|Because dokuwiki.org doesn't have my plugin installed, this is just an image, not the real thing}}+{{http://dsss.be/i/img/rackwiki.png|Because dokuwiki.org doesn't have my plugin installed, this is just an image, not the real thing}}
  
 If you want to add new auto-coloring options, edit ''syntax.php'' and add conditionals to the ''autoselect_color'' function. If you want to add new auto-coloring options, edit ''syntax.php'' and add conditionals to the ''autoselect_color'' function.
Line 111: Line 147:
 ===== Legalities ===== ===== Legalities =====
 The usual: Author assumes no responsibility for this software, use at your own risk.  Don't sue me. The usual: Author assumes no responsibility for this software, use at your own risk.  Don't sue me.
- 
plugin/rack.txt · Last modified: 2021-04-21 16:07 by landrypm