Talk:Test table
From FollowTheScore
Can I (how can I) use %TITLE%, %COUNT%, etc. with table? --Dmb 01:16, 17 September 2007 (CEST)
Inside the phantom template you can use these variables. But you can also use them directly in the DPL statement. Gero 12:27, 17 September 2007 (CEST).
You can even write something like:
{{#dpl:
|ordermethod=lastedit
|namespace=DPL
|order=descending
|addeditdate=true
|addcategories=true
|adduser=true
|addpagesize=true
|mode=userformat
|titlematch=%
|lastrevisionbefore=3000
|listseparators=¶{¦class="sortable" ¶!article ¶!categories ¶!date ¶!author ¶!size,¶¦-¶¦[http://{{SERVERNAME}}/dpldemo/index.php?title=%NAMESPACE%:²{#urlencode:%TITLE%}²&action=history %TITLE%]¶¦<small>%CATNAMES%</small>¶¦%DATE%¶¦%USER%¶¦%SIZE%,¶,¶¦}
|secseparators=\n¦
|count=20
}}
This will give you the latest modifications in the main namespace and in Talk in a nice format. The link will open the diff in a new window.
How can I create a table with a column for each article? I have tested with Table#columns, but it did not work for me. Thank you --Pdcemulator 08:44, 12 July 2010 (UTC)
| Name | Some Article 1 | Some Article 2 | Some Article 3 |
| Value 1 | some value 1-1-1 | some value 2-1-1 | some value 3-1-1 |
| Value 3 | some value 1-3-1 | some value 2-3-1 | some value 3-3-1 |
- I am afraid there is no way to do this with DPL. DPL walks through the articles and tables are built line-wise, nbot column-wise. Maybe you can find a MW extension which flips a table as a whole? In that case you could wrap the DPL call by that extension. Gero 20:56, 13 July 2010 (UTC)