DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:phpipam

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:phpipam [2018-09-12 22:28] – HTMLtable into ASCIIart gilcotplugin:phpipam [2021-06-11 05:18] (current) – [Missing Features & To Do] spell gilcot
Line 5: Line 5:
 author     : GilCot author     : GilCot
 type       : syntax type       : syntax
-lastupdate : 2018-09-11 +lastupdate : 2020-08-27 
-compatible : Detritus, Elenor Of Tsort, Frusterick Manners+compatible : Detritus, Elenor Of Tsort, Frusterick Manners, Greebo
 depends    :  depends    : 
 conflicts  conflicts 
Line 22: Line 22:
 This plugin allows you to add IP addresses lists (and other objects description) to any //DokuWiki// page.  This plugin allows you to add IP addresses lists (and other objects description) to any //DokuWiki// page. 
 The plugin is similar to the [[data|data plugin]] but is toward the excellent //[[https://phpipam.net/documents/features/|{php}IPAM]]!// The plugin is similar to the [[data|data plugin]] but is toward the excellent //[[https://phpipam.net/documents/features/|{php}IPAM]]!//
- 
  
 ===== Setup ===== ===== Setup =====
Line 160: Line 159:
   * a box for list of elements (''format=list'' or ''format=both'')   * a box for list of elements (''format=list'' or ''format=both'')
  
-<code text+<code html
-+----------------------------------------------------------------------+ +┌────<div>─────────────────────────────────────────────────────────────┐ 
-main box (div)                                                       | +│ main box                                                             │ 
- +-----------------------------------------------------------------+ | +│  ┌────<h6>─────────────────────────────────────────────────────────┐ │ 
- title box (h6)                                                  | | +│  │ title box                                                       │ │ 
- +-----------------------------------------------------------------+ | +│  └────</h6>────────────────────────────────────────────────────────┘ │ 
- +-----------------------------------------------------------------+ | +│  ┌────<div>────────────────────────────────────────────────────────┐ │ 
- presentation box (depends setting)                              | | +│  │ presentation box (depends setting)                              │ │ 
- +-----------------------------------------------------------------+ | +│  └────</div>───────────────────────────────────────────────────────┘ │ 
- +-----------------------------------------------------------------+ | +│  ┌────<div>────────────────────────────────────────────────────────┐ │ 
- listing box (depends setting)                                   | | +│  │ listing box (depends setting)                                   │ │ 
- +-----------------------------------------------------------------+ | +│  └────</div>───────────────────────────────────────────────────────┘ │ 
-+----------------------------------------------------------------------++└────</div>────────────────────────────────────────────────────────────┘
 </code> </code>
  
Line 190: Line 189:
 Listings work like presentations. Depending on the settings, some inner classes may be missing and some others added (there're often ''rowN'' and ''colN'' --with N an integer.)  Listings work like presentations. Depending on the settings, some inner classes may be missing and some others added (there're often ''rowN'' and ''colN'' --with N an integer.) 
  
-<HTML+<code html
-<div style="padding: 1em; color: white; background-color: orange; border: solid 1px black; width=10px; margin: 1em;"> +┌────<div class="phpipam phpipam_OBJECT-XX">───────────────────────────┐ 
-&lt;div class="phpipam phpipam_<var>OBJECT</var>-<var>XX</var>"&gt; +│ main box                                                             │ 
-  <div style="padding: 1em; color: black; background-color: aquamarine; border: solid 2px black; width=80%; margin: 1em;"> +│  ┌────<h6 class="OBJECT_name">─────────────────────────────────────┐ │ 
-  &lt;h6 class="<var>OBJECT</var>_name"&gt;title&lt;/h6&gt; +│  │ title                                                           │ │ 
-  </div+│  └────</h6>────────────────────────────────────────────────────────┘ │ 
-  <div style="padding: 1em; color: black; background-color: aliceblue; border: solid 2px black; width=80%; margin: 1em;"> +│  ┌────<div class="inline phpipam_OBJECTs">─────────────────────────┐ │ 
-  &lt;div class="inline phpipam_<var>OBJECT</var>s"&gt;<br /+│  │ presentation box (depends setting)                              │ │ 
-    &lt;div class="phpipam_<var>OBJECT</var>_<var>Param_1</var> row0&gt;...&lt;/div&gt;<br /+│  │ ┌────<div class="phpipam_OBJECT_Param1 row0">─────────────────┐ │ │ 
-    &lt;div class="phpipam_<var>OBJECT</var>_<var>Param_2</var> row1&gt;...&lt;/div&gt;<br /+│  │ └────</div><!-- phpipam_OBJECT_Param1 row0-->─────────────────┘ │ │ 
-  &lt;/div&gt; +│  │ ┌────<div class="phpipam_OBJECT_Param2 row1">─────────────────┐ │ │ 
-  </div> +│  │ └────</div><!-- phpipam_OBJECT_Param2 row1-->─────────────────┘ │ │ 
-  <div style="padding: 1em; color: black; background-color: cornsilk; border: solid 2px black; width=80%; margin: 1em;"> +│  └────</div>───────────────────────────────────────────────────────┘ │ 
-  &lt;div class="phpipam_<var>OBJECT</var>"&gt;<br /+│  ┌────<div class="phpipam_OBJECT">─────────────────────────────────┐ │ 
-    &lt;div class="phpipam_<var>OBJECT</var>_<var>Param_1</var> row0&gt;sometimes&lt;/div&gt;<br /+│  │ listing box (depends setting)                                   │ │ 
-    &lt;div class="phpipam_<var>OBJECT</var>_<var>Param_2</var> row1&gt;optionally&lt;/div&gt;<br /+│  │ ┌────<div class="phpipam_OBJECT_Param1 row0">─────────────────┐ │ │ 
-  &lt;/div&gt; +│  │ └────</div><!-- phpipam_OBJECT_Param1 row0-->─────────────────┘ │ │ 
-  </div> +│  │ ┌────<div class="phpipam_OBJECT_Param2 row1">─────────────────┐ │ │ 
-&lt;/div&gt; +│  │ └────</div><!-- phpipam_OBJECT_Param2 row1-->─────────────────┘ │ │ 
-</div> +│  └────</div>───────────────────────────────────────────────────────┘ │ 
-</HTML>+└────</div>────────────────────────────────────────────────────────────┘ 
 +</code>
  
 For example, you may have things like:  For example, you may have things like: 
Line 287: Line 287:
 This plugin is then rewritten with newer attributes ''lid'', ''eid'' (renamed so when I've added VRF and VLAN later), ''did'', ''l2s''/''l2n'', ''l2e'', ''e2d'', ''l2d'', ''l2e'', ''d2e'' This plugin is then rewritten with newer attributes ''lid'', ''eid'' (renamed so when I've added VRF and VLAN later), ''did'', ''l2s''/''l2n'', ''l2e'', ''e2d'', ''l2d'', ''l2e'', ''d2e''
 However, having to deal with numeric identifiers is not so friendly. A workaround is provided by the support of filters.  However, having to deal with numeric identifiers is not so friendly. A workaround is provided by the support of filters. 
-Currently, API doesn't offer no simpler way to do that; and there's no partial search... +Currently, API doesn't offer simpler way to do that; and there's no partial search... 
  
-Also, later, before public release, I've added the other attributes: ''t2n''/''t2s'', ''t2d'', ''s2n''/''s2s'', ''f2n''/''f2s'', ''r2n''/''r2s'', ''vid'', ''s2v'', ''22v''. Most of them are [[wp>Proof_of_concept#Software_development|PoC]] and they may be room for improvment+Also, later, before public release, I've added the other attributes: ''t2n''/''t2s'', ''t2d'', ''s2n''/''s2s'', ''f2n''/''f2s'', ''r2n''/''r2s'', ''vid'', ''s2v'', ''22v''. Most of them are [[wp>Proof_of_concept#Software_development|PoC]] and they may be room for improvement
  
 Last but not least; many CSS classes are added, but a consistency check must be done. \\ Last but not least; many CSS classes are added, but a consistency check must be done. \\
Line 297: Line 297:
 That doesn't mean there aren't ideas in the hood (nat, patch panels, circuits, etc.)   That doesn't mean there aren't ideas in the hood (nat, patch panels, circuits, etc.)  
 To be followed...  To be followed... 
- 
  
 ==== Other Questions ==== ==== Other Questions ====
Line 308: Line 307:
  
 {{rss>https://github.com/gilcot/dwpi/commits/master.atom date}} {{rss>https://github.com/gilcot/dwpi/commits/master.atom date}}
- 
  
plugin/phpipam.1536784115.txt.gz · Last modified: 2018-09-12 22:28 by gilcot

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