Terraria Wiki

  • Discussions are now available on the Terraria Wiki.
  • Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement

Creating a table with list-separators[]

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=Help
 |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
Contents Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2023-08-29 15:59:13 Jmxb 3878
animated GIFs}}&action=history Creating animated GIFs Help, Pages using DynamicPageList3 dplvar parser function 2022-01-04 05:54:12 AmsterWikis 8043
& l10n for templates}}&action=history I18n & l10n for templates Help, Pages using DynamicPageList3 dplreplace parser function, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2021-11-30 23:50:57 Rye Greenwood 6093
Cache Help, Pages using DynamicPageList3 dplreplace parser function, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2021-09-12 10:38:53 Carenstridberg 3864
Manual/Controlling output format}}&action=history DPL Manual/Controlling output format DPL, Help, Pages using DynamicPageList3 dplreplace parser function, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function, Pages using DynamicPageList3 parser tag 2021-06-29 19:43:45 Rye Greenwood 63134
Manual}}&action=history DPL Manual DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function, Pages using DynamicPageList3 parser tag 2021-05-20 04:25:30 Ferretwings 2507
Signatures Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2021-04-08 15:37:41 Rye Greenwood 5268
Manual/Controlling output volume}}&action=history DPL Manual/Controlling output volume DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function, Pages using DynamicPageList3 parser tag 2020-08-16 00:16:53 Philo04 29127
a navigational template}}&action=history Making a navigational template Help, Pages using DynamicPageList3 dplreplace parser function, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2020-07-13 14:30:23 Rye Greenwood 3069
Rollback Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2020-06-17 15:21:24 Equazcion 2030
a new page}}&action=history Starting a new page Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2020-06-14 20:01:30 151.225.52.44 4475
Editing Help, Pages using DynamicPageList3 dplvar parser function 2020-05-22 17:00:20 Rye Greenwood 4123
Manual/Criteria for page selection}}&action=history DPL Manual/Criteria for page selection DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2019-04-24 13:36:08 Rye Greenwood 45939
Manual/General Usage and Invocation Syntax}}&action=history DPL Manual/General Usage and Invocation Syntax DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2019-04-21 12:23:01 Rye Greenwood 17100
Examples/Test resultsheader}}&action=history DPL Examples/Test resultsheader DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function, Pages using DynamicPageList3 parser tag 2019-01-04 11:53:10 Rye Greenwood 2869
Manual/Source and Installation}}&action=history DPL Manual/Source and Installation DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2018-11-18 02:09:56 Ferretwings 12406
Manual/dplreplace}}&action=history DPL Manual/dplreplace DPL, Help, Pages using DynamicPageList3 dplreplace parser function, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2018-11-14 03:15:46 ReedemBot 705
Manual/Wgraph:Version History}}&action=history DPL Manual/Wgraph:Version History DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2018-11-14 03:15:45 ReedemBot 1936
Manual/Other parameters}}&action=history DPL Manual/Other parameters DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2018-11-14 03:15:42 ReedemBot 23456
Manual/Controlling output order}}&action=history DPL Manual/Controlling output order DPL, Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function 2018-11-14 03:15:35 ReedemBot 6412
The URL part for the listseparators might be re-written as [http://{{SERVERNAME}}/dpldemo/index.php?title=²{urlencode:%PAGE%}²&diff %PAGE%] --nakohdo 17:19, 17 June 2011 (CEST)

Table with a column for each article?[]

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)
If you have the VariablesExtension installed, you can make a query and store the results in variablename%NR% for each matching page. Afterwards use these variables in a standard wikitable:
article Contents animated GIFs}}&action=history Creating animated GIFs & l10n for templates}}&action=history I18n & l10n for templates
categories Help, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function Help, Pages using DynamicPageList3 dplvar parser function Help, Pages using DynamicPageList3 dplreplace parser function, Pages using DynamicPageList3 dplvar parser function, Pages using DynamicPageList3 parser function
date 2023-08-29 15:59:13 2022-01-04 05:54:12 2021-11-30 23:50:57
author Jmxb AmsterWikis Rye Greenwood
size 3878 8043 6093
note: in this example, variablenames are hard-coded; you can also do something like a loop --WiMu 14:58, 14 July 2010 (UTC)


Using parameters[]

I would like do something like this:

 |namespace=Glossary
 |include= {Some Template}:parm1:parm2:[[parm3|parm4]]
 

I have created a namespace for a Glossary and would like to use one parameter as an internal link to some article elsewhere in the Wiki.

The whole thing works for the first two parms, but of course not for the internal links. How could that be done? Im thinking of something like "replace parm4 by [[parm3|parm4]]" but do not know how and at which place to get the parm into a regular expression ...

--Bescheid 15:57, 20 July 2010 (UTC)

You should use a phantom template. See the manual and various examples available here. Within that template you can do whatever you want with the parameters. See the example below:

.Gero 05:30, 21 July 2010 (UTC)

Advertisement