DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:switchpanel

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
plugin:switchpanel [2016-09-04 15:46] GreenItSolutionsplugin:switchpanel [2022-08-24 16:23] (current) – Compatible with Igor mRiston
Line 6: Line 6:
 email      : support@greenitsolutions.fr  email      : support@greenitsolutions.fr 
 type       : syntax type       : syntax
-lastupdate : 2016-09-04 +lastupdate : 2018-11-06 
-compatible : 2015-08-10 "Detritus", 2016-06-26 "Elenor Of Tsort"+compatible : 2015-08-10 "Detritus", 2016-06-26 "Elenor Of Tsort", "Frusterick Manners", "Greebo", "Hogfather", "Igor"
 depends    :  depends    : 
 conflicts  conflicts 
Line 29: Line 29:
 <code> <code>
 <switchpanel> <switchpanel>
-==line:number=12 +==line:number=11,labelBgColor=pink 
-1,PC1a +1,PC1a:leftLedColor=lime, 
-2,PC2 +2,PC2:leftLedColor=lime,labelBgColor=yellow 
-3,PC3 +3,PC3:leftLedColor=lime, 
-6,??+4,PC4:leftLedColor=lime,labelBgColor=black,labelTxtColor=white,color=black 
 +5:case=none 
 +6,PH1:color=brown,labelBgColor=white 
 +7,PH2:color=orange,labelBgColor=white 
 +8,PH3:color=#6176FF,labelBgColor=white 
 +9:case=none 
 +10,POE,24V:rightLedColor=orange,color="#C0FF61" 
 +11,POE,48V:rightLedColor=lime,color="#C0FF61"
 ==line ==line
-1,AB +13,close:case=close 
-10:case=none +14,gbic:case=gbic 
-11,int.:color=red +15,of:case=of 
-12,sas:case=close+16,2of:case=2of 
 +17,serial:case=serial 
 +18:case=none 
 +19:case=none 
 +20,10M:leftLedColor=red,labelBgColor=white 
 +21,100M:leftLedColor=yellow,labelBgColor=white 
 +22,1Gb:leftLedColor=lime,labelBgColor=white 
 +23,10Gb:leftLedColor=blue,labelBgColor=white
 </switchpanel> </switchpanel>
 </code> </code>
Line 53: Line 67:
 Coloring networks Coloring networks
 ==line ==line
-1,A1:color=#FF6164+1,Aa:color=#FF6164
 2,B1:color=#FF61ED 2,B1:color=#FF61ED
 3,C1:color=#9361FF 3,C1:color=#9361FF
Line 65: Line 79:
 </switchpanel> </switchpanel>
 </code> </code>
 +
 +==== Coloring labels  ====
 +{{https://raw.github.com/GreenItSolutions/assets/master/dokuwiki/switchpanel/switchpanel_12.png}}
 +
 +=== Example code : ===
 +<code>
 +<switchpanel>
 +==text
 +Coloring labels
 +==line
 +1,A1:labelBgColor=#FF6164
 +2,B1:labelTxtColor=#FF61ED
 +3,C1:labelBgColor=#9361FF,labelTxtColor=#61FF88
 +4,D1:labelBgColor=red
 +5,E1:labelBgColor=black,labelTxtColor=white
 +</switchpanel>
 +</code>
 +
 +==== Coloured RJ45 LEDs  ====
 +{{https://raw.github.com/GreenItSolutions/assets/master/dokuwiki/switchpanel/switchpanel_13.png}}
 +
 +=== Example code : ===
 +
 +<code>
 +<switchpanel>
 +==text
 +Link Speed &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&nbsp;&nbsp; POE Payload
 +==line:number=9
 +1,OFF
 +2,10M:leftLedColor=red
 +3,100M:leftLedColor=yellow
 +4,1G:leftLedColor=lime
 +5,10G:leftLedColor=cyan
 +6:case=none
 +7,OFF
 +8,48V:leftLedColor="#666666",rightLedColor=lime
 +9,24V:leftLedColor="#666666",rightLedColor=orange
 +</switchpanel>
 +</code>
 +
 +=== Exemple usage : ===
 +
 +the leftLedColor is:
 +  * OFF : "#666666"(default if no value)
 +  * 10M : red
 +  * 100M : yellow
 +  * 1G : lime
 +  * 10G : cyan
 +And the rightLedColor is :
 +  * OFF : no POE (default if no value)
 +  * 24V : orange
 +  * 48V : lime
 +
  
 ==== All types cases ==== ==== All types cases ====
Line 98: Line 165:
 No ears display No ears display
 ==line:number=8 ==line:number=8
-2,off,off:case=of+2,of,of:case=of
 ==line:number=8 ==line:number=8
-2,foo,foo:case=bar+2,foo,bar
 </switchpanel> </switchpanel>
 </code> </code>
Line 137: Line 204:
 Popup message information and link Popup message information and link
 ==line:number=8 ==line:number=8
 +1,1:text="Hello World",link="https://greenitsolutions.fr/",textlink="GreenITSolutions website"
 +8,8:text="<b>From:</b> Office Level, Netgear switch port 1<br><b>To:</b> HP switch port 18<br><b>Speed:</b> 10G <hr> Additional information",link="https://greenitsolutions.fr/",textlink="Documentation"
 +==line
 ==line ==line
-1,AA 
-5,FO:case=fo,color="#80cc28",text="Green It Solutions",link="http://www.greenitsolutions.fr/" 
 ==line ==line
 ==line ==line
 </switchpanel> </switchpanel>
 </code> </code>
 +
 +:!: You can use HTML tags in the text field for layout
 + 
 +{{https://raw.github.com/GreenItSolutions/assets/master/dokuwiki/switchpanel/switchpanel_14.png}}
  
 ==== Text bar information ==== ==== Text bar information ====
Line 156: Line 228:
 Text bar information Text bar information
 ==line:number=8 ==line:number=8
-==text:bgColor=#80cc28,color=#fff,size=20,brColor=#1D611F,brRadius=2 +==text:bgColor=#80cc28,color=#fff,size=16,brColor=#1D611F,brRadius=2 
-By Green It Solutions+By Green IT Solutions
 ==line ==line
 </switchpanel> </switchpanel>
Line 208: Line 280:
 6,?? 6,??
 ==line ==line
 +1,AB
 +</switchpanel>
 +</code>
 +
 +==== Label line ====
 +
 +{{https://raw.github.com/GreenItSolutions/assets/master/dokuwiki/switchpanel/switchpanel_11.png}}
 +
 +=== Example code : ===
 +
 +<code>
 +<switchpanel group="6">
 +==line:number=12,labelLeft=01,labelRight=A1,colorLabelRight=#FF6164
 +1,PC1
 +2,PC2
 +3,PC3
 +6,??
 +==line:labelLeft=02
 1,AB 1,AB
 </switchpanel> </switchpanel>
Line 217: Line 307:
     logo="URL OF LOGO"     logo="URL OF LOGO"
     logoLink="URL OF LINK"     logoLink="URL OF LINK"
 +    labelBgColor="#fff"
 +    labelTxtColor="#000"
 +    leftLedColor="#00ff00"
 +    rightLedColor="#666666"
     target="_blank"     target="_blank"
     showEars=true / false     showEars=true / false
Line 239: Line 333:
     switchColor="#808080" (backgroud color default)     switchColor="#808080" (backgroud color default)
     >     >
-  
-==line:number=(number of cases),color=(backgroud color),case=(type of case) 
-1,label,title:color=(backgroud color),text=(text of popup message),link=(url of link),case=(type of case),target=(type of link target) 
  
-==text:bgColor=(backgroud color),color=(text color),size=(text size),brColor=(border color),brRadius=(border  +==line:number=(number of cases),color=(backgroud color of the line case),case=(type of the line case),labelLeft=(label left of the line),labelRight=(label right of the line),colorLabelLeft=(color of label left),colorLabelRight=(color of label right),labelBgColor=(background color of the case label),labelTxtColor=text color of the case label),leftLedColor=(color of the left LED),rightLedColor(color of the right LED) 
-radius)+ 
 +==text:bgColor=(backgroud color),color=(text color),size=(text size),brColor=(border color),brRadius=(border radius)
  
 ==heightBar:heigth=(height bar) ==heightBar:heigth=(height bar)
 +
 +1,label,title:color=(backgroud color),text=(text of popup message),link=(url of link),case=(type of case),target=(type of link target),labelBgColor=(background color of the case label),labelTxtColor=text color of the case label),leftLedColor=(color of the left LED),rightLedColor(color of the right LED)
  
 # this is a comment # this is a comment
plugin/switchpanel.1472996792.txt.gz · Last modified: 2016-09-04 15:46 by GreenItSolutions

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