Module:Params/testcases/tcompare separated entries/doc
![]() | This is a documentation subpage for Module:Params/testcases/tcompare separated entries. It may contain usage information, categories and other content that is not part of the original module page. |
This test template compares the behaviours of Module:Params with that of Module:Separated entries.
Usage
For instance,
<syntaxhighlight lang="wikitext">Without a last separator:
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar+Jupiter</syntaxhighlight> | one+two+three+foo+bar+Jupiter |
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar+Jupiter</syntaxhighlight> | one+two+three+foo+bar+Jupiter |
With a last separator (::
):
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar::Jupiter</syntaxhighlight> | one+two+three+foo+bar::Jupiter |
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar::Jupiter</syntaxhighlight> | one+two+three+foo+bar::Jupiter |
With a last separator (::
) and cutting the first three parameters:
<syntaxhighlight lang="wikitext" inline>foo+bar::Jupiter</syntaxhighlight> | foo+bar::Jupiter |
<syntaxhighlight lang="wikitext" inline>foo+bar::Jupiter</syntaxhighlight> | foo+bar::Jupiter |
</syntaxhighlight>
generates
Without a last separator:
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar+Jupiter</syntaxhighlight> | one+two+three+foo+bar+Jupiter |
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar+Jupiter</syntaxhighlight> | one+two+three+foo+bar+Jupiter |
With a last separator (::
):
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar::Jupiter</syntaxhighlight> | one+two+three+foo+bar::Jupiter |
<syntaxhighlight lang="wikitext" inline>one+two+three+foo+bar::Jupiter</syntaxhighlight> | one+two+three+foo+bar::Jupiter |
With a last separator (::
) and cutting the first three parameters:
<syntaxhighlight lang="wikitext" inline>foo+bar::Jupiter</syntaxhighlight> | foo+bar::Jupiter |
<syntaxhighlight lang="wikitext" inline>foo+bar::Jupiter</syntaxhighlight> | foo+bar::Jupiter |