Template:Fullurl: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{nolink|}}} | <nowiki>http://www.medievalengineerswiki.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!--
<includeonly>{{#if: {{{nolink|}}} | <nowiki>https://wiki.prod.mec.machpi.net/w/</nowiki>{{{1}}}{{#if: {{{2|}}} | ?{{{2}}} }} |<!--
           --><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly><noinclude><!--
           --><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly><noinclude><!--


-->
-->
==Usage==
==Usage==
The Fullurl 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.
The Fullurl template can be used to output the full wiki URL e.g. <nowiki>(https://wiki.prod.mec.machpi.net/w/title=)</nowiki> in plaintext or within a plainlink span.
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.
<pre>{{Fullurl|<page>|<action>}}</pre>
<pre>{{Fullurl:<page>|<action>}}</pre>
*The code above can be pasted into your page.
*The code above can be pasted into your page.


==Examples==
==Example==
<pre>{{Fullurl|Template:Fullurl|action=history}}</pre>
<pre>{{Fullurl:{{FULLPAGENAME}}|action=history}}</pre>
Will output <nowiki>http://www.medievalengineerswiki.com/index.php?title=Template:Fullurl</nowiki>
Will output <code><nowiki>https://wiki.prod.mec.machpi.net/w/Template:Fullurl?action=history</nowiki></code>
{{Fullurl|Template:Fullurl|action=history}}
[[Category:Templates/Formatting]]
[[Category:Templates/Formatting]]
</noinclude>
</noinclude>

Latest revision as of 18:31, 6 July 2022

Usage

The Fullurl template can be used to output the full wiki URL e.g. (https://wiki.prod.mec.machpi.net/w/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 https://wiki.prod.mec.machpi.net/w/Template:Fullurl?action=history