Talk:Manual - DPL parameters: Controlling output format

From FollowTheScore
Revision as of 07:11, 11 July 2007 by Gero (talk | contribs) (Is CATLIST working?)
Jump to: navigation, search

I think you forgot to reference %REVISION% variable in mode=userformat here. Great job at documenting otherwise!!!

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)