Template:Fullurl: Difference between revisions
Jump to navigation
Jump to search
(<default import>) |
(Add support for Multilevel substitution) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <onlyinclude><includeonly>{{safesubst:#ifeq:{{WsBool|{{{nolink|}}} }}|1<noinclude | ||
/>|{{#tag:nowiki|{{safesubst:#if:{{{2|}}}|{{fullurl:{{{1}}}|{{{2}}}}}|{{fullurl:{{{1}}}}}}}}}<noinclude | |||
/>|<span class="plainlinks">{{safesubst:#if:{{{text|}}}|[}}<noinclude | |||
/>{{safesubst:#if:{{{2|}}}|{{fullurl:{{{1}}}|{{{2}}}}}|{{fullurl:{{{1}}}}}}}<noinclude | |||
/>{{safesubst:#if:{{{text|}}}|<nowiki/> {{{text}}}]}}</span><noinclude | |||
/>}}</includeonly></onlyinclude> | |||
{{Doc}} | |||
Latest revision as of 12:48, 21 April 2021
This template can be used to output the full wiki URL e.g. (https://crosscode.fandom.com/wiki/Example
) in plaintext or within a plainlink span using the fullurl magic word.
This template is useful for actions, for example action=edit to link to the edit box.
Usage
To use this template you put the name of the page you want and any actions you want to perform (anything that is after an &).
Examples
{{fullurl|Blocks|action{{=}}edit}}
- Will output:
- https://crosscode.wiki/wiki/edit/Blocks
{{fullurl|Blocks|action{{=}}edit|nolink=1}}
- Will output:
- https://crosscode.wiki/wiki/edit/Blocks
Notes
- All url parameters are kept within the same parameter. (
{{fullurl|MediaWiki:Common.css|action{{=}}raw&ctype{{=}}text/css}}
instead of{{fullurl|MediaWiki:Common.css|action{{=}}raw|ctype{{=}}text/css}}
)
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page | 1 | no description | Page name | required |
URL Parameters | 2 | no description | String | optional |
Link text | text | no description | Content | optional |
Don't link | nolink | no description | Boolean | optional |