Difference between revisions of "Template:Sort"

From The Perfect Tower II
Jump to navigation Jump to search
(Created page with "<span data-sort-value="{{{1|{{{2|}}}}}}">{{{2}}}</span><noinclude> <templatedata> { "params": { "1": { "label": "Difficulty number", "description": "Number representi...")
 
(Generalize template)
 
(One intermediate revision by the same user not shown)
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 22:29, 28 February 2021

{{{2}}}

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

Template parameters

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