Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Yearbox: Difference between revisions

Template page
Content deleted Content added
No edit summary
Fixing a problem for dark mode
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{infobox
{{infobox
|above={{{1}}} {{#if:{{{2|}}}|TT|PC}}
|above={{{1}}} {{#if:{{{2|}}}|TT|PC}}
|bodystyle=color:var(--color-base);
|image1=[[File:{{{image|Aakar Orit Portrait 1.png}}}|250px]]
|image1=[[File:{{{image|YearPlaceholder.png}}}|250px]]
|caption1={{{caption|Please add an image if you see Aakar Orit and don't want to.}}}
|caption1={{{caption|}}}
|data2=<big>{{flatlist}}
|data2=<big>{{flatlist}}
*{{#if: {{{2|}}} | ↞ [[{{#expr:{{{1}}} + 1}} TT]] | {{#ifeq: {{#expr:{{{1}}} - 1}} | 0 | ↞ [[1 TT]] | ↞ [[{{#expr:{{{1}}} - 1}} PC]]}} }}
*{{#if: {{{2|}}} | ↞ [[{{#expr:{{{1}}} + 1}} TT]] | {{#ifeq: {{#expr:{{{1}}} - 1}} | 0 | ↞ [[1 TT]] | ↞ [[{{#expr:{{{1}}} - 1}} PC]]}} }}
Line 9: Line 10:
{{endflatlist}}</big>
{{endflatlist}}</big>
}}
}}
[[Category:Years|{{#if:{{{1|}}}|{{#if:{{{2|}}}|📅{{#expr:10000 - {{{1}}}}}|🗓️{{#expr:{{{1}}} + 10000}}}}|🛠️Template}}]]
[[Category:Years]]
<noinclude>
<noinclude>
<templatedata>
<templatedata>
Line 16: Line 17:
"1": {
"1": {
"type": "number",
"type": "number",
"suggestedvalues": [
"required": true,
"10",
"label": "Year",
"description": "The haracalnde year for this yearbox.",
"36",
"69"
"example": "10, 36, 69"
],
"required": true
},
},
"2": {
"2": {
"description": "Enter a non-empty value if the year is TT. Leave empty if year is PC.",
"aliases": [
"suggestedvalues": [
"tt"
"tt"
],
],
"label": "TT?",
"description": "Enter a non-empty value if the year is TT",
"suggestedvalues": [
"suggested": true
"tt"
]
},
},
"image": {
"image": {
"suggested": true
"suggested": true,
"label": "Image",
"description": "Enter the filename of an image to represent the year (optional)",
"type": "wiki-file-name"
},
},
"caption": {
"caption": {
"suggested": true
"suggested": true,
"label": "Caption",
"description": "Caption of the image, if there is one."
}
}
},
},

Latest revision as of 04:33, 3 November 2025

{{{1}}} PC
  • ↞ [[Expression error: Unrecognized punctuation character "{". PC]]
  • {{{1}}} PC
  • [[Expression error: Unrecognized punctuation character "{". PC]] ↠

For year pages.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Year1

The haracalnde year for this yearbox.

Example
10, 36, 69
Numberrequired
TT?2

Enter a non-empty value if the year is TT. Leave empty if year is PC.

Suggested values
tt
Unknownsuggested
Imageimage

Enter the filename of an image to represent the year (optional)

Filesuggested
Captioncaption

Caption of the image, if there is one.

Unknownsuggested