Module:Params/doc/examples/link to expanded template: Difference between revisions
Appearance
Content deleted Content added
Grufo moved page Module:Params/doc/examples/link to expanded template to Module:Params/testcases/sandbox over redirect: Create an example of how to build an URL using the `unique_coins` function Tag: New redirect |
Create an example of how to build an URL using the `unique_coins` function Tag: Removed redirect |
||
Line 1: | Line 1: | ||
<includeonly>{{safesubst:<noinclude />#if:{{{input|}}} |
|||
#REDIRECT [[Module:Params/testcases/sandbox]] |
|||
| <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 |
|||
| html = &wpGenerateRawHtml=1 |
|||
{{Redirect category shell| |
|||
| xml = &wpGenerateXml=1 |
|||
{{R from move}} |
|||
| comments = &wpRemoveComments=0 |
|||
}} |
|||
| removenowiki = &wpRemoveNowiki=1 |
|||
}}}} {{safesubst:<noinclude />#if:{{{label|}}}|{{{label|}}}|Expand <code>{{{input}}}</code>}}]</span> |
|||
| {{Error|Error: The {{para|input}} parameter is missing.}} |
|||
}}</includeonly><noinclude>{{Documentation|heading=[[File:Test Template Info-Icon - Version (2).svg|50px|alt=|link=]] Template documentation}}</noinclude> |
Revision as of 18:43, 14 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
For example, writing
{{module:params/doc/examples/link to expanded template|comments|xml
| input = Hello world {<nowiki />{#time:r{{!}}now}<nowiki />}
}}
will generate