Module:Xpd/doc

From RobotX
Jump to navigation Jump to search

This is the documentation page for Module:Xpd

This module is invoked from Template:Xpds, Template:Xpdp, Template:Xpdws and Template:Xpdwp (w = show wikitext produced, s = same line, p = new paragraph), expansion demo templates that show the call of a variable, parser function or template, optionally its resulting wikitext, and the latter's rendering. It is also invoked from Template:Xpdplains and Template:Xpdplainp, templates that show plain wikitext and its rendering. They are used for testing and documenting variables, parser functions, templates, and wikitext and html features. The technical notes below apply partly to all templates, partly to the first four only.

For parameters with explicit positive integer names the integer is reduced by 1 in the result (just like for implicit names, due to the position taken by the template name in the calls of the templates xpds and xpdp).

Expressions for parameter values are replaced by their results.

Without affecting the result the template call is written in a normalized form:

  • Values of named parameters are trimmed.[1]
  • Definitions of parameters with implicit or explicit positive integer names are ordered in ascending order.[1] Explicit names among them are removed. These parameters are put before the remaining ones.[1] Multiple definitions of the same parameter are replaced by the final one.[1]
  • In the parameter names and values (after the expansion mentioned above) any braces, pipes and/or equal signs are changed into {{(}}, {{)}}, {{!}}, and {{=}}, so that the parsing of the call is kept intact.[2]

Examples:


{{xpds|Foreach|SeeHook|abc|4= ParserBeforeStrip |5= ParserAfterStrip |delim= / }} gives:

{{Foreach|SeeHook|abc|ParserBeforeStrip|ParserAfterStrip|delim=/}}abc/ParserBeforeStrip/ParserAfterStrip


Wikitext on the left

To display on the left-hand side the wikitext and not the rendering of the parameter values, some adjustments are made at that side[3]:

  • & is replaced by &
  • square brackets are replaced by [ and ]
  • newlines are replaced by <br>
  • spaces are replaced by &nbsp;

Examples:


{{2x|[[abc]]     }}abc abc


Template:Xpdp


{{2x|*abc
}}

  • abc
  • abc

{{2x| a{{!}}b }} → a|b a|b


{{2x| a
'"`UNIQ--templatestyles-0000000C-QINU`"'<div class{{=}}"documentation-container">
<div class{{=}}"documentation">
<div class{{=}}"documentation-startbox">
<span class{{=}}"documentation-heading">[[File:Test Template Info-Icon - Version (2).svg{{!}}50px{{!}}link{{=}}{{!}}alt{{=}}]] Module documentation</span><span class{{=}}"mw-editsection-like plainlinks">&#91;[http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/doc&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-doc create]&#93;</span></div>

<div class{{=}}"documentation-clear"></div>
</div>
<div role{{=}}"note" class{{=}}"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/doc&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this [[Wikipedia:Lua{{!}}Scribunto module]].<br />Editors can experiment in this module's sandbox <span class{{=}}"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/sandbox&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-sandbox create] &#124; [http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/sandbox&preload{{=}}Module%3AXpd%2Fdoc&action{{=}}edit&summary{{=}}Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror])</span> and testcases <span class{{=}}"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/testcases&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-testcases create])</span> pages.<br />Please add categories to the [[Module:Xpd/doc/doc{{!}}/doc]] subpage. [[Special:PrefixIndex/Module:Xpd/doc/{{!}}Subpages of this module]].</div></div>[[Category:Wikipedia pages with strange ((documentation)) usage]]
[[Category:Workaround templates]]b }}
→ a <div class

Module documentation[create]

"documentation-container">

<div class

Module documentation[create]

"documentation">

<div class

Module documentation[create]

"documentation-startbox">

<span class

Module documentation[create]

"documentation-heading">alt .mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} Module documentation[create] You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. Module documentation<span class

Module documentation[create]

"mw-editsection-like plainlinks">[[http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create]]

<div class

Module documentation[create]

"documentation-clear">

<div role

Module documentation[create]

"note" class

Module documentation[create]

"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this Scribunto module.
Editors can experiment in this module's sandbox <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-sandbox create] | [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&preload

Module documentation[create]

Module%3AXpd%2Fdoc&action

Module documentation[create]

edit&summary

Module documentation[create]

Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror]) and testcases <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/testcases&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-testcases create]) pages.
Please add categories to the /doc subpage. Subpages of this module.b a

<div class

Module documentation[create]

"documentation-container">

<div class

Module documentation[create]

"documentation">

<div class

Module documentation[create]

"documentation-startbox">

<span class

Module documentation[create]

"documentation-heading">alt .mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} Module documentation[create] You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. Module documentation<span class

Module documentation[create]

"mw-editsection-like plainlinks">[[http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create]]

<div class

Module documentation[create]

"documentation-clear">

<div role

Module documentation[create]

"note" class

Module documentation[create]

"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this Scribunto module.
Editors can experiment in this module's sandbox <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-sandbox create] | [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&preload

Module documentation[create]

Module%3AXpd%2Fdoc&action

Module documentation[create]

edit&summary

Module documentation[create]

Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror]) and testcases <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/testcases&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-testcases create]) pages.
Please add categories to the /doc subpage. Subpages of this module.b


{{2x| a{{(}}{{(}}b }} → a{{b a{{b


{{2x| a
'"`UNIQ--templatestyles-0000000F-QINU`"'<div class{{=}}"documentation-container">
<div class{{=}}"documentation">
<div class{{=}}"documentation-startbox">
<span class{{=}}"documentation-heading">[[File:Test Template Info-Icon - Version (2).svg{{!}}50px{{!}}link{{=}}{{!}}alt{{=}}]] Module documentation</span><span class{{=}}"mw-editsection-like plainlinks">&#91;[http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/doc&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-doc create]&#93;</span></div>

<div class{{=}}"documentation-clear"></div>
</div>
<div role{{=}}"note" class{{=}}"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/doc&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this [[Wikipedia:Lua{{!}}Scribunto module]].<br />Editors can experiment in this module's sandbox <span class{{=}}"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/sandbox&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-sandbox create] &#124; [http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/sandbox&preload{{=}}Module%3AXpd%2Fdoc&action{{=}}edit&summary{{=}}Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror])</span> and testcases <span class{{=}}"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/testcases&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-testcases create])</span> pages.<br />Please add categories to the [[Module:Xpd/doc/doc{{!}}/doc]] subpage. [[Special:PrefixIndex/Module:Xpd/doc/{{!}}Subpages of this module]].</div></div>[[Category:Wikipedia pages with strange ((documentation)) usage]]
[[Category:Workaround templates]]
'"`UNIQ--templatestyles-0000000F-QINU`"'<div class{{=}}"documentation-container">
<div class{{=}}"documentation">
<div class{{=}}"documentation-startbox">
<span class{{=}}"documentation-heading">[[File:Test Template Info-Icon - Version (2).svg{{!}}50px{{!}}link{{=}}{{!}}alt{{=}}]] Module documentation</span><span class{{=}}"mw-editsection-like plainlinks">&#91;[http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/doc&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-doc create]&#93;</span></div>

<div class{{=}}"documentation-clear"></div>
</div>
<div role{{=}}"note" class{{=}}"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/doc&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this [[Wikipedia:Lua{{!}}Scribunto module]].<br />Editors can experiment in this module's sandbox <span class{{=}}"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/sandbox&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-sandbox create] &#124; [http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/sandbox&preload{{=}}Module%3AXpd%2Fdoc&action{{=}}edit&summary{{=}}Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror])</span> and testcases <span class{{=}}"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title{{=}}Module:Xpd/doc/testcases&action{{=}}edit&preload{{=}}Template%3ADocumentation%2Fpreload-module-testcases create])</span> pages.<br />Please add categories to the [[Module:Xpd/doc/doc{{!}}/doc]] subpage. [[Special:PrefixIndex/Module:Xpd/doc/{{!}}Subpages of this module]].</div></div>[[Category:Wikipedia pages with strange ((documentation)) usage]]
[[Category:Workaround templates]]b }}
→ a <div class

Module documentation[create]

"documentation-container">

<div class

Module documentation[create]

"documentation">

<div class

Module documentation[create]

"documentation-startbox">

<span class

Module documentation[create]

"documentation-heading">alt .mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} Module documentation[create] You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. Module documentation<span class

Module documentation[create]

"mw-editsection-like plainlinks">[[http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create]]

<div class

Module documentation[create]

"documentation-clear">

<div role

Module documentation[create]

"note" class

Module documentation[create]

"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this Scribunto module.
Editors can experiment in this module's sandbox <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-sandbox create] | [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&preload

Module documentation[create]

Module%3AXpd%2Fdoc&action

Module documentation[create]

edit&summary

Module documentation[create]

Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror]) and testcases <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/testcases&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-testcases create]) pages.
Please add categories to the /doc subpage. Subpages of this module.

<div class

Module documentation[create]

"documentation-container">

<div class

Module documentation[create]

"documentation">

<div class

Module documentation[create]

"documentation-startbox">

<span class

Module documentation[create]

"documentation-heading">alt .mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} Module documentation[create] You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. Module documentation<span class

Module documentation[create]

"mw-editsection-like plainlinks">[[http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create]]

<div class

Module documentation[create]

"documentation-clear">

<div role

Module documentation[create]

"note" class

Module documentation[create]

"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this Scribunto module.
Editors can experiment in this module's sandbox <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-sandbox create] | [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&preload

Module documentation[create]

Module%3AXpd%2Fdoc&action

Module documentation[create]

edit&summary

Module documentation[create]

Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror]) and testcases <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/testcases&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-testcases create]) pages.
Please add categories to the /doc subpage. Subpages of this module.b a

<div class

Module documentation[create]

"documentation-container">

<div class

Module documentation[create]

"documentation">

<div class

Module documentation[create]

"documentation-startbox">

<span class

Module documentation[create]

"documentation-heading">alt .mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} Module documentation[create] You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. Module documentation<span class

Module documentation[create]

"mw-editsection-like plainlinks">[[http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create]]

<div class

Module documentation[create]

"documentation-clear">

<div role

Module documentation[create]

"note" class

Module documentation[create]

"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this Scribunto module.
Editors can experiment in this module's sandbox <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-sandbox create] | [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&preload

Module documentation[create]

Module%3AXpd%2Fdoc&action

Module documentation[create]

edit&summary

Module documentation[create]

Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror]) and testcases <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/testcases&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-testcases create]) pages.
Please add categories to the /doc subpage. Subpages of this module.

<div class

Module documentation[create]

"documentation-container">

<div class

Module documentation[create]

"documentation">

<div class

Module documentation[create]

"documentation-startbox">

<span class

Module documentation[create]

"documentation-heading">alt .mw-parser-output .documentation,.mw-parser-output .documentation-metadata{border:1px solid #a2a9b1;background-color:#ecfcf4;clear:both}.mw-parser-output .documentation{margin:1em 0 0 0;padding:1em}.mw-parser-output .documentation-metadata{margin:0.2em 0;font-style:italic;padding:0.4em 1em}.mw-parser-output .documentation-startbox{padding-bottom:3px;border-bottom:1px solid #aaa;margin-bottom:1ex}.mw-parser-output .documentation-heading{font-weight:bold;font-size:125%}.mw-parser-output .documentation-clear{clear:both}.mw-parser-output .documentation-toolbar{font-style:normal;font-size:85%} Module documentation[create] You might want to create a documentation page for this Scribunto module. Editors can experiment in this module's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this module. Module documentation<span class

Module documentation[create]

"mw-editsection-like plainlinks">[[http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create]]

<div class

Module documentation[create]

"documentation-clear">

<div role

Module documentation[create]

"note" class

Module documentation[create]

"documentation-metadata plainlinks">You might want to [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/doc&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-doc create] a documentation page for this Scribunto module.
Editors can experiment in this module's sandbox <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-sandbox create] | [http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/sandbox&preload

Module documentation[create]

Module%3AXpd%2Fdoc&action

Module documentation[create]

edit&summary

Module documentation[create]

Create+sandbox+version+of+%5B%5BModule%3AXpd%2Fdoc%5D%5D mirror]) and testcases <span class

Module documentation[create]

"documentation-toolbar">([http://OCRobotx.org/mediawiki/index.php?title

Module documentation[create]

Module:Xpd/doc/testcases&action

Module documentation[create]

edit&preload

Module documentation[create]

Template%3ADocumentation%2Fpreload-module-testcases create]) pages.
Please add categories to the /doc subpage. Subpages of this module.b


Limitation

Parameters with explicit or implicit positive integer names have to form a set {1, 2, .. k} without gaps. A template call with for example an undefined parameter 1 and a defined parameter 2 is not supported (where an undefined parameter should not be confused with a parameter which is assigned as value the empty string, these are supported)[4]:

{{xpds|2x|3=abc}} gives: {{2x|abc}} → abcabc

See also

Notes

  1. 1.0 1.1 1.2 1.3 This is done by the system upon invocation of the module, so not programmed in the module or the templates. To circumvent it the module would have to require an input string with pipes between the parameters replaced by a token. This would make it more cumbersome to enter the wikitext for the invocation.
  2. There is no explicit way of telling the system that these characters should be considered plain text: if nowiki is used these tags are treated as part of the parameter name of value.
  3. nowiki does not work
  4. The reason it that at the left side of the output these names are all implicit. The module cannot determine which were written explicitly in the invocation, except when there is a space or newline at the start or end of the value, then the parameter name was implicit. Writing all explicitly would give wrong output, since the righthand side is based on parameters being implicit or explicit (they would be trimmed in the latter case), in accordance with what they were in the invocation of the module. Writing extra pipes would assign the empty string to the undefined parameters in the gaps, which it not the same as them being undefined.