Template:Fullurl: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(Add support for)
(Add support for Multilevel substitution)
 
Line 1: Line 1:
<onlyinclude><includeonly>{{safesubst:#ifeq:{{WsBool|{{{nolink|}}} }}|1<noinclude
<onlyinclude><includeonly>{{safesubst:#ifeq:{{WsBool|{{{nolink|}}} }}|1<noinclude
/>|{{#tag:nowiki|{{<includeonly>safesubst:</includeonly>#if:{{{2|}}}|{{fullurl:{{{1}}}|{{{2}}}}}|{{fullurl:{{{1}}}}}}}}}<noinclude
/>|{{#tag:nowiki|{{safesubst:#if:{{{2|}}}|{{fullurl:{{{1}}}|{{{2}}}}}|{{fullurl:{{{1}}}}}}}}}<noinclude
/>|<span class="plainlinks">[<noinclude
/>|<span class="plainlinks">{{safesubst:#if:{{{text|}}}|[}}<noinclude
/>{{fullurl:{{{1}}}|{{{2}}}}}<noinclude
/>{{safesubst:#if:{{{2|}}}|{{fullurl:{{{1}}}|{{{2}}}}}|{{fullurl:{{{1}}}}}}}<noinclude
/><nowiki/> {{{text}}}]</span><noinclude
/>{{safesubst:#if:{{{text|}}}|<nowiki/> {{{text}}}]}}</span><noinclude
/>}}</includeonly></onlyinclude>
/>}}</includeonly></onlyinclude>
{{Doc}}
{{Doc}}

Latest revision as of 12:48, 21 April 2021

File:Template-info.svg Template Documentation

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|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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page1

no description

Page namerequired
URL Parameters2

no description

Stringoptional
Link texttext

no description

Contentoptional
Don't linknolink

no description

Booleanoptional