Sun 22 Dec
4:34 PM

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

edit

By 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

edit

Parameter: page (1)

edit

Parameter: page (Default)

edit

A 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)

edit

You 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

edit

The 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)

edit

Example: {{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)

edit

Example: {{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

edit

Example: {{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

edit
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Vistadan/sandbox in articles based on its TemplateData.

TemplateData 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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Page namepage 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.

Default
{{FULLPAGENAME}}
Stringoptional
Info textinfo

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".

Default
Hidden
Stringoptional
Update buttonupdate

Setting to "yes" will display a purge page link beside the text.

Default
Hidden
Stringoptional