Template:Sort: Difference between revisions

From The Perfect Tower II
Jump to navigation Jump to search
Lmnt0 (talk | contribs)
m Lmnt0 moved page Template:Difficulty to Template:Sort: Generalize the template
Lmnt0 (talk | contribs)
Generalize template
 
Line 4: Line 4:
"params": {
"params": {
"1": {
"1": {
"label": "Difficulty number",
"label": "Sort value",
"description": "Number representing the difficulty (1 = Easy, 2 = Medium, etc)",
"description": "Value to sort by when the column is sorted in a table",
"example": "2",
"example": "2",
"type": "number",
"required": true
"required": true
},
},
"2": {
"2": {
"label": "Difficulty",
"label": "Value",
"description": "Name of the difficulty",
"description": "Value that is to be displayed",
"example": "Medium",
"example": "Medium",
"required": true
"required": true
}
}
},
},
"description": "Used for adding difficulty modes to a table while maintaining sort order",
"description": "Used for adding a value to a table while controlling how the value is sorted",
"format": "inline"
"format": "inline"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>

Latest revision as of 21:29, 28 February 2021

{{{2}}}

Used for adding a value to a table while controlling how the value is sorted

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Sort value1

Value to sort by when the column is sorted in a table

Example
2
Unknownrequired
Value2

Value that is to be displayed

Example
Medium
Unknownrequired