Issue:Version Reporting

From FollowTheScore
Jump to: navigation, search
Description: It is hard for users of a Wiki using DPL to find the version of DPL being run by the Wiki.
Extension / Version: DPL   /   All
Type / Status: Change Request   /   closed

Suggestion

It would be nice if future versions reported the version through a simple query.

Example:

<DPL>
reportversion=yes
</DPL>

As a suggested implementation, any query including this flag would report the DPL version being used on first line of the results.

If this functionality already exists, I could not find it in the DPL Manual.


Reply

I think a %VERSION% pseudo-variable would be a more flexible solution. You could use it within the resultsheader for example.

This is DPL version 3.2.1.


Gero 09:10, 17 January 2008 (CET)

Shall we document this?

It looks like Gero has provided an answer by example. I think this issue can probably be closed if this works in current and future versions, but I would like for it to be documented somewhere. Any suggestions for the most appropriate location? Is it already documented?

<DPL>
resultsheader=This is DPL version '''%VERSION%.'''
title=Main Page
</DPL>

or

{{#dpl:resultsheader=This is DPL version '''%VERSION%.'''\n|title=Main Page}}

I should look this stuff up first

This is already documented in resultsheader. I've moved this issue to closed.