Article Message Box usage
From MeritBadgeDotOrg
(Difference between revisions)
(add doc include) |
m (More clean-up.) |
||
| (9 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| + | <noinclude>{{transclude}}</noinclude> | ||
| + | |||
==Usage== | ==Usage== | ||
| + | ===Examples=== | ||
| + | ====Example 1==== | ||
The following code: | The following code: | ||
<pre> | <pre> | ||
| Line 5: | Line 9: | ||
|barcolor=#1E90FF | |barcolor=#1E90FF | ||
|image=Sm-fdl.gif | |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]]. | + | |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]] | |includeonly = [[Category:Stubs]] | ||
| - | }} | + | }}</pre> |
| - | + | ||
| - | </pre> | + | |
Will produce: | Will produce: | ||
| Line 18: | Line 20: | ||
|includeonly = [[Category:Stubs]] | |includeonly = [[Category:Stubs]] | ||
}} | }} | ||
| + | |||
| + | ====Example 2==== | ||
| + | The following code: | ||
| + | <pre>{{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]] | ||
| + | }}</pre> | ||
| + | |||
| + | Will produce: | ||
| + | {{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]] | ||
| + | }} | ||
| + | |||
=== Copy-and-paste code === | === Copy-and-paste code === | ||
<div style="background:#dddddd;border: 1px solid black;padding:0.5em 1em 0.5em 1em"><pre> | <div style="background:#dddddd;border: 1px solid black;padding:0.5em 1em 0.5em 1em"><pre> | ||
{{ArticleMessageBox | {{ArticleMessageBox | ||
| + | |width = <!-- This parameter is optional. (Leaving this blank will set auto-width, which is 80%.) --> | ||
| + | |left-indent = <!-- This parameter is optional. --> | ||
|barcolor = | |barcolor = | ||
|image = | |image = | ||
| - | |text = | + | |imagesize = <!-- This parameter is optional. (Default should be 44px, if needed.) --> |
| - | |includeonly = | + | |bgcolor = <!-- This parameter is optional. (Default is #fbfbfb.) --> |
| - | }} | + | |text = |
| + | |includeonly = <!-- This parameter is optional. (However, "include" Categories go here.) --> | ||
| + | }}</pre></div> | ||
| - | + | {{:Article message box categories and color}}<noinclude> | |
| - | + | ||
| + | ==See also== | ||
| + | * [[MeritBadgeDotOrg:Article message boxes]] | ||
| + | </noinclude> | ||
| - | + | [[Category:Article message box templates]] | |
Current revision
| | This article is transcluded into another article, potentially several articles. Please take this into consideration and be cautious when editing. |
Contents |
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.
