Open main menu
Home
Random
Donate
Recent changes
Special pages
Community portal
Preferences
About Stockhub
Disclaimers
Search
User menu
Talk
Contributions
Create account
Log in
Editing
Module:Check for clobbered parameters/doc
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{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 === <pre> {{#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}} </pre> Here, (<code>arg1a</code>, <code>arg1b</code>), (<code>arg2a</code>, <code>arg2b</code>, <code>arg2c</code>), are tuples of the conflicting parameters. By default, the module ignores blank parameters which is useful for {{tl|if empty}} chains of parameters. For nested chains of parameters, use {{para|nested|1}} to consider blank parameters as well. By default, the delimiter for the tuples is <code>;</code> but this can be changed with {{para|delimiter}}. The value of {{para|template}} is used to for the text of the preview warning message. When omitted, the module will use a generic message. == Example 1 == <pre> {{Infobox | above = {{{name|}}} | label1 = Founder{{#if:{{{founders|}}}|s}} | data1 = {{if empty| {{{founders|}}} | {{{founder|}}} }} | label2 = Headquarters | data2 = {{if empty| {{{headquarters|}}} | {{{hq|}}} | {{{location|}}} }} }}<!-- 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 }}</pre> == Example 2 == <pre> {{Infobox | above = {{{name|}}} | label1 = Founder(s) | data1 = {{{founders|{{{founder|}}}}}} | label2 = Headquarters | data2 = {{{headquarters|{{{hq|{{{location|}}}}}}}}} }}<!-- end infobox, start tracking -->{{#invoke:Check for clobbered parameters|check | nested = 1 | template = Infobox example | cat = {{main other|Category:Pages using infobox example with conflicting parameters}} | founders; founder | headquarters; hq; location }}</pre> ==See also== * [[Module:Check for unknown parameters]] * [[Module:Check for deprecated parameters]] * [[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]] }}</includeonly>
Summary:
Please note that all contributions to Stockhub may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Stockhub:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:High-use
(
edit
)
Template:Lua
(
edit
)
Template:Module rating
(
edit
)
Template:Para
(
edit
)
Template:Tl
(
edit
)