Template:Fullurl: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 10: Line 10:


==Example==
==Example==
<pre>{{fullurl:{{FULLPAGENAME}}|action=history}}</pre>
<pre>{{Fullurl:{{FULLPAGENAME}}|action=history}}</pre>
Will output <code><nowiki>http://www.medievalengineerswiki.com/index.php?title=Template:Fullurl&action=history</nowiki></code>
Will output <code><nowiki>http://www.medievalengineerswiki.com/index.php?title=Template:Fullurl&action=history</nowiki></code>
[[Category:Templates/Formatting]]
[[Category:Templates/Formatting]]
</noinclude>
</noinclude>

Revision as of 10:55, 8 October 2018

Usage

The Fullurl template can be used to output the full wiki URL e.g. (http://www.medievalengineerswiki.com/index.php?title=) in plaintext or within a plainlink span. This template is useful for actions, for example action=edit to link to the edit box.

{{Fullurl:<page>|<action>}}
  • The code above can be pasted into your page.

Example

{{Fullurl:{{FULLPAGENAME}}|action=history}}

Will output http://www.medievalengineerswiki.com/index.php?title=Template:Fullurl&action=history