Module:Params/testcases/tcompare separated entries/doc

From English Wikipedia @ Freddythechick

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