https://bugzilla.wikimedia.org/show_bug.cgi?id=30648

Gustronico <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Gustronico <[email protected]> 2011-08-31 16:50:37 UTC 
---
In brief: at parsing time, all named parameters defined in a wikitext tag,
should be virtually inserted at the beginning of all template tags encountered
in the target template code.
'At the beginning' condition permits the template real tags to override
virtually attached parameters.

Just an example. Actual page tag:
{{main |Foo |article=My Title |bar=Bar |2=some text |unnamed |flag=yes }}

Current 'main' template content:
{{core |{{{1}}} |text={{{2}}} |article={{{article|}}} |flag={{{flag|no}}}
|style=normal}}

Simplified content after suggested enhancement:
{{core |{{{1}}} |text={{{2}}} |style=normal}}

Virtual call at parsing time:
{{core |article=My Title |bar=Bar |flag=yes |{{{1}}} |text={{{2}}}
|style=normal}}

Current 'core' template content:
*Title is {{#if:{{{article|}}}|{{{article}}}|{{PAGENAME}} }}
*Any process comprising {{{1}}}, {{{text}}}, {{{flag}}} and {{{style}}}

Simplified content after suggested enhancement:
*Title is {{{article|{{PAGENAME}}}}}
*Any process comprising {{{1}}}, {{{text}}}, {{{flag}}} and {{{style}}}

Note that in case of page tag includes a parameter
|style=very big and colorful
it will be over writen by main template

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to