Template:Navbox/doc: Difference between revisions

Updated
Standardizing parameter naming convention to snake_case
 
(2 intermediate revisions by the same user not shown)
Line 12: Line 12:
|title =  
|title =  
|striped = even
|striped = even
|editlinks = off
|edit_link = off
|group1 =  
|group1 =  
|list1 =  
|list1 =  
Line 26: Line 26:
|title = Items
|title = Items
|striped = even
|striped = even
|editlinks = off
|edit_link = off
|above = Some items are restricted to specific classes; see Classes for more information.
|above = Some items are restricted to specific classes; see Classes for more information.
|below = Update 1.2
|below = Update 1.2
Line 55: Line 55:
|title = Items
|title = Items
|striped = even
|striped = even
|editlinks = off
|edit_link = off


|header1 = Consumables
|header1 = Consumables
Line 106: Line 106:
},
},
"striped": {
"striped": {
"aliases": [
"evenodd"
],
"label": "Striped",
"label": "Striped",
"description": "Controls if the navbox rows should have zebra striping on even or odd rows, making it easier for users to distinguish two rows apart from each other. If sections are used, each section resets the even/odd counter.",
"description": "Controls if the navbox rows should have zebra striping on even or odd rows, making it easier for users to distinguish two rows apart from each other. If sections are used, each section resets the even/odd counter.",
"example": "y, yes, on, striped, event, swap, odd",
"example": "on, yes, striped, even, odd, swap",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
},
},
"editlinks": {
"edit_link": {
"label": "Edit Link",
"label": "Edit link",
"description": "Controls if an edit icon should be displayed at the top-left of the navbox, making it easier for users to interact with the template itself.",
"description": "Controls if an edit icon should be displayed at the top-left of the navbox, making it easier for users to interact with the template itself.",
"example": "off, no",
"example": "off, no",
"type": "string"
"type": "string",
"default": "on"
},
},
"state": {
"state": {
Line 139: Line 137:
"label": "Header n",
"label": "Header n",
"description": "Text that appears at the top of the section, where n is any positive integer.",
"description": "Text that appears at the top of the section, where n is any positive integer.",
"type": "unbalanced-wikitext"
"type": "string"
},
},
"groupn": {
"groupn": {
Line 149: Line 147:
"label": "Group n",
"label": "Group n",
"description": "Text label for a list, which appears on the left on desktop or at the top on mobile, where n is any positive integer.",
"description": "Text label for a list, which appears on the left on desktop or at the top on mobile, where n is any positive integer.",
"type": "unbalanced-wikitext"
"type": "string"
},
},
"listn": {
"listn": {
Line 159: Line 157:
"label": "List n",
"label": "List n",
"description": "A wikitext list, where n is any positive integer.",
"description": "A wikitext list, where n is any positive integer.",
"type": "unbalanced-wikitext"
"type": "content"
},
},
"groupn.x": {
"groupn.x": {
Line 169: Line 167:
"label": "Group n.x",
"label": "Group n.x",
"description": "Text label for sub-lists that appear under groupn, groupn.x, etc.",
"description": "Text label for sub-lists that appear under groupn, groupn.x, etc.",
"type": "unbalanced-wikitext"
"type": "string"
},
},
"listn.x": {
"listn.x": {
Line 179: Line 177:
"label": "List n.x",
"label": "List n.x",
"description": "Wikitext sub-lists.",
"description": "Wikitext sub-lists.",
"type": "unbalanced-wikitext"
"type": "content"
}
}
},
},
Line 187: Line 185:
"title",
"title",
"striped",
"striped",
"editlinks",
"edit_link",
"state",
"state",
"headern",
"headern",