Template:Yearbox: Difference between revisions
Template page
More actions
Content deleted Content added
Created page with "{{infobox |above={{{1}}} PC |image1={{{image|}}} |caption1={{{caption|}}} |data2={{flatlist}} *<< {{#expr:{{{1}}} - 1}} PC *'''{{{1}}} PC''' *{{#expr:{{{1}}} + 1}} PC >> {{endflatlist}} }}" |
Fixing a problem for dark mode |
||
| (21 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
{{infobox |
{{infobox |
||
|above={{{1}}} PC |
|above={{{1}}} {{#if:{{{2|}}}|TT|PC}} |
||
|bodystyle=color:var(--color-base); |
|||
|image1={{{image|}}} |
|||
|image1=[[File:{{{image|YearPlaceholder.png}}}|250px]] |
|||
|caption1={{{caption|}}} |
|caption1={{{caption|}}} |
||
|data2={{flatlist}} |
|data2=<big>{{flatlist}} |
||
*{{#if: {{{2|}}} | ↞ [[{{#expr:{{{1}}} + 1}} TT]] | {{#ifeq: {{#expr:{{{1}}} - 1}} | 0 | ↞ [[1 TT]] | ↞ [[{{#expr:{{{1}}} - 1}} PC]]}} }} |
|||
*<< {{#expr:{{{1}}} - 1}} PC |
|||
*'''{{{1}}} PC''' |
*'''{{{1}}} {{#if:{{{2|}}}|TT|PC}}''' |
||
*{{#if: {{{2|}}} | {{#ifeq: {{#expr:{{{1}}} - 1}} | 0 | [[1 PC]] ↠ | [[{{#expr:{{{1}}} - 1}} TT]] ↠ }} | [[{{#expr:{{{1}}} + 1}} PC]] ↠ }} |
|||
*{{#expr:{{{1}}} + 1}} PC >> |
|||
{{endflatlist}} |
{{endflatlist}}</big> |
||
}} |
}} |
||
[[Category:Years|{{#if:{{{1|}}}|{{#if:{{{2|}}}|📅{{#expr:10000 - {{{1}}}}}|🗓️{{#expr:{{{1}}} + 10000}}}}|🛠️Template}}]] |
|||
<noinclude> |
|||
<templatedata> |
|||
{ |
|||
"params": { |
|||
"1": { |
|||
"type": "number", |
|||
"required": true, |
|||
"label": "Year", |
|||
"description": "The haracalnde year for this yearbox.", |
|||
"example": "10, 36, 69" |
|||
}, |
|||
"2": { |
|||
"description": "Enter a non-empty value if the year is TT. Leave empty if year is PC.", |
|||
"suggestedvalues": [ |
|||
"tt" |
|||
], |
|||
"label": "TT?", |
|||
"suggested": true |
|||
}, |
|||
"image": { |
|||
"suggested": true, |
|||
"label": "Image", |
|||
"description": "Enter the filename of an image to represent the year (optional)", |
|||
"type": "wiki-file-name" |
|||
}, |
|||
"caption": { |
|||
"suggested": true, |
|||
"label": "Caption", |
|||
"description": "Caption of the image, if there is one." |
|||
} |
|||
}, |
|||
"description": "For year pages.", |
|||
"format": "inline" |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
Latest revision as of 04:33, 3 November 2025
| {{{1}}} PC | |
|---|---|
|
For year pages.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Year | 1 | The haracalnde year for this yearbox.
| Number | required |
| TT? | 2 | Enter a non-empty value if the year is TT. Leave empty if year is PC.
| Unknown | suggested |
| Image | image | Enter the filename of an image to represent the year (optional) | File | suggested |
| Caption | caption | Caption of the image, if there is one. | Unknown | suggested |
