Template:Fullurl
This template is a simple wrapper for the
magic word. It adds the {{fullurl:[[:Template:)]]
class to the link, and allows passing the query string as separate parameters and providing a custom display text.
plainlinks
Usage
{{ fullurl | <page name> | text = <link display text> | noencode = y/yes | ... }}
- First unnamed parameter
The page name to link to (first parameter of
).
{{fullurl:[[:Template:)]]
- text
The text that is to be displayed instead of the raw link.
- noencode
By default, the template will encode all passed parameters via the {{urlencode}}
magic word if
is set. This ensures correct functioning if, for example, a parameter contains a space. Use $text
to prevent this behavior. Has no effect if $noencode
is not set.
$text
- Other parameters
URL parameters as part of the query string (second parameter of
), can be continued ad infinitum. Named parameters will be appended as {{fullurl:[[:Template:)]]
&<parameter name>=<parameter value>
, unnamed ones simply as &<parameter value>
.
Examples
Code | Result |
---|---|
{{fullurl|Copper Pickaxe|action=edit|text=edit page}} |
edit page |
{{fullurl|Special:Log|type=move|page={{FULLPAGENAME}}|text=move log of this page}} |
move log of this page |
{{fullurl|wikipedia:Terraria|action=history|text=View history of the "Terraria" page on Wikipedia}} |
View history of the "Terraria" page on Wikipedia |
{{fullurl|Terraria Wiki:Sandbox|action=edit|preload=Terraria News|text=Link text}} |
News Link text |
{{fullurl|Terraria Wiki:Sandbox|action=edit|preload=Terraria News|text=Link text|noencode=y}} |
News Link text |