Difference between revisions of "Talk:Test table"

From FollowTheScore
Jump to: navigation, search
(How can I create a table with a column for each article)
Line 41: Line 41:
 
  |count=20
 
  |count=20
 
}}
 
}}
 +
 +
----
 +
 +
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 --[[User:Pdcemulator|Pdcemulator]] 08:44, 12 July 2010 (UTC)
 +
 +
{| class="wikitable"
 +
|-
 +
| '''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
 +
|}

Revision as of 09:44, 12 July 2010

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.


article categories date author size
- Source and Installation}}&action=history Manual - Source and Installation DPL Manual 2015-06-11 19:17:55 Maiden taiwan 13262
using DPL}}&action=history Websites using DPL DPL 2015-03-24 21:54:25 Bernd 15299
- DPL parameters: Criteria for page selection}}&action=history Manual - DPL parameters: Criteria for page selection DPL Manual 2015-02-11 22:40:41 Capmo 45961
- dplchapter}}&action=history Manual - dplchapter DPL Manual 2013-07-19 16:32:42 Maiden taiwan 1324
- DPL parameters: Controlling output order}}&action=history Manual - DPL parameters: Controlling output order DPL Manual 2013-05-01 16:53:54 Capmo 6309
FAQ DPL, Tag Event2 2012-08-17 21:05:11 Claus chr 72720
Manual DPL Manual 2012-05-28 16:14:34 Theaitetos 2081
- DPL with PostgreSQL}}&action=history Manual - DPL with PostgreSQL DPL Manual 2011-01-19 14:45:33 FreddyVulto 1581
Discussion 2010-09-19 13:46:26 Duma 70525
- Authors and History}}&action=history Manual - Authors and History DPL Manual 2010-07-28 19:30:02 Ilya 3561
- DPL parameters: Controlling output volume}}&action=history Manual - DPL parameters: Controlling output volume DPL Manual 2010-03-01 19:21:29 Eep² 27888
- DPL parameters: Controlling output format}}&action=history Manual - DPL parameters: Controlling output format DPL Manual 2010-02-03 04:34:11 Eep² 46637
- DPL Bug Reporting and Feature Requests}}&action=history Manual - DPL Bug Reporting and Feature Requests DPL Manual 2009-12-04 13:47:42 Gero 2010
- dplnum}}&action=history Manual - dplnum DPL Manual 2009-10-13 07:55:02 Gero 1173
- dplreplace}}&action=history Manual - dplreplace DPL Manual 2009-10-13 07:39:19 Gero 708
- DPL parameters: Other parameters}}&action=history Manual - DPL parameters: Other parameters DPL Manual 2009-10-13 07:23:59 Gero 23286
History}}&action=history Version History DPL 2009-10-13 07:16:28 Gero 51380
- dplvar}}&action=history Manual - dplvar DPL Manual 2009-10-04 13:15:40 Gero 872
- General Usage and Invocation Syntax}}&action=history Manual - General Usage and Invocation Syntax DPL Manual 2009-10-04 12:44:15 Gero 17170
Installation 2009-08-08 21:27:37 Nx 8660

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