Template:Messagebox: Difference between revisions
adds ToDo section |
adds new types, striking a TODO |
||
| Line 4: | Line 4: | ||
| warning = message-warning | | warning = message-warning | ||
| failure = message-failure | | failure = message-failure | ||
| restricted = message-restricted | |||
| forbidden = message-forbidden | |||
| normal <!-- normal = default --> | | normal <!-- normal = default --> | ||
| #default = message-normal | | #default = message-normal | ||
| Line 15: | Line 17: | ||
| warning | | warning | ||
| failure | | failure | ||
| restricted | |||
| forbidden | |||
| normal = <!-- Do nothing, valid "type" --> | | normal = <!-- Do nothing, valid "type" --> | ||
| #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:templates using deprecated types|learn more]])</div><!-- Sort on namespace --> | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing. ([[:Category:templates using deprecated types|learn more]])</div><!-- Sort on namespace --> | ||
| Line 25: | Line 29: | ||
; text : (required) is the message | ; text : (required) is the message | ||
; type : (optional) determines the presentation using pre-defined styling. One of | ; type : (optional) determines the presentation using pre-defined styling. One of | ||
:* success | :* success - to indicate what success means | ||
:* warning | :* warning - to alert the user about preventing problems | ||
:* failure | :* failure - to dialog about when something fails | ||
:* restricted - shows the keys graphic, to advise of a restricted access area or restricted authoring | |||
:* forbidden - for messages about policies about things you should not do | |||
:* normal (default) | :* normal (default) | ||
; style : (optional) is CSS that will be passed through. | ; style : (optional) is CSS that will be passed through. | ||
| Line 68: | Line 74: | ||
}} | }} | ||
{{Messagebox | |||
| type = forbidden | |||
| text = You can't do that! | |||
}} | |||
{{Messagebox | |||
| type = restricted | |||
| text = You must be a registered user to create or edit articles. Contact the [[User:Freephile|WikiSysop]] for an account! | |||
}} | |||
== To Do == | == To Do == | ||
# Based on the existing dialog images [http://freephile.com/wiki/index.php?title=Special%3ASearch&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&search=dialog&fulltext=Advanced+search], I should add a type for "restricted" for pages with restricted authoring and or "forbidden" | # <strike>Based on the existing dialog images [http://freephile.com/wiki/index.php?title=Special%3ASearch&ns6=1&ns7=1&ns8=1&ns9=1&ns10=1&ns11=1&search=dialog&fulltext=Advanced+search], I should add a type for "restricted" for pages with restricted authoring and or "forbidden"</strike> | ||
# Improve and coordinate the CSS with the site / homepage | # Improve and coordinate the CSS with the site / homepage | ||