User:vistadan/sandbox/4

Source: Wikipedia, the free encyclopedia.
<
User:Vistadan‎ | sandbox
vistadan
Thu 2 May
10:34 am

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

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

Parameter: page (1)

Parameter: page (Default)

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)

You can insert a page title to generate a time lasted edited.

Example: {{User:Vistadan/sandbox/4 | Holly Willoughby }}

Result: 2 days ago

Example: {{User:Vistadan/sandbox/4 | 1= Holly Willoughby }}

Result: 2 days ago

Example: {{User:Vistadan/sandbox/4 | page= Holly Willoughby }}

Result: 2 days ago

Parameter: info

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)

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 2 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 7 days ago

Example: {{User:Vistadan/sandbox/4 | Template:Netflix title | info= long }}

Result: The template Netflix title was last edited 17 months ago

Example: {{User:Vistadan/sandbox/4 | User talk:Jimbo Wales | info= long }}

Result: The talk page for Jimbo Wales was last edited 16 hours 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 years ago

Parameter: info (short)

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 2 days ago

Parameter: update

Example: {{User:Vistadan/sandbox/4 | update= yes }}

Result: 2 years ago (Update)

Example: {{User:Vistadan/sandbox/4 | Holly Willoughby | update= yes }}

Result: 2 days ago (Update)

Template data

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

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