Difference between revisions of "Module:Time ago/doc"
Jump to navigation
Jump to search
blackwiki>FunPika (Make documentation page that is not much different from the default for now.) |
blackwiki>FunPika m (Update with new main function name.) |
||
| Line 19: | Line 19: | ||
{{Further|Module:{{BASEPAGENAME}}/testcases}} | {{Further|Module:{{BASEPAGENAME}}/testcases}} | ||
| − | {{#invoke: {{BASEPAGENAME}} | | + | {{#invoke: {{BASEPAGENAME}} | main | 1 December 2013 }} |
Revision as of 22:51, 21 December 2013
| This module is rated as pre-alpha. It is unfinished, and may or may not be in active development. It should not be used from article namespace pages. Modules remain pre-alpha until the original editor (or someone who takes one over if it is abandoned for some time) is satisfied with the basic structure. |
The module “Time ago” contains (specify) available calls that make so and such.
Usage
{{#invoke:Time ago|timeAgo|…}}
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
12 years ago