Difference between revisions of "Template:Agnosticurl"
From DoomWiki.org
(Template that generates real actual protocol agnostic links, since fullurl isn't behaving as documented.) |
m (Try this?) |
||
Line 1: | Line 1: | ||
− | //{{servername}}{{localurl:{{{1}}}|{{{2|}}}}}<noinclude> | + | //{{servername}}{{localurl:{{{1}}}|{{#if:{{{2|}}}|action={{{2}}}|}}}}<noinclude> |
==Purpose== | ==Purpose== | ||
Generate a URL-agnostic HTTP link to a local article without hardcoding the server or path components. | Generate a URL-agnostic HTTP link to a local article without hardcoding the server or path components. |
Revision as of 12:32, 24 September 2016
//doomwiki.org{{localurl:{{{1}}}|}}
Purpose
Generate a URL-agnostic HTTP link to a local article without hardcoding the server or path components.
Args
- Page name, including namespace if any
- Optional; action to perform, such as edit or purge.