Jump to content

Help talk:Duplicate parameters

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Draco flavus (talk | contribs) at 09:23, 16 February 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
WikiProject iconWikipedia Help Low‑importance
WikiProject iconThis page is within the scope of the Wikipedia Help Project, a collaborative effort to improve Wikipedia's help documentation for readers and contributors. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. To browse help related resources see the Help Menu or Help Directory. Or ask for help on your talk page and a volunteer will visit you there.
LowThis page has been rated as Low-importance on the project's importance scale.

Intended double assignment

Is there any possibiltiy to exclude a template from being listed in case the double definition is for this particular template (not only one instance but globally) intended and meaningful? Regards Draco flavus (talk) 08:40, 16 February 2021 (UTC)[reply]

@Draco flavus: No. Do you have an example of such a template? PrimeHunter (talk) 08:58, 16 February 2021 (UTC)[reply]
Not on this wiki (on the Polish wikisource). It is still on experimental stage. The idea behind it is: called without a special parameter reference it simply takes the last instance of the named parameter, called with the parameter reference inherits all parameters from the referenced instance of the template above the other special (pseudo)-parameter CUT.

Page one:

{{MyTemplate
|parameter1=abc
|parameter2=def
|parameter3=ghi
|parameter4=jkl
|CUT=---
|parameter1=mno
|parameter5=stu
}}

On another page:

{{MyTemplate
|reference=Page one
|parameter2=pqr
}}

which effectively evaluates to:

{{MyTemplate
|parameter1=abc
|parameter2=pqr
|parameter3=ghi
|parameter4=jkl
}}

It works quite fine, however Page one is reported as page with duplicated definition of a parameter. For the productive stage it is simply not elegant and maybe prone to other undesired effects.

Draco flavus (talk) 09:23, 16 February 2021 (UTC)[reply]