Difference between revisions of "Template:Fullurl"
Jump to navigation
Jump to search
MyraMidnight (talk | contribs) (Created page with "<includeonly>{{#if: {{{nolink|}}} | <nowiki>http://help.gamepedia.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!-- --><span class="plainlinks"...") |
MyraMidnight (talk | contribs) m |
||
Line 1: | Line 1: | ||
<includeonly>{{#if: {{{nolink|}}} | <nowiki>http://help.gamepedia.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!-- | <includeonly>{{#if: {{{nolink|}}} | <nowiki>http://help.gamepedia.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!-- | ||
− | --><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly> | + | --><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly><noinclude>{{documentation}} |
− | |||
− | <noinclude>{{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 03:47, 3 May 2017
Template documentation (
)
)
This template can be used to output the full wiki URL e.g. (http://krafties.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[edit]
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[edit]
{{fullurl|Blocks|action=edit}}
Will output https://krafties.com/wiki/index.php/Blocks
{{fullurl|Blocks|action=edit|nolink=1}}
Will output: http://help.gamepedia.com/index.php?title=Blocks
{{fullurl|Blocks|action=edit|text=Edit page}}
Will output: Edit page
- The above documentation is transcluded from Template:Fullurl/doc.
- Editors can experiment in this template's sandbox
- Please add categories to the /doc subpage within
<includeonly>...</includeonly>