Template:Fullurl: Difference between revisions

From Structorica Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 70: Line 70:


=== Notes ===
=== Notes ===
* All url parameters are kept within the same parameter. (<code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw&ctype=text/css}}</nowiki></code> instead of <code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw|ctype=text/css}}</nowiki></code>) <!-- Requires better wording -->
* All url parameters are kept within the same parameter:
<code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw&ctype=text/css}}</nowiki></code> instead of  
<code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw|ctype=text/css}}</nowiki></code> <!-- Requires better wording -->


[[Category:Link templates]]
[[Category:Link templates]]

Latest revision as of 06:46, 16 January 2026

Documentation

This template can be used to output the full wiki URL (https://structorica.wiki/index.php?title=) 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.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Page name1

Target page name. Language, interwiki and section links may be used.

Default
{{FULLPAGENAME}}
Example
ru:Structorica Wiki
Page nameoptional
Page action2

All page actions, separated by '&'. You must use {{=}} or &#124; to escape all '='.

Example
veaction{{=}}edit&section{{=}}1
Stringoptional
Page actionaction

Similar to {{{2}}}, but no need to escape '='.

Example
edit&section=1
Stringoptional
Texttext 3

Change the text of the link.

Example
Edit
Stringoptional
No linknolink

Display the URL directly without creating a link, ignoring {{{3}}} and {{{text}}}.

Auto value
1
Stringoptional

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|Items|action=edit}}

Will output: https://structorica.wiki/index.php?title=Items&action=edit

{{fullurl|Items|action=edit|nolink=1}}

Will output: https://structorica.wiki/index.php?title=Items&action=edit

{{fullurl|Items|action=edit|text=Edit page}}

Will output: Edit page

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