Difference between revisions of "Template:EditState"
(Created page with "{{#switch: {{{1}}} |None=<div style="position:absolute; z-index:100; right:7px; top:{{{top|11px}}}; height:10px; width:300px;">File:NoEdit.png|right|This page may not be edi...") |
|||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#switch: {{{1}}} | + | {{#switch: {{{Style|Banner}}} |
| + | |Icon={{#switch: {{{1}}} | ||
|None=<div style="position:absolute; z-index:100; right:7px; top:{{{top|11px}}}; height:10px; width:300px;">[[File:NoEdit.png|right|This page may not be edited by any user other than the creator]]</div> | |None=<div style="position:absolute; z-index:100; right:7px; top:{{{top|11px}}}; height:10px; width:300px;">[[File:NoEdit.png|right|This page may not be edited by any user other than the creator]]</div> | ||
|Partial=<div style="position:absolute; z-index:100; right:7px; top:{{{top|11px}}}; height:10px; width:300px;">[[File:PartialEdit.png|right|This page may be edited by any user so long as to correct grammatical errors or other obvious mistakes.]]</div> | |Partial=<div style="position:absolute; z-index:100; right:7px; top:{{{top|11px}}}; height:10px; width:300px;">[[File:PartialEdit.png|right|This page may be edited by any user so long as to correct grammatical errors or other obvious mistakes.]]</div> | ||
|Full=<div style="position:absolute; z-index:100; right:7px; top:{{{top|11px}}}; height:10px; width:300px;">[[File:FreeEdit.png|right|This page may be edited by any user for any reason.]]</div> | |Full=<div style="position:absolute; z-index:100; right:7px; top:{{{top|11px}}}; height:10px; width:300px;">[[File:FreeEdit.png|right|This page may be edited by any user for any reason.]]</div> | ||
| + | }} | ||
| + | |Banner={{#switch: {{{1}}} | ||
| + | |None={{Imbox | ||
| + | |Icon = Lock | ||
| + | |Title = Please do not edit this article for any reason. | ||
| + | |Content = The author has requested that this page not be edited without explicit permission. Edits done to this page without permission will be considered vandalism. | ||
}} | }} | ||
| + | |Partial={{Imbox | ||
| + | |Icon = Pencil2 | ||
| + | |Title = Please only edit this article to correct mistakes. | ||
| + | |Content = This page may be edited by any user so long as to correct grammatical errors or other obvious mistakes. Please do not add or remove content otherwise. | ||
| + | }} | ||
| + | |Full={{Imbox | ||
| + | |Icon = Pencil | ||
| + | |Title = This article can be freely edited by anyone. | ||
| + | |Content = This page may be edited by any user for any reason. Please keep within the spirit of this page and be sure to leave a detailed summary post-edit. | ||
| + | }} | ||
| + | }} | ||
| + | }} | ||
| + | <noinclude> | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "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": { | ||
| + | "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}}\\n{{EditState|Style=Banner|Partial}}", | ||
| + | "type": "string", | ||
| + | "autovalue": "Banner", | ||
| + | "suggested": true, | ||
| + | "label": "Template display style" | ||
| + | }, | ||
| + | "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.", | ||
| + | "paramOrder": [ | ||
| + | "Style", | ||
| + | "1", | ||
| + | "top" | ||
| + | ] | ||
| + | } | ||
| + | </templatedata> | ||
| + | </noinclude> | ||
Latest revision as of 15:50, 17 June 2022
This template allows the creator of fanon pages to specify the type of edits they wish to allow to their articles.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Template display style | Style | 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)
| String | suggested |
| Edit value | 1 | Specity the edit access to the article. Acceptable values are "None", "Partial", and "Full".
| String | required |
| Top position | top | 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.
| Number | optional |