Content deleted Content added
No edit summary |
BrandonXLF (talk | contribs) |
||
(7 intermediate revisions by 6 users not shown) | |||
Line 1:
{{Module rating |beta}}
{{high-use|111137}}
{{Lua|Module:If preview}}
This module may be appended to a template to check for uses of tuples of conflicting parameters.
== Usage ==
=== Basic usage ===
<syntaxhighlight lang="wikitext">
{{#invoke:Check for clobbered parameters|check
|nested=1
|template=Some template name
|cat={{main other|Category:Some tracking category}}
|arg1a; arg1b|arg2a; arg2b; arg2c|...|argNa; argNb}}
</syntaxhighlight>
Here, (<code>arg1a</code>, <code>arg1b</code>), (<code>arg2a</code>, <code>arg2b</code>, <code>arg2c</code>), are tuples of the conflicting parameters.
Line 22:
== Example 1 ==
<syntaxhighlight lang="wikitext">
{{Infobox
| above = {{{name|}}}
Line 34:
}}<!--
end infobox, start tracking
-->{{#invoke:Check for clobbered parameters|check
| template = Infobox example
| cat = {{main other|Category:Pages using infobox example with conflicting parameters}}
| founders; founder
| headquarters; hq; ___location
}}</
== Example 2 ==
<syntaxhighlight lang="wikitext">
{{Infobox
| above = {{{name|}}}
Line 54:
}}<!--
end infobox, start tracking
-->{{#invoke:Check for clobbered parameters|check
| nested = 1
| template = Infobox example
Line 60:
| founders; founder
| headquarters; hq; ___location
}}</
==See also==
* [[Module:Check for unknown parameters]]
* [[Module:Check for deprecated parameters]]
* [[Module:Params]]
* [[Template:Conflicting parameters category]] (for use on category pages)
<includeonly>{{sandbox other||
<!-- Categories go here and interwikis go in Wikidata. -->
[[Category:Modules that add a tracking category]]
[[Category:Template metamodules]]
}}</includeonly>
<noinclude>
[[Category:Module documentation pages]]
</noinclude>
|