Template:Fullurl: Difference between revisions
Jump to navigation
Jump to search
m (1 revision imported) |
m (Protected "Template:Fullurl" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))) |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <onlyinclude>{{#if: {{{nolink|}}} {{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!-- | ||
--><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</ | --><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</onlyinclude><noinclude>{{doc}} | ||
[[Category:Formatting | [[Category:Formatting Templates]]</noinclude> |
Latest revision as of 09:09, 13 November 2024
{{fullurl: {{{1}}} | }}
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}}
)