Template:UrlArgument
Jump to navigation
Jump to search
Gets URL parameters sent to page using Template:SetUrlArguments.
This Dynamic Page Plugin (DPL) allows you to specify arguments DPL_arg1 to DPL_arg5 in the URL and use these in DPL queries. This template allows you to extract the arguments and use them on the page, or as a parameter to any template.
Notes:
- DPL or DPL-based templates on a page may use the URL parameters directly (and would be affected)
- Messages are URL-encoded in Template:SetUrlArguments and URL-decoded by this template. Current testing indicates any characters can be sent and received. The only issue is that multiple spaces in text will be decoded as a single space.
Usage
You can access each of the 5 parameters using the wiki syntax below:
{{UrlArgument|DPL_arg1}}
{{UrlArgument|DPL_arg2}}
{{UrlArgument|DPL_arg3}}
{{UrlArgument|DPL_arg4}}
{{UrlArgument|DPL_arg5}}