Template:Fullurl/doc

Template page
< Template:Fullurl
Revision as of 15:26, 13 November 2018 by imported>Pcjbot
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}{{#if: | {{#ifeq: doc | doc | |

}} }}

[[File:Template-{{#if: | no | {{#if: | bad }} }}info.png|50px|bottom]] Documentation
{{#if: | This template has no documentation. If you know how to use this template, please add some.{{#ifeq: doc | doc | |}} |{{#if: | This template's documentation has been marked as bad. Please improve or add to it.{{#ifeq: doc | doc | |}}}} }}

This template can be used to output the full wiki URL e.g. (http://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: http://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}})
{{#ifeq: doc | doc |

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

| }}