Issue:Include positional template parameter

From FollowTheScore
Revision as of 18:10, 29 September 2007 by 128.30.28.46 (talk) (New page: {{Issue |Type = Bug |Extension = DPL |Version = 1.4.3 |Description = including positional template parameters can fail depending on form of template call |Status = o...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Description: including positional template parameters can fail depending on form of template call
Extension / Version: DPL   /   1.4.3
Type / Status: Bug   /   open

Problem

MediaWiki template parameters are by default numbered but the templates can be called by name. For example, if I have a template that takes one unnamed argument, I can call the template like {{template|arg}} but I can also call it as {{template|1=arg}}. The reason to use the second form is if arg contains an equals sign (so in general it's safer to use the second form if you don't know what arg could be. DPL does not appear to be able to handle this. If I try using include={template}:1, it doesn't find the argument correctly if I use {{template|1=arg}} to call the template.




Reply