Template:Years since: Difference between revisions
Template page
More actions
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
[[File:ANA Lounge of Tokyo International Airport (Domestic)02b.jpg]] | |||
<!-- Cases: | <!-- Cases: | ||
a) empty string -> {{error|}} | a) empty string -> {{error|}} | ||
Revision as of 02:47, 13 January 2013
File:ANA Lounge of Tokyo International Airport (Domestic)02b.jpg
This documentation is transcluded from Template:Years since/doc.
Function returning number of years since year {{{1}}}. The function is robust enough to survive various wrong inputs. Also user can control output to clip it to some range defined by {{{min}}} and {{{max}}} parameters. Also output can be rounded down to be multiple of parameter {{{mod}}}.
Usage
{{Years since |1= |mod= |min= |max= |error= }}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Year in between 0 and 2026. | 1670 | required | |
mod | Output can be rounded down to be multiple of parameter {{{mod}}} | 1 | optional | |
min | minimum number possibly returned. Anything smaller will be set to {{{min}}} | 0 | optional | |
max | maximum number possibly returned. Anything bigger will be set to {{{max}}} | 2026 | optional | |
error | value returned in case of not a number input parameter {{{1}}}. | empty string | optional | |
Additional information
The template is intended to be used in the following namespaces: unknown
The template is intended to be used by the following user groups: no user group specified