Template:Fullurl/doc: Difference between revisions

MDFW - The Mystery Dungeon Tree of Information.
Jump to navigation Jump to search
m (Text replacement - "== " to "==")
m (Text replacement - " ==" to "==")
 
Line 5: Line 5:
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.


==Usage ==
==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 &).
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 ===
===Examples===
<pre>{{fullurl|Blocks|action=edit}}</pre>
<pre>{{fullurl|Blocks|action=edit}}</pre>
Will output: <code><nowiki>//MysteryDungeonWiki.com/index.php?title=Blocks&action=edit</nowiki></code>
Will output: <code><nowiki>//MysteryDungeonWiki.com/index.php?title=Blocks&action=edit</nowiki></code>
Line 18: Line 18:
Will output: <span class="plainlinks">[https://MysteryDungeonWiki.com/index.php?title=Blocks&action=edit Edit page]</span>
Will output: <span class="plainlinks">[https://MysteryDungeonWiki.com/index.php?title=Blocks&action=edit Edit page]</span>


===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>)  
* 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 04:45, 23 December 2021

Template-info.png Documentation

This template can be used to output the full wiki URL 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: //MysteryDungeonWiki.com/index.php?title=Blocks&action=edit

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

Will output: MysteryDungeonWiki.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}})