Talk:Manual - DPL parameters: Controlling output format
I think you forgot to reference %REVISION% variable in mode=userformat here. Great job at documenting otherwise!!!
Contents
titlemaxlength and userformat
When using the mode = userformat
the titlemaxlength is not respected.
If you have a title called 1234567890 and use the following:
mode = userformat listseparators = ,¶* %TITLE%, titlemaxlength = 5
You will not have the title cut as 12345...
Thought I'd let ya know. 64.252.183.33 03:15, 15 June 2007 (CEST) (No account yet).
Reply
Thank you for finding out. This is a slight inconsistency which will be removed in the next release. I guess it's preferrable to have the same behaviour of titlemaxlength throughout all modes. Gero 05:30, 15 June 2007 (CEST)
Is CATLIST working?
I tried to generate an index of the main namespace, each article with its category. The variables %CATLIST% or %CATNAMES% return nothing, but the articles do have categories assigned.
<DPL> namespace= mode = userformat listseparators = {| class="prettytable"¶ !Category!!Page, ¶|-¶|%CATLIST% || [[%PAGE%]] ,,¶|} </DPL>
-- Björn 10.Jul 09:14
CATLIST requires addcategories
For optimisation reasons the %CATLIST% and %CATNAMES% variables are only filled if you specify "addcategories=true". Gero 08:11, 11 July 2007 (CEST)
It works
I tried
$wgDPL2Options['addcategories'] = array('default' => 'true', 'true', 'true');
and now it works. Thanks. -- Bjoern 14.Jul 00:40
- Fine; but please note that you could also use "addcategories = true" within your DPL statement and leave the default as it is. This would give you better performance in those cases where you do not need the CATLIST. If your wiki is small, however, the effect probably won# t be significant. -- 217.238.216.19 06:12, 14 July 2007 (CEST)