DPL:Gallery

From FollowTheScore
Jump to: navigation, search

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 columns 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

A more elaborated (german) version is available at: http://de.wiki-products.org/Treibstoffverbrauch_pro_Sitzplatz








Creating graphic representations of numeric properties from articles

Handy size.png

You can use DPL for creating visual representations of numeric values from different articles. I used this for visualizing the sizes of cell-phones. You can sort the tables according to different parameters.

Have a closer look at: http://de.wiki-products.org/Dicke_von_Handys_im_Vergleich













Creating a video submission system that is 100% user-contributed

Emuwikivideos.jpg

You can use DPL for creating a video, news, website list, document archive, biographies lists that are completely user-contributed. For this you need to combine the use of DPL with Semantic Forms and embed videos extension. In the case of the videos, it's even possible to listen to the video playing from Youtube directly in the table created by DPL. Users can add elements to the list simply by filling a very simple form.