Module:Params/doc/examples/link to expanded template: Difference between revisions
Appearance
Content deleted Content added
Create an example of how to build an URL using the `unique_coins` function Tag: Removed redirect |
mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{safesubst:<noinclude />#if:{{{input|}}} |
<includeonly>{{safesubst:<noinclude />#if:{{{input|}}} |
||
| <span class="plainlinks">[{{safesubst:<noinclude />fullurl:Special:ExpandTemplates|wpInput={{safesubst:<noinclude />urlencode:{{{input}}}|QUERY}}{{safesubst:<noinclude />#if:{{{title|}}}|&wpContextTitle={{safesubst:<noinclude />urlencode|{{{title}}}|QUERY}}}}{{safesubst:<noinclude />#invoke:params|sequential|unique_coins |
| <span class="plainlinks">[{{safesubst:<noinclude />fullurl:Special:ExpandTemplates|wpInput={{safesubst:<noinclude />urlencode:{{{input}}}|QUERY}}{{safesubst:<noinclude />#if:{{{title|}}}|&wpContextTitle={{safesubst:<noinclude />urlencode|{{{title}}}|QUERY}}}}{{safesubst:<noinclude />#invoke:params|sequential|trimming_values|unique_coins |
||
| html = &wpGenerateRawHtml=1 |
| html = &wpGenerateRawHtml=1 |
||
| xml = &wpGenerateXml=1 |
| xml = &wpGenerateXml=1 |
Latest revision as of 05:32, 17 April 2025
This example template shows how to construct an URL using the unique_coins
function of Module:Params. See there for more information.
Usage
[edit]For example, writing
{{module:params/doc/examples/link to expanded template|comments|xml
| input = Hello world {<nowiki />{#time:r{{!}}now}<nowiki />}
}}
will generate