Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Fullurl/doc: Difference between revisions

Template page
fandomwiki>@DeletedUser40302604
m 1 revision imported
m 4 revisions imported: Try to import fandom pages (manual dump, 9)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}


This template can be used to output the full wiki URL e.g. (<tt><nowiki>https://help.gamepedia.com/index.php?title=</nowiki></tt>) in plaintext or within a plainlink span using the fullurl magic word.
This template can be used to output the full wiki URL e.g. (<code><nowiki>https://help.gamepedia.com/index.php?title=</nowiki></code>) 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.
This template is useful for actions, for example action=edit to link to the edit box.
Line 10: Line 10:
=== Examples ===
=== Examples ===
<pre>{{fullurl|Blocks|action=edit}}</pre>
<pre>{{fullurl|Blocks|action=edit}}</pre>
Will output: <tt><nowiki>//help.gamepedia.com/index.php?title=Blocks&action=edit</nowiki></tt>
Will output: <code><nowiki>//help.gamepedia.com/index.php?title=Blocks&action=edit</nowiki></code>


<pre>{{fullurl|Blocks|action=edit|nolink=1}}</pre>
<pre>{{fullurl|Blocks|action=edit|nolink=1}}</pre>
Will output: <tt><nowiki>https://help.gamepedia.com/index.php?title=Blocks&action=edit</nowiki></tt>
Will output: <code><nowiki>https://help.gamepedia.com/index.php?title=Blocks&action=edit</nowiki></code>


<pre>{{fullurl|Blocks|action=edit|text=Edit page}}</pre>
<pre>{{fullurl|Blocks|action=edit|text=Edit page}}</pre>
Line 19: Line 19:


=== Notes ===
=== Notes ===
* All url parameters are kept within the same parameter. (<tt><nowiki>{{fullurl|MediaWiki:Common.css|action=raw&ctype=text/css}}</nowiki></tt> instead of <tt><nowiki>{{fullurl|MediaWiki:Common.css|action=raw|ctype=text/css}}</nowiki></tt>)  
* 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>)  
{{doc/end}}
{{doc/end}}

Latest revision as of 11:10, 7 August 2025

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}

Documentation

This template can be used to output the full wiki URL e.g. (https://help.gamepedia.com/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.

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: //help.gamepedia.com/index.php?title=Blocks&action=edit

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

Will output: https://help.gamepedia.com/index.php?title=Blocks&action=edit

{{fullurl|Blocks|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}})

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.