Dark and Light Wiki
 
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{nolink|}}} | <nowiki>http://help.gamepedia.com/index.php?title=</nowiki>{{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!--
+
<includeonly>{{#if: {{{nolink|}}} | {{SERVER}}/index.php?title={{{1}}}{{#if: {{{2|}}} | &{{{2}}} }} |<!--
--><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly><noinclude>{{doc}}
+
--><span class="plainlinks">{{#if: {{{text|}}} | [ }}{{fullurl: {{{1}}} | {{{2|}}} }} {{#if: {{{text|}}} | {{{text}}}]}}</span>}}</includeonly><noinclude>
  +
  +
==Documentation==
  +
This template can be used to output the full wiki URL e.g. (<nowiki>http://help.gamepedia.com/index.php?title=</nowiki>) 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 &amp;).
  +
  +
=== Examples ===
  +
<pre style="max-width:250px">{{fullurl|Blocks|action=edit}}</pre>
  +
Will output: {{fullurl|Blocks|action=edit}}
  +
  +
<pre style="max-width:320px">{{fullurl|Blocks|action=edit|nolink=1}}</pre>
  +
Will output: {{fullurl|Blocks|action=edit|nolink=1}}
  +
  +
<pre style="max-width:360px">{{fullurl|Blocks|action=edit|text=Edit page}}</pre>
  +
Will output: {{fullurl|Blocks|action=edit|text=Edit page}}
  +
  +
=== Notes ===
  +
* All url parameters are kept within the same parameter. (<code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw&ctype=text/css}}</nowiki></code> instead of <code><nowiki>{{fullurl|MediaWiki:Common.css|action=raw|ctype=text/css}}</nowiki></code>)
  +
 
[[Category:Formatting templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Formatting templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 07:08, 3 September 2017


Documentation

This template can be used to output the full wiki URL e.g. (http://help.gamepedia.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

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: https://darkandlight.fandom.com/wiki/Blocks

{{fullurl|Blocks|action=edit|nolink=1}}

Will output: https://darkandlight.fandom.com/index.php?title=Blocks

{{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}})