|
|
2 years ago
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
editBy default, this template will use the current page title, so you can inset this template without adding a page title:
{{User:Vistadan/sandbox/4}}
Unnamed parameters:
{{User:Vistadan/sandbox/4 | INFO }}
{{User:Vistadan/sandbox/4 | UPDATE }}
{{User:Vistadan/sandbox/4 | INFO | UPDATE }}
Named parameters:
{{User:Vistadan/sandbox/4 | info= INFO }}
{{User:Vistadan/sandbox/4 | update= UPDATE }}
{{User:Vistadan/sandbox/4 | info= INFO | update= UPDATE }}
You can also insert a page title into the template to generate a time lasted edited for another page:
Unnamed parameters:
{{User:Vistadan/sandbox/4 | PAGE }}
{{User:Vistadan/sandbox/4 | PAGE | INFO }}
{{User:Vistadan/sandbox/4 | PAGE | UPDATE }}
{{User:Vistadan/sandbox/4 | PAGE | INFO | UPDATE }}
Named parameters:
{{User:Vistadan/sandbox/4 | page= PAGE }}
{{User:Vistadan/sandbox/4 | page= PAGE | info= INFO }}
{{User:Vistadan/sandbox/4 | page= PAGE | update= UPDATE }}
{{User:Vistadan/sandbox/4 | page= PAGE | info= INFO | update= UPDATE }}
Examples
editParameter: page (1)
editParameter: page (Default)
editA blank page=
parameter (or without using the page=
parameter) will use the current page to generate a time lasted edited by default.
Example: {{User:Vistadan/sandbox/4}}
- Result: 2 years ago
Parameter: page (Inserted page title)
editYou can insert a page title to generate a time lasted edited.
Example: {{User:Vistadan/sandbox/4 | Holly Willoughby }}
- Result: 11 days ago
Example: {{User:Vistadan/sandbox/4 | 1= Holly Willoughby }}
- Result: 11 days ago
Example: {{User:Vistadan/sandbox/4 | page= Holly Willoughby }}
- Result: 11 days ago
Parameter: info
editThe info parameter controls the the text shown before the last edit time. By default the text will be hidden.
info=long
will display the text "This page was last edited" or "The page (Inserted page name) was last edited".info=short
will display the text "Last edited".
Parameter: info (long)
editExample: {{User:Vistadan/sandbox/4 | info= long }}
- Result: This page was last edited 2 years ago
Example: {{User:Vistadan/sandbox/4 | Holly Willoughby | info= long }}
- Result: The article Holly Willoughby was last edited 11 days ago
Example: {{User:Vistadan/sandbox/4 | List of Kim Kardashian performances | info= long }}
- Result: The article List of Kim Kardashian performances was last edited 34 days ago
Example: {{User:Vistadan/sandbox/4 | Template:Netflix title | info= long }}
- Result: The template Netflix title was last edited 2 years ago
Example: {{User:Vistadan/sandbox/4 | User talk:Jimbo Wales | info= long }}
- Result: The talk page for Jimbo Wales was last edited 2 days ago
Example: {{User:Vistadan/sandbox/4 | File:A Parks and Recreation Special.jpg | info= long }}
- Result: The file A Parks and Recreation Special.jpg was last edited 2 months ago
Parameter: info (short)
editExample: {{User:Vistadan/sandbox/4 | info= short }}
- Result: Last edited 2 years ago
Example: {{User:Vistadan/sandbox/4 | Holly Willoughby | info= short }}
- Result: Last edited 11 days ago
Parameter: update
editExample: {{User:Vistadan/sandbox/4 | update= yes }}
- Result: 2 years ago (Update)
Example: {{User:Vistadan/sandbox/4 | Holly Willoughby | update= yes }}
- Result: 11 days ago (Update)
Template data
editTemplateData for Vistadan/sandbox
This is a template to generate a time last edited for the current page, or a page name inserted into the template.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page name | page 1 | 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.
| String | optional |
Info text | info | 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".
| String | optional |
Update button | update | Setting to "yes" will display a purge page link beside the text.
| String | optional |