Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Search
Editing
DPL3/Parameters: Controlling output format
(section)
From KB42
Namespaces
Page
Discussion
More
More
Page actions
Read
Edit
Edit source
History
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
===rowsize=== {{DPL parameter |name = rowsize |purpose= Define a row layout for the output. A "row" is a group of n output lines for which the heading will be repeated. }} Syntax: {{DPL syntax|rowsize=''nrowsize''}} In {{dpl3|mode|=userformat}} the outer tags from {{dpl3|listseparators}} will be repeated after each group of {{dpl3|rowsize}} output lines. Thus you can create long lists where the table heading is repeated in regular intervals. Example: <pre><nowiki> <dpl> category = Help nottitlematch = %DPL% includesubpages = false addpagesize = true ordermethod = size listseparators = {|class=sortablewikitable id=2\n!Rank\n!width=200px|Article\n!Bytes\n|-,\n|%NR%.\n|[[%PAGE%]]\n|style="text-align:right;"|%SIZE%,\n|-,\n|} rowsize = 3 count = 6 </dpl> </nowiki></pre> The output will contain a list of all non-DPL articles in [[:Category:Help]]. After each group of 3 entries (article names) the table heading will be repeated. It may be useful to set the width of the column with the article names explicitly, so that the tables in each row have equal width. <dpl> category = Help nottitlematch = %DPL% includesubpages = false addpagesize = true ordermethod = size listseparators = {|class=sortablewikitable id=2\n!Rank\n!width=200px|Article\n!Bytes\n|-,\n|%NR%.\n|[[%PAGE%]]\n|style="text-align:right;"|%SIZE%,\n|-,\n|} rowsize = 3 count = 6 </dpl>
Summary:
Please note that all contributions to KB42 may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
KB42:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
DONATE
Wiki tools
Wiki tools
Special Pages
Categories
Import Pages
Cargo data
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs