Extension DPL
From WikiCODOPN
|
This wiki is the homeplace of two powerful MediaWiki extensions developed and maintained by Gero Scholz. | ||||
|
DPL is a report generator for MediaWikis. <dpl> category=African Union member states
nottitlematch=Sudan
includepage={Infobox Country or territory}:area:population_estimate,%0[100]
mode=userformat
addpagecounter=true
format=,,\n|align=right|%COUNT%\n,
table=,Country,Area,Poplulation,Text,#hits
tablerow=align=right|%%,align=right|%%,%%,\n|align=right|%%
</dpl> Combining the power of DPL and Ploticus we can easily generate a pie chart showing (for example) page hit frequencies. To see that it works live, note the hit count of a country, then click on that country in the above table and come back to the main page. The hit count has changed and the pie has become a little bigger ;-) {{#ploticus:
data: {{#dpl: | category=African Union member states | addpagecounter=true | format=, "%TITLE%" %COUNT%,\n,
}} // render pie graph
datafield: 2 labelfmtstring: @@1\n@@2\n@@PCT% labelmode: line+label outlinedetails: color=blue center: 3 3 radius: 1.1 colors: dullyellow drabgreen pink powderblue lavender labelfarout: 1.2 explode: 0 0.2 0 0 }} |
Wgraph is a graph generator for MediaWikis. {{#wgraph: svg | thumb = 50 | node wgl { type data label "text notation\n-- WGL --" }
edge wgl wgraph { kind rightnear color red }
node wgraph { type process label "Wgraph\nmediawiki extension" }
edge wgraph gdl { }
node gdl { type data label "graph definition\n-- GDL --" }
edge gdl aisee { }
node aisee { type process label "aiSee\nlayout generator" }
edge aisee img { kind leftnear }
node img { type data label "image\n-- png, svg --"
shape hexagon }
nodetype data { shape ellipse, color lightyellow,
bordercolor khaki, height 60 }
nodetype process { shape box color lightmagenta
bordercolor magenta height 60 }
xspace=70, yspace=120
}} |
- Both extensions are under GPL license. Test them here live! There is extensive documentation, see the online manuals. You can download the sources.
- Apart from DPL and Wgraph there are some minor extensions like Call and an improved versions of existing extensions named Inputbox and StripMarkup which may be useful. See the navigation bar. We also host the StackFunctions extension.
- There are plenty of examples, which can serve as a starting point for your own ideas. There is a small calendar application (built with DPL) which you can use and enhance.
- There is a place where you can report bugs and request new features. If you use the extensions, please leave a reference to your wiki!
