Difference between revisions of "Module:Time ago/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>FunPika
m (Update with new main function name.)
m (11 revisions imported)
 
(9 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{module rating|pre-alpha}}
+
{{module rating|protected}}
 +
{{high-risk|115733}}
  
The module “{{BASEPAGENAME}}” contains (specify) available calls that make so and such.
+
The module “{{BASEPAGENAME}}” implements {{tl|Time ago}}. See the template's page for documentation. Test cases can be found at [[Module talk:TimeAgo/testcases]] and [[Template:Time ago/testcases]].
 
 
== Usage ==
 
 
 
{{#invoke:{{BASEPAGENAME}}|''timeAgo''|}}
 
 
 
== Parameters ==
 
 
 
The text below assumes that functions are declared as
 
function p.''function_name''( frame )
 
<!-- delete this paragraph, it is indended for the module’s author, not a user -->
 
 
 
* 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.<!-- rewrite the item -->
 
* Named parameters (specify them) – the same ''name''=''value'' syntax as in MediaWiki templates, are accessible inside the function as frame.args["''name''"].<!-- rewrite or delete the item -->
 
 
 
== Examples ==
 
{{Further|Module:{{BASEPAGENAME}}/testcases}}
 
 
 
{{#invoke: {{BASEPAGENAME}} | main | 1 December 2013 }}
 

Latest revision as of 17:23, 29 September 2020

The module “Time ago” implements {{Time ago}}. See the template's page for documentation. Test cases can be found at Module talk:TimeAgo/testcases and Template:Time ago/testcases.