Jump to content

Template:Documentation/preload-module-doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Incnis Mrsi (talk | contribs) at 13:06, 21 August 2013 (Created page with '<noinclude>{{ombox|image=128px |text=The stuff below is a mediawikiwiki:Manual:Creating_pages_with_preloaded_text|preloaded templat...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Error: {{Module rating}} must be placed in the Module namespace.

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

Usage

{{#invoke:Documentation|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

{#invoke: Documentation | main | test }}