Difference between revisions of "Issue:Version Reporting"
(→Reply) |
(Great answer, now how about documentation?) |
||
Line 4: | Line 4: | ||
|Version = All | |Version = All | ||
|Description = It is hard for users of a Wiki using DPL to find the version of DPL being run by the Wiki. | |Description = It is hard for users of a Wiki using DPL to find the version of DPL being run by the Wiki. | ||
− | |Status = open | + | |Status = open / answered |
}} | }} | ||
Line 29: | Line 29: | ||
[[User:Gero|Gero]] 09:10, 17 January 2008 (CET) | [[User:Gero|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 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? | ||
+ | <pre> | ||
+ | <DPL> | ||
+ | resultsheader=This is DPL version '''%VERSION%.''' | ||
+ | title=Main Page | ||
+ | </DPL> | ||
+ | </pre> | ||
+ | or | ||
+ | <pre> | ||
+ | {{#dpl:resultsheader=This is DPL version '''%VERSION%.'''\n|title=Main Page}} | ||
+ | </pre> |
Revision as of 10:03, 20 January 2008
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 / open / answered |
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 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}}