Difference between revisions of "Template:EAR"
imported>SMcCandlish m (moved Template:Ear to Template:EAR: EAR is an acronym here, and has nothing to do with ears, so "EAR" should be its actual name. I'd advise replacing extant cases of {{ear}} with {{EAR}} to free up the misleading old name.) |
imported>Thumperward (converting to use the new template:hmbox meta-template) |
||
| Line 1: | Line 1: | ||
| − | + | {{ hmbox | |
| + | | class = {{#switch:{{{1|}}} | ||
| r | | r | ||
| − | | resolved = resolved | + | | resolved = resolved |
| a | | a | ||
| − | | answered = answered | + | | answered = answered |
| unc | | unc | ||
| − | | unclear = unclear | + | | unclear = unclear |
| unr | | unr | ||
| unresolved = unresolved | | unresolved = unresolved | ||
| s | | s | ||
| − | | stale = stale | + | | stale = stale |
| m | | m | ||
| − | | moved = moved | + | | moved = moved |
| stu | | stu | ||
| − | | stuck = stuck | + | | stuck = stuck |
| − | | #default = resolved | + | | #default = resolved |
| − | }} | + | }} |
| + | | image = {{#switch:{{{1|}}} | ||
| r | | r | ||
| − | | resolved = | + | | resolved = Yes check.svg |
| a | | a | ||
| − | | answered = | + | | answered = Wavy arrow down right.svg |
| unc | | unc | ||
| − | | unclear = | + | | unclear = Orange exclamation mark.svg |
| unr | | unr | ||
| − | | unresolved = | + | | unresolved = Red question mark.svg |
| s | | s | ||
| − | | stale = | + | | stale = Red x.svg |
| m | | m | ||
| − | | moved = | + | | moved = Arrow Blue Up 001.svg |
| stu | | stu | ||
| − | | stuck = | + | | stuck = Muu vaara 189.svg |
| − | | #default = | + | | #default = Yes check.svg |
| − | }} | + | }} |
| − | + | | message = {{#switch:{{{1|}}} | |
| − | {{ | + | | r |
| − | <!-- | + | | resolved = Resolved |
| − | </noinclude> | + | | a |
| + | | answered = Answered | ||
| + | | unc | ||
| + | | unclear = Request unclear | ||
| + | | unr | ||
| + | | unresolved = Unresolved | ||
| + | | s | ||
| + | | stale = Stale | ||
| + | | m | ||
| + | | moved = Discussion moved | ||
| + | | stu | ||
| + | | stuck = Stuck | ||
| + | | #default = Resolved | ||
| + | }} | ||
| + | | extra = {{{2|}}} | ||
| + | }}<noinclude>{{documentation}}<!-- place category and language links on the /doc sub-page, not here --></noinclude> | ||
Revision as of 11:16, 14 December 2011
Usage
{{ear|status|message ~~~~}}{{ear|status|2=message ~~~~}}(necessary when your message or signature includes the=character)
Both parameters should be specified for this template; while it will work without the second parameter specified, it is considered poor form on most noticeboards to not include a reason, or to at least sign and datestamp it. At Wikipedia:Editor assistance/Requests (WP:EAR) at least, such timestamps are used for determining when to archive a thread.
Possible status types:
- resolved (short form: r)
- answered (short form: a)
- unclear (short form: unc)
- unresolved (short form: unr)
- stale (short form: s)
- (new!) moved (short form: m)
- (new!) stuck (short form: stu)
Examples
{{ear|r|Foo. ~~~~}}:
Resolved – Foo. ~~~~{{ear|a|Foo. ~~~~}}:20x20px Answered – Foo. ~~~~{{ear|unc|Foo. ~~~~}}:20x20px Request unclear – Foo. ~~~~{{ear|unr|Foo. ~~~~}}:20x20px Unresolved – Foo. ~~~~{{ear|s|Foo. ~~~~}}:File:Red x.svg Stale – Foo. ~~~~{{ear|m|To [[Talk:Foobarbaz#qux]]. ~~~~}}:
Discussion moved – To Talk:Foobarbaz#qux. ~~~~{{ear|stu|Foo. ~~~~}}:20x20px Stuck – Foo. ~~~~
Special case
- Template:N
{{ear|a|Foo bar baz [//en.wikipedia.org/w/index.php?title=Main_Page&diff=139993 foo bar baz!]. ~~~~}}:20x20px Answered - Template:Y
{{ear|a|2=Foo bar baz [//en.wikipedia.org/w/index.php?title=Main_Page&diff=139993 foo bar baz!]. ~~~~}}:20x20px Answered – Foo bar baz foo bar baz!. ~~~~
Notes
This template was created to expand on {{resolved}}, {{unresolved}}, etc. for some specialized purposes that were proposed at WT:EAR in April and May of 2009. While some of the parameters cause identical behavior to the templates above, this template was created so as to permit easy unification of the icon styles used on WP:EAR, as well as to avoid taking up multiple simple template names (such as "answered", "cant").
Changing the icons is a snap. The icons currently in here are just a group of possibilities which use the current templates' icons and maintain a stylistic similarity with the new ones.
Please be careful when making changes to this template, and especially avoid removing possible parameters as it may badly break earlier uses of the template. A default case which displays an error may be a good solution to avoid having items previously tagged one way showing up as resolved when changes to this template occur.
See also
| The above documentation is transcluded from Template:EAR/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |