Difference between revisions of "DPL:Gallery"

From FollowTheScore
Jump to: navigation, search
(New page: == Using DPL: Examples for best practice == There are a lot of good ideas on how to use DPL, often in combination with other MediaWiki extensions. If you have an example on your wiki wh...)
 
Line 1: Line 1:
 
 
== Using DPL: Examples for best practice ==
 
== Using DPL: Examples for best practice ==
  
Line 6: Line 5:
 
If you have an example on your wiki which you want to share with us, please put a link below and give a short description what it is about.
 
If you have an example on your wiki which you want to share with us, please put a link below and give a short description what it is about.
  
=== Creating a summary view where the length of a graphical bar corresponds to some numeric property of the articles ===
+
=== Creating vertical bar charts with numeric properties from articles ===
 +
[[Image:Bar chart.png|thumb|400px]]
 +
 
 +
You can use DPL for creating sortable bar charts. In this example I used two templates, which are placed in the two collums of the sortable DPL-table. The template for "fuel economy" (Template:Car dpl2) contains two (borderless) tables with one row in each. To determine the width of each table I made use of one of the numerical parameters from the articles. This way the table turns into a nice bar chart representing a specific value. (There are some more features included, e.g. calculating the CO2-Emissions automatically if there is no value given, thus the template looks a bit complicated.)
  
...
+
Have a closer look at: http://en.wiki-products.org/Fuel_economy

Revision as of 13:41, 14 October 2007

Using DPL: Examples for best practice

There are a lot of good ideas on how to use DPL, often in combination with other MediaWiki extensions.

If you have an example on your wiki which you want to share with us, please put a link below and give a short description what it is about.

Creating vertical bar charts with numeric properties from articles

Bar chart.png

You can use DPL for creating sortable bar charts. In this example I used two templates, which are placed in the two collums of the sortable DPL-table. The template for "fuel economy" (Template:Car dpl2) contains two (borderless) tables with one row in each. To determine the width of each table I made use of one of the numerical parameters from the articles. This way the table turns into a nice bar chart representing a specific value. (There are some more features included, e.g. calculating the CO2-Emissions automatically if there is no value given, thus the template looks a bit complicated.)

Have a closer look at: http://en.wiki-products.org/Fuel_economy