Template:Fullurl: Difference between revisions
Jump to navigation
Jump to search
CptTwinkie (talk | contribs) mNo edit summary |
CptTwinkie (talk | contribs) mNo edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{nolink|}}} | <nowiki>http://www.medievalengineerswiki.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!-- | <includeonly>{{#if: {{{nolink|}}} | <nowiki>http://www.medievalengineerswiki.com/index.php?title=</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. | |||
<pre> | This template is useful for actions, for example action=edit to link to the edit box. | ||
<pre>{{Fullurl|<page>|<action>}}</pre> | |||
*The code above can be pasted into your page. | *The code above can be pasted into your page. | ||
== | ==Examples== | ||
<pre> | <pre>{{Fullurl|{{FULLPAGENAME}}|action=history}}</pre> | ||
Will output <nowiki>http://www.medievalengineerswiki.com/index.php?title=Template:Fullurl</nowiki> | |||
[[Category:Templates/Formatting]] | [[Category:Templates/Formatting]] | ||
</noinclude> | </noinclude> |
Revision as of 12:19, 5 January 2018
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. 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.
Examples
{{Fullurl|{{FULLPAGENAME}}|action=history}}
Will output http://www.medievalengineerswiki.com/index.php?title=Template:Fullurl