Changes

From Drawn to Life Wiki
724 bytes added ,  15:50, 17 June 2022
no edit summary
Line 27: Line 27:  
{
 
{
 
"params": {
 
"params": {
"1": {},
+
"1": {
 +
"label": "Edit value",
 +
"description": "Specity the edit access to the article. Acceptable values are \"None\", \"Partial\", and \"Full\".",
 +
"example": "{{EditState|Full}}\\n{{EditState|Partial}}\\n{{EditState|None}}",
 +
"type": "string",
 +
"autovalue": "unset",
 +
"required": true
 +
},
 
"Style": {
 
"Style": {
 
"description": "Specify how this template will display. Available options are either \"Banner\" (to display as a full-width banner) or \"Icon\" (to display as a mini-icon over Infoboxes. Use the top parameter to adjust the position of the icon)",
 
"description": "Specify how this template will display. Available options are either \"Banner\" (to display as a full-width banner) or \"Icon\" (to display as a mini-icon over Infoboxes. Use the top parameter to adjust the position of the icon)",
"example": "{{EditState|Style=Icon|top=7.85em}}<br>{{EditState|Style=Banner|Partial}}",
+
"example": "{{EditState|Style=Icon|top=7.85em}}\\n{{EditState|Style=Banner|Partial}}",
 
"type": "string",
 
"type": "string",
 
"autovalue": "Banner",
 
"autovalue": "Banner",
"suggested": true
+
"suggested": true,
 +
"label": "Template display style"
 
},
 
},
"top": {}
+
"top": {
 +
"label": "Top position",
 +
"description": "Specify the distance from the top of the page (preferably EM) for icon mode. This value is intended to be used on pages where an Infobox is present as the Icon is sized to fit within most infoboxes.",
 +
"example": "{{EditState|Partial|top=7.85em}}",
 +
"type": "number",
 +
"autovalue": "0em"
 +
}
 
},
 
},
"description": "This template allows the creator of fanon pages to specify the type of edits they wish to allow to their articles."
+
"description": "This template allows the creator of fanon pages to specify the type of edits they wish to allow to their articles.",
 +
"paramOrder": [
 +
"Style",
 +
"1",
 +
"top"
 +
]
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>