Difference between revisions of "Module:URL/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Christian75
({{High-risk|150,000}})
 
blackwiki>Krinkle
Line 20: Line 20:
 
{{Further|Module:{{BASEPAGENAME}}/testcases}}<!-- delete if you do not intend to create the red-linked page -->
 
{{Further|Module:{{BASEPAGENAME}}/testcases}}<!-- delete if you do not intend to create the red-linked page -->
  
{{#invoke: {{BASEPAGENAME}} | main | test }}
+
{{#invoke: {{BASEPAGENAME}} | url | example.org }}

Revision as of 03:04, 24 September 2013

  1. REDIRECT Template:High-use

The module “URL” contains (specify) available calls that make so and such.

Usage

{{#invoke:URL|function_name|…}}

Parameters

The text below assumes that functions are declared as

function p.function_name( frame )
  • Positional parameters – the value of frame.args[1] is passed after function name and vertical bar, the value of frame.args[2] is passed after the value of frame.args[1] and vertical bar, and so on.
  • Named parameters (specify them) – the same name=value syntax as in MediaWiki templates, are accessible inside the function as frame.args["name"].

Examples

Script error: No such module "URL".