Difference between revisions of "DPL talk:Manual - DPL parameters: Controlling output volume"
From FollowTheScore
(→Include and Template Parameters) |
(→Include and Template Parameters) |
||
Line 15: | Line 15: | ||
:I'm not sure I understand how that'd work. Can you give an example? —[[User:Sledged|Sledged]] ([[User talk:Sledged|talk]]) 00:28, 24 October 2007 (CEST) | :I'm not sure I understand how that'd work. Can you give an example? —[[User:Sledged|Sledged]] ([[User talk:Sledged|talk]]) 00:28, 24 October 2007 (CEST) | ||
+ | |||
+ | ::If you call a template 10 or twenty times from an article: Why would you want to extract exactly the 10th invocation? I would assume that you are more interested in certain parameter constellations instead of the position of the template call ... Unless you give a convincing example I can´t see why we should count template invocations .. | ||
+ | |||
+ | ::To pick a template call based on the argument values it uses the <tt>includematch</tt> statement can be used. [[User:Gero|Gero]] 23:57, 25 October 2007 (CEST) |
Revision as of 23:57, 25 October 2007
Hi, the manual says: "a text portion which is marked by special tags named "foo"", but there is not explanation how to put a marker tag foo in all the articles which appear in DPL listing. Janek Kozicki
10 lines above the manual refers to LabeledSectionTransclusion. Read that. Gero 08:32, 10 October 2007 (CEST)
Include and Template Parameters
What if a page includes a particular template or page more than once. Is there a way to specify the parameters of the nth call to said template? —Sledged (talk) 06:13, 10 October 2007 (CEST)
This sounds rather exotic. You can apply a regexp to the call parameters for filtering - and I guess that the n-th template invocation can be recognized by some difference in the parameters from the (n-1)th invocation ... Isn´t that enough?
- Gero 08:32, 10 October 2007 (CEST)
- I'm not sure I understand how that'd work. Can you give an example? —Sledged (talk) 00:28, 24 October 2007 (CEST)
- If you call a template 10 or twenty times from an article: Why would you want to extract exactly the 10th invocation? I would assume that you are more interested in certain parameter constellations instead of the position of the template call ... Unless you give a convincing example I can´t see why we should count template invocations ..
- To pick a template call based on the argument values it uses the includematch statement can be used. Gero 23:57, 25 October 2007 (CEST)