Difference between revisions of "Talk:Manual - DPL parameters: Controlling output format"
(→Is CATLIST working?) |
(→Is CATLIST working?) |
||
Line 22: | Line 22: | ||
I tried to generate an index of the main namespace, each article with its category. | 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. | The variables %CATLIST% or %CATNAMES% return nothing, but the articles do have categories assigned. | ||
− | < | + | <pre> |
<DPL> | <DPL> | ||
namespace= | namespace= | ||
Line 28: | Line 28: | ||
listseparators = {| class="prettytable"¶ !Category!!Page, ¶|-¶|%CATLIST% || [[%PAGE%]] ,,¶|} | listseparators = {| class="prettytable"¶ !Category!!Page, ¶|-¶|%CATLIST% || [[%PAGE%]] ,,¶|} | ||
</DPL> | </DPL> | ||
− | </ | + | </pre> |
-- Björn 10.Jul 09:14 | -- Björn 10.Jul 09:14 |
Revision as of 09:18, 10 July 2007
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