User:Vistadan/sandbox/4

This template is used to generate a time last edited for the current page, or for a page title thats inserted into the template.

Usage
By default, this template will use the current page title, so you can inset this template without adding a page title:

Unnamed parameters:

Named parameters:

You can also insert a page title into the template to generate a time lasted edited for another page:

Unnamed parameters:

Named parameters:

Parameter: page (Default)
A blank  parameter (or without using the   parameter) will use the current page to generate a time lasted edited by default.

Example:
 * Result:

Parameter: page (Inserted page title)
You can insert a page title to generate a time lasted edited.

Example:
 * Result:

Example:
 * Result:

Example:
 * Result:

Parameter: info
The info parameter controls the the text shown before the last edit time. By default the text will be hidden.
 * will display the text "This page was last edited" or "The page (Inserted page name) was last edited".
 * will display the text "Last edited".

Parameter: info (long)
Example:
 * Result:

Example:
 * Result:

Example:
 * Result:

Example:
 * Result:

Example:
 * Result:

Example:
 * Result:

Parameter: info (short)
Example:
 * Result:

Example:
 * Result:

Parameter: update
Example:
 * Result:

Example:
 * Result:

Template data
{       "description": "This is a template to generate a time last edited for the current page, or a page name inserted into the template.", "params": { "page": { "label": "Page name", "description": "The template will default to the current page name the template is used on, or you can insert a page name to generate a last edited time from the inserted page.", "type": "string", "required": false, "default": "", "aliases" : [ "1" ] },               "info": { "label": "Info text", "description": "Setting to \"long\" will display the text \"This page was last edited\" or \"The page (Inserted page name) was last edited\", or setting to \"short\" will display the text \"Last edited\".", "type": "string", "required": false, "default": "Hidden", "aliases" : [] },               "update": { "label": "Update button", "description": "Setting to \"yes\" will display a purge page link beside the text.", "type": "string", "required": false, "default": "Hidden", "aliases" : [] }

} }