MeritBadgeDotOrg:Article message boxes

From MeritBadgeDotOrg

(Difference between revisions)
Jump to: navigation, search
(beginning to add mice templates)
Line 1: Line 1:
{{Workpage}}
{{Workpage}}
 +
{{TOCright}}
-
{{style-guideline|WP:AMB|WP:AMBOX}}
+
The purpose of this project is to implement a standard and consistent design for '''article message boxes'''. That is, ''message boxes'' or ''article templates'' that go on the top of articles and article sections (or, in select cases, the bottom). Other kinds of ''article templates'' such as [[Template:Navbox|navigation boxes]] and [[Help:Infobox|infoboxes]] are not included in this Workpage.
-
A standard and consistent design for '''article message boxes''' has been selected. That is, ''message boxes'' or ''article templates'' that go on the top of articles and article sections.
 
-
== Scope ==
+
== The Template ==
 +
The {{tl|ArticleMessageBox}} template makes it easy to create article message boxes in the new design. Usage documentation and examples:
-
The scope of this page and standardisation effort is the design of '''article message boxes'''. That is, message boxes that go on the top of articles and article sections. Other kinds of ''article templates'' such as [[Template:Navbox|navigation boxes]] and [[Help:Infobox|infoboxes]] are not included.
+
{{:Article Message Box usage}}
-
 
+
-
''Talk page templates'' were already standardised last year, see [[Wikipedia:Talk page templates]].
+
-
 
+
-
''Project namespace templates'' such as the box on the top of this page ''are not within the scope'' of this standardisation effort.
+
-
 
+
-
== New design is ready ==
+
-
 
+
-
The CSS code and meta template are finished and we have now (September 2007) started to convert the old [[Wikipedia:Template messages#Article-related namespace|article message boxes]] to the new design. The design of these article message boxes is controlled by the ''ambox CSS classes'' in [[MediaWiki:Common.css]].
+
-
 
+
-
The meta template {{tl|ambox}} makes it easy to create article message boxes in the new design. It has usage documentation and examples. Note that {{tl|ambox}} is just a thin wrapper for the CSS classes.
+
-
 
+
-
The CSS classes can also be used directly in a [[Help:Table|wikitable]] or [[HTML element#Tables|HTML table]], especially when special functionality is needed. The how-to guide [[Wikipedia:Ambox CSS classes]] describes that.
+
-
 
+
-
== Browser cache ==
+
-
 
+
-
If these two boxes don't look alike, you need to [[Wikipedia:Bypass your cache|refresh your web browser cache]]:
+
-
 
+
-
{{ambox
+
-
| image = none
+
-
| text = Box generated by {{tl|ambox}}.
+
-
}}
+
-
{| style="width: 80%; margin: 0 auto; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #1e90ff;"
+
-
|-
+
-
| style="padding: 0.25em 0.5em;" | Hardcoded box.
+
-
|}
+
-
 
+
-
This is a temporary caching problem that should be gone in some days.
+
-
 
+
-
== Reasoning ==
+
-
 
+
-
The tags that we use to notify people of problems within an article are on thousands of our pages. Our readers see them and judgements are made not only about the article at hand but about the project itself. Currently we have a myriad of templates that often share some level of consistency but still look very mismatched.
+
-
 
+
-
The proposal below aims to address these issues. The thinking behind the design is:
+
-
* It is colour-coded but without using an overpowering amount
+
-
* Standard widths
+
-
* Generally a better design than we have now
+
-
* It is easily implemented
+
-
 
+
-
== Colour code ==
+
-
 
+
-
Colour coding article message box templates will help to inform of the severity of the issues at a glance. Having a small amount of colour is best, as too much can be overwhelming.
+
-
 
+
-
{{Wikipedia:Template standardisation/colorsample|#b22222|Deletion issues, such as {{tl|afd}} and {{tl|prod}}}}
+
-
{{Wikipedia:Template standardisation/colorsample|#f28500|Content issues, such as {{tl|POV}} and {{tl|globalize}}}}
+
-
{{Wikipedia:Template standardisation/colorsample|#f4c430|Style issues, such as {{tl|cleanup}} and {{tl|wikify}}}}
+
-
{{Wikipedia:Template standardisation/colorsample|#9932cc|Merger, split and transwiki proposals, such as {{tl|split}} and {{tl|copy to wiktionary}}}}
+
-
{{Wikipedia:Template standardisation/colorsample|#1e90ff|All other article notices, such as {{tl|current}}}}
+
-
 
+
-
Currently under discussion at the talk page:
+
-
 
+
-
{{Wikipedia:Template standardisation/colorsample|#bba|Protection templates, such as {{tl|pp-protected}}}}
+
-
 
+
-
==Alternate skins==
+
-
 
+
-
It is possible to customize the appearance of ambox templates by adding to or altering the code in [[Special:Mypage/monobook.css|your monobook.css page]]. There are several pre-made "skins" available for this at [[Wikipedia:Ambox CSS classes/Skins]].
+
== Design ==
== Design ==
Line 74: Line 20:
=== "Protection" templates ===
=== "Protection" templates ===
-
 
+
{{tl|protected}}
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #bba;"
+
{{protected}}
-
|-
+
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Padlock.png|40px]]
+
-
| style="padding: 0.25em 0.5em;" |
+
-
'''This {{#switch:{{NAMESPACE}}|{{ns:0}}=article|{{ns:image}}=image|#default=page}} is currently [[Wikipedia:This page is protected|protected]] from editing {{#if:{{{expiry|}}}|until {{#time:[[F j]], [[Y]]|{{{expiry}}}}} <small>(UTC)</small>}} to [[Wikipedia:Vandalism|deal with vandalism]].''' Protection is [[Wikipedia:Protection policy|not an endorsement]] of the current <span class="plainlinks">[{{fullurl:{{FULLPAGENAMEE}}|action=history}} version]</span> <span class="plainlinks">([{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log])</span>. {{howtoedit|lbreak=}}
+
-
|}
+
=== "Deletion issue" templates ===
=== "Deletion issue" templates ===
-
 
+
{{tl|delete}}
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #b22222;"
+
{{delete}}
-
|-
+
-
| style="padding: 0.25em 0.5em;" | '''This article is being considered for deletion in accordance with Wikipedia's [[Wikipedia:Deletion policy|deletion policy]][[Template:Afd|.]]'''<br/>Please share your thoughts on the matter at '''[[Wikipedia:Articles for deletion/{{{1|Template standardisation}}}|this article's entry]]''' on the Articles for deletion page. Feel free to edit the article, but the article must not be blanked, and this notice must not be removed, until the discussion is closed. For more information, particularly on merging or moving the article during the discussion, read the [[Wikipedia:Guide to deletion|guide to deletion]].<br/>
+
-
----
+
-
<small>''[[Template:AfD footer|Steps to list an article for deletion]]: <nowiki>{{</nowiki>subst:afd}} • [http://en.wikipedia.org/w/index.php?action=edit&preload=Template:Afd2+starter&editintro=Template:Afd3+starter&title=Wikipedia:Articles+for+deletion/{{PAGENAMEE}} Preloaded debate] ''OR'' <nowiki>{{</nowiki>subst:afd2|pg={{PAGENAME}}|cat=|text=}} • <nowiki>{{</nowiki>subst:afd3|pg={{PAGENAME}}}} [{{SERVER}}{{localurl:Wikipedia:Articles for deletion/Log/{{CURRENTYEAR}}_{{CURRENTMONTHNAMEGEN}}_{{CURRENTDAY}}|action=edit}} log]</small>
+
-
|}
+
-
 
+
-
 
+
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: <!--#FBFBFB-->#FEE; border: 1px solid #aaa; border-left: 10px solid #b22222;"
+
-
|-
+
-
| style="padding: 0.25em 0.5em;" | '''This page may meet Wikipedia’s [[Wikipedia:Criteria for speedy deletion|criteria for speedy deletion]].'''<br/>The given reason is: <i id="delete-reason">It is a very short article providing little or no context (<small>[[Wikipedia:Criteria for speedy deletion#A1|CSD A1]]</small>), contains no content whatsoever (<small>[[Wikipedia:Criteria for speedy deletion#A3|CSD A3]]</small>), consists only of links elsewhere (<small>CSD A3</small>) or a rephrasing of the title (<small>CSD A3</small>).</i><br/><small>Please consider placing {<nowiki>{subst:empty-warn|</nowiki>{{FULLPAGENAME}}}<nowiki>} ~~~~</nowiki> on the User Talk page of the author.</small>
+
-
|}
+
=== "Content issue" templates ===
=== "Content issue" templates ===
-
{| align="center" cellpadding="10" width="95%"
+
{{tl|Expand}}
-
|style="border:1px dotted gray"|
+
-
;{{[[Template:Expand|Expand]]}}
+
{{Expand}}
{{Expand}}
-
|-
+
 
-
|style="border:1px dotted gray"|
+
{{tl|Expand2}}
-
;{{[[Template:Expand2|Expand2]]}}
+
{{Expand2}}
{{Expand2}}
-
|-
+
 
-
|style="border:1px dotted gray"|
+
{{tl|Copypaste|from http://website.com}}
-
;{{[[Template:Copypaste|Copypaste|from http://website.com]]}}
+
{{Copypaste|from http://website.com/folder/subfolder/file.html}}
{{Copypaste|from http://website.com/folder/subfolder/file.html}}
-
|-
+
 
-
|style="border:1px dotted gray"|
+
{{tl|Stub}}
-
;{{[[Template:Stub|Stub]]}}
+
{{Stub}}
{{Stub}}
-
|-
+
 
-
|style="border:1px dotted gray"|
+
{{tl|Uncategorized}}
-
;{{[[Template:Uncategorized|Uncategorized]]}}
+
{{Uncategorized}}
{{Uncategorized}}
-
|-
 
-
|}
 
-
 
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #f28500;"
 
-
|-
 
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Unbalanced scales.png|40px]]
 
-
| style="padding: 0.25em 0.5em;" | '''The [[Wikipedia:Neutral point of view|neutrality]] of this article is [[Wikipedia:NPOV dispute|disputed]].''' <br/>Please see the discussion on the [[{{TALKPAGENAME}}#{{{1|}}}|talk page]].{{#if:{{{date|}}}|<br/><small>This article has been tagged since {{{date}}}.</small>}}
 
-
|}
 
-
 
-
 
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #f28500;"
 
-
|-
 
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Newspaper nicu buculei 01.png|50px]]
 
-
| style="padding: 0.25em 0.5em;" | '''This article or section reads like an [[Wikipedia:What Wikipedia is not#Wikipedia is not a soapbox|advertisement]].'''<br/>To meet Wikipedia's [[:Category:Wikipedia style guidelines|quality standards]] and comply with Wikipedia's [[Wikipedia:Neutral point of view|neutral point of view]] policy, it may require [[Wikipedia:Cleanup|cleanup]].
 
-
|}
 
=== "Style issue" templates ===
=== "Style issue" templates ===
-
 
+
{{tl|Cleanup}}
-
{| align="center" cellpadding="10" width="95%"
+
-
|style="border:1px dotted gray"|
+
-
;{{[[Template:Cleanup|Cleanup]]}}
+
{{Cleanup|article}}
{{Cleanup|article}}
-
|}
 
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #f4c430;"
+
{{tl|wikify}}
-
|-
+
{{wikify|article}}
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Broom icon.png|40px]]
+
-
| style="padding: 0.25em 0.5em;" | '''To meet Wikipedia's [[:Category:Wikipedia style guidelines|quality standards]], this article may require [[Wikipedia:Cleanup|cleanup]].'''<br/>Please discuss this issue on the [[{{TALKPAGENAME}}|talk page]], and/or replace this tag with a [[Wikipedia:Template_messages/Cleanup#Specific_issues|more specific message]]. [[Help:Editing|Editing help]] is available.
+
-
|}
+
-
 
+
-
 
+
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #f4c430;"
+
-
|-
+
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Wikitext.png|50px]]
+
-
| style="padding: 0.25em 0.5em;" | '''This {{{2|article or section}}} lacks formatting.'''<br/>Please [[Wikipedia:Glossary#Wikify|wikify]] it as suggested in the [[Wikipedia:Guide to layout|Guide to layout]] and the [[Wikipedia:Manual of Style|Manual of Style]].
+
-
|}
+
=== "Article notice" templates ===
=== "Article notice" templates ===
 +
{{tl|Expand}}
 +
{{Expand}}
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #1e90ff;"
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #1e90ff;"
Line 164: Line 61:
=== "Merger and transwiki proposal" templates ===
=== "Merger and transwiki proposal" templates ===
 +
{{tl|Expand}}
 +
{{Expand}}
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #95b;"
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #95b;"
Line 171: Line 70:
|}
|}
-
=== Stacking demo ===
 
-
 
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #f28500;"
 
-
|-
 
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Unbalanced scales.png|40px]]
 
-
| style="padding: 0.25em 0.5em;" | '''The [[Wikipedia:Neutral point of view|neutrality]] of this article is [[Wikipedia:NPOV dispute|disputed]].''' <br/>Please see the discussion on the [[{{TALKPAGENAME}}#{{{1|}}}|talk page]].{{#if:{{{date|}}}|<br/><small>This article has been tagged since {{{date}}}.</small>}}
 
-
|}
 
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #f4c430;"
 
-
|-
 
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Wikitext.png|50px]]
 
-
| style="padding: 0.25em 0.5em;" | '''This {{{2|article or section}}} lacks formatting.'''<br/>Please [[Wikipedia:Glossary#Wikify|wikify]] it as suggested in the [[Wikipedia:Guide to layout|Guide to layout]] and the [[Wikipedia:Manual of Style|Manual of Style]].
 
-
|}
 
-
{| style="width: 80%; margin: 0 0 0 10%; border-collapse: collapse; background: #FBFBFB; border: 1px solid #aaa; border-left: 10px solid #1e90ff;"
 
-
|-
 
-
| style="width: 52px; padding: 2px 0px 2px 0.5em; text-align: center;" | [[Image:Gnome globe current event.png|42px]]
 
-
| style="padding: 0.25em 0.5em;" | '''This {{{1|article}}} documents a [[Portal:Current events|current event]].''' <br/> Information may change rapidly as the event progresses.
 
-
|}
 
</div> <!-- end of fake white background -->
</div> <!-- end of fake white background -->
-
 
-
== See also ==
 
-
 
-
* [[Wikipedia talk:Article message boxes]] – For discussion about these matters.
 
-
* [[Template:Ambox]] – The meta template that makes it easy to create article message box templates in this new style. It has usage documentation and examples.
 
-
* [[Wikipedia:Ambox CSS classes]] – Describes how to use the ambox CSS classes directly in [[Help:Table|wikitable]]s and [[HTML element#Tables|HTML tables]].
 
-
* [[Wikipedia:Ambox CSS classes/Skins]] – Several article message box skins for your Wikipedia account.
 
-
* [[Wikipedia:Talk page templates]] – For the "coffeeroll" standard used in talk page templates.
 
-
* [[Wikipedia:Template standardisation]] - For standardisation efforts across the template namespace.
 
-
 
[[Category:Article message box templates|{{PAGENAME}}]]
[[Category:Article message box templates|{{PAGENAME}}]]

Revision as of 19:55, March 26, 2008

Image:120px-Crystal_Clear_app_package_utilities.png‎
This is a workpage... Workpages are pages that are under development by Administrators (Sysops), or contributors who are assisting us by improving the web site's function and ease of use. This workpage should be considered informative, rather than authoritative, unless and until it is adopted by the Administrators; as such, only Administrators should remove a workpage tag. Unlike Articles that need to be expanded, which are Scouting-related (and located in the main namespace), workpages are geared toward MediaWiki and located in other namespaces, such as, Help:, Template:, and MeritBadgeDotOrg:. Even so, you are welcome to help us work on this page. If you prefer, you can present your ideas on the talk page. Thank you -- The MeritBadgeDotOrg Administrators


Contents

The purpose of this project is to implement a standard and consistent design for article message boxes. That is, message boxes or article templates that go on the top of articles and article sections (or, in select cases, the bottom). Other kinds of article templates such as navigation boxes and infoboxes are not included in this Workpage.


The Template

The {{ArticleMessageBox}} template makes it easy to create article message boxes in the new design. Usage documentation and examples:


Usage

Examples

Example 1

The following code:

{{ArticleMessageBox
|barcolor=#1E90FF
|image=Sm-fdl.gif
|text = '''This is a [[MeritBadgeDotOrg:Stub|stub]]... Please help {{fullurl:{{PAGENAME}}|action=edit}} improve this {{{1|article or section}}}] by expanding it.''' <br />Further information might be found on the [[{{TALKPAGENAME}}|talk page]].
|includeonly = [[Category:Stubs]]
}}

Will produce:

This is a stub... Please help improve this article or section by expanding it.
Further information might be found on the talk page.

Example 2

The following code:

{{ArticleMessageBox
|width = 
|left-indent = 1%
|barcolor = #f28500
|image =  Sm-fdl.gif
|text =  '''Please help [{{fullurl:{{PAGENAME}}|action=edit}} improve this {{{1|article or section}}}] by expanding it.'''<br />Further information might be found on the [[{{TALKPAGENAME}}|talk page]].
|includeonly =  [[Category:Articles that need to be expanded]]
}}

Will produce:

Please help improve this article or section by expanding it.
Further information might be found on the talk page.


Copy-and-paste code

{{ArticleMessageBox
|width =         <!-- This parameter is optional. (Leaving this blank will set auto-width, which is 80%.) -->
|left-indent =   <!-- This parameter is optional. -->
|barcolor = 
|image =  
|imagesize =     <!-- This parameter is optional. (Default should be 44px, if needed.) -->
|bgcolor =       <!-- This parameter is optional. (Default is #fbfbfb.) -->
|text = 
|includeonly =   <!-- This parameter is optional. (However, "include" Categories go here.) -->
}}


Categories and colors

Article message boxes are divided into various categories. Each category has a corresponding color code. The color-coding helps to inform of the nature of the issues at a glance.

Code Name Description Example Templates
#bba Protection Page is locked against edits {{protected}}
#b22222 Deletion proposed deletion {{delete}}
#f28500 Content Problems with the content of an article, i.e., what the article actually says {{expand}}, {{expand2}}, {{copypaste}}, {{stub}}, {{uncategorized}}, {{unreferenced}}
#f4c430 Style Problems not with the content, but how it is formatted/presented {{cleanup}}, {{wikify}}
#1e90ff Notice Information readers/editors should be aware of {{info}}, {{Otheruses}}, {{Current}}, {{GFDL content}}
#9932cc Move Merge and split proposals {{merge}}


The choice of color is partly inspired by the ANSI standard safety "Signal Words" and their corresponding colors: Danger (Red), Warning (Orange), Caution (Yellow), and Notice (Blue).

Most Article message boxes have a background color of #fbfbfb (slightly off white), which is intended to contrast slightly with the full white (#ffffff) used for articles, while still being easy to read.

Design

Please note:

  • The wording of these message boxes is not under discussion at this time. Initial implementation will use the text from the existing "production" templates. The wording in the examples below is for illustration purposes only.
  • The following box has a white background to mimic article pages.


"Protection" templates

{{protected}}

Editing this page is currently restricted to administrators in order to deal with vandalism, spam, etc.
Please discuss any proposed changes on the talk page. Thank you.

"Deletion issue" templates

{{delete}}

This article has been nominated for deletion in accordance with MeritBadgeDotOrg's deletion policy. You may share your thoughts on the matter at this article's talk page. Feel free to edit this article; but, it must not be blanked, and this notice must not be removed until the discussion is closed by an administrator. For more information, read the guide to deletion.

"Content issue" templates

{{Expand}}

Please help improve this article by expanding it.
Further information might be found on the talk page.

{{Expand2}}

Please help improve this article or section by expanding it.
Further information might be found on the talk page.

{{Copypaste}}

This article or section appears to have been copied and pasted from http://website.com/folder/subfolder/file.html,
possibly in violation of a copyright.

Please edit this article to remove any copyrighted text and to be an original source,
following the Guide to layout and the Manual of Style. Remove this template after editing.

{{Stub}}

This is a stub... Please help improve this article or section by expanding it.
Further information might be found on the talk page.

{{Uncategorized}}

This article is uncategorized.
Please categorize this articles to list it with similar articles.

"Style issue" templates

{{Cleanup}}

This article may require cleanup to meet MeritBadgeDotOrg's quality standards.
Please help improve this article if you can.

{{wikify}}

This article or section lacks formatting.
Please "wikify" it as suggested in the Guide to layout and the Manual of Style.

"Article notice" templates

{{Expand}}

Please help improve this article by expanding it.
Further information might be found on the talk page.

This article documents a current event.
Information may change rapidly as the event progresses.

"Merger and transwiki proposal" templates

{{Expand}}

Please help improve this article by expanding it.
Further information might be found on the talk page.

Image:Merge-arrows.png It has been suggested that this page or section be merged with Page title.  (discuss)


</div>

Personal tools
language