Difference between revisions of "Template:Agnosticurl"

From DoomWiki.org

m (Try this?)
m (Purpose: Correct docs)
 
Line 1: Line 1:
 
//{{servername}}{{localurl:{{{1}}}|{{#if:{{{2|}}}|action={{{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 protocol-agnostic link (suitable for anchor href use) to a local article without hardcoding the server or path components.
 
===Args===
 
===Args===
 
# Page name, including namespace if any
 
# Page name, including namespace if any

Latest revision as of 13:00, 24 September 2016

//doomwiki.org{{localurl:{{{1}}}|}}

Purpose[edit]

Generate a protocol-agnostic link (suitable for anchor href use) to a local article without hardcoding the server or path components.

Args[edit]

  1. Page name, including namespace if any
  2. Optional; action to perform, such as edit or purge.