Difference between revisions of "Template:Tracked"

From blackwiki
Jump to navigation Jump to search
test>MarkAHershberger
(Prep for 1.19 deployment)
 
m (22 revisions imported)
 
(21 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<includeonly><div style="float:right; clear:right; border:1px solid #999; {{border-radius|0.5em}} background-color:#eee; {{linear-gradient|top|#ddd,#eee}} font-size:85%; text-align:center; padding:0.5em; margin-left:1em; margin-bottom: 1em; width: 12em;" class="plainlinks mw-trackedTemplate">Tracked in [//bugzilla.wikimedia.org/ Bugzilla]<br/> '''[[bugzilla:{{{1}}}|<span id="trakbug-{{{1}}}">Bug {{{1}}}</span>]]'''
+
<div role="note" style="float:{{{float|right}}}; clear:{{{float|right}}}; border:1px solid #72777d; border-radius: 2px; background-color:#eaecf0; font-size:85%; text-align:center; padding:0.5em; margin-left:1em; margin-bottom:1em; width:12em" class="plainlinks {{#if:{{{1|}}}|mw-trackedTemplate}}">Tracked in [[phabricator:|Phabricator]]<br />{{#if:{{{1|}}}|'''[[phabricator:{{ #ifeq: {{padleft: | 1 | {{ uc: {{{1}}} }} }} | T | {{ uc: {{{1}}} }} | T{{ #expr: {{{1}}} + 2000 }} }}|<span class="trakfab-{{ #ifeq: {{padleft: | 1 | {{ uc: {{{1}}} }} }} | T | {{ uc: {{{1}}} }} | T{{ #expr: {{{1}}} + 2000 }} }}"> Task {{ #ifeq: {{padleft: | 1 | {{ uc: {{{1}}} }} }} | T | {{ uc: {{{1}}} }} | T{{ #expr: {{{1}}} + 2000 }} }}</span>]]'''}}
{{#switch:{{{2}}}
+
{{#switch:{{lc:{{{2|}}}}}
|fixed=<span style="color: green; font-weight: bold; text-transform: uppercase;">Resolved fixed</span>
+
  |resolved|fixed=<span style="color:green; font-weight:bold; text-transform:uppercase">Resolved</span>
|wontfix=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved "won't fix"</span>
+
  |invalid=<span style="color:black; font-weight:bold; text-transform:uppercase">Invalid</span>
|invalid=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved invalid</span>
+
  |duplicate=<span style="color:black; font-weight:bold; text-transform:uppercase">Duplicate</span>
|later=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved "later"</span>
+
  |declined|wontfix=<span style="color:black; font-weight:bold; text-transform:uppercase">Declined</span>
|critical=<span style="color: red; font-weight: bold; font-size: 1.5em; text-transform: uppercase;">Critical</span>
+
  |stalled|later=<span style="color:black; font-weight:bold; text-transform:uppercase">Stalled</span>
|}}
+
  |open=<span style="color:black; font-weight:bold; text-transform:uppercase">Open</span>
</div></includeonly><noinclude>
+
}}</div><noinclude>
'''''Template documentation'''''
+
{{documentation}}
 
+
</noinclude>
This template is intended to be used on feedback pages and talk pages for software deployments. It floats right-aligned next to whichever content it precedes. Imagine we see a comment like the following:
 
 
 
<div style="margin-left:4em;">
 
{| class="wikitable" width="500px"
 
|-
 
|
 
Your software is broken. It doesn't even work on Windows ME. When I try to load it, Bill Gates appears on my screen and laughs manically. --[[Special:Mypage|Dogmaster3000]] 01:17, 14 December 2011 (PST)
 
|}
 
</div>
 
 
 
Now let's say we want to note that there's a bug in the bug tracker for this. We'll add the following code: <code><nowiki>{{tracked|300}}</nowiki></code> (where 300 is the number of the bug).
 
 
 
<div style="margin-left:4em;">
 
'''Sample output:'''
 
{| class="wikitable" width="500px"
 
|-
 
|
 
{{Tracked|300}}
 
Your software is broken. It doesn't even work on Windows ME. When I try to load it, Bill Gates appears on my screen and laughs manically. --[[Special:Mypage|Dogmaster3000]] 01:17, 14 December 2011 (PST)
 
|}
 
</div>
 
 
 
We can leave it at that. If we'd like to note the fact that the bug's been fixed, we can note its status, via <code><nowiki>{{tracked|300|fixed}}</nowiki></code>. In addition to <code>fixed</code>, we support <code>wontfix</code>, <code>later</code> and <code>invalid</code> resolution. (Style note: We're not using big scary red colors for the resolution to avoid scaring or annoying the reporter.) Example with the <code>fixed</code> keyword:
 
 
 
<div style="margin-left:4em;">
 
'''Sample output:'''
 
{| class="wikitable" width="500px"
 
|-
 
|
 
{{Tracked|300|fixed}}
 
Your software is broken. It doesn't even work on Windows ME. When I try to load it, Bill Gates appears on my screen and laughs manically. --[[Special:Mypage|Dogmaster3000]] 01:17, 14 December 2011 (PST)
 
|}
 
</div>
 
 
 
Last but not least, we can mark a bug as critical. We deliberately aren't using this keyword for bugs which are resolved one way or another -- the point of adding this to the template is to note to all readers of the page that the seriousness of a bug has been critical. '''This keyword should only be used if the bug has also been marked as critical in Bugzilla.''' Example usage: <code><nowiki>{{Tracked|300|critical}}</nowiki></code>
 
 
 
<div style="margin-left:4em;">
 
'''Sample output:'''
 
{| class="wikitable" width="500px"
 
|-
 
|
 
{{Tracked|300|critical}}
 
Your software is broken. It doesn't even work on Windows ME. When I try to load it, Bill Gates appears on my screen and laughs manically. --[[Special:Mypage|Dogmaster3000]] 01:17, 14 December 2011 (PST)
 
|}
 
</div>
 
 
 
Of course, feel free to avoid using this template if tracking a comment is not useful.
 
 
 
<div style="margin-left:4em;">
 
{| class="wikitable" width="500px"
 
|-
 
|
 
Your software is broken. It doesn't even work on Windows ME. When I try to load it, Bill Gates appears on my screen and laughs manically. --[[Special:Mypage|Dogmaster3000]] 01:17, 14 December 2011 (PST)
 
 
 
: You appear to be running the new IE toolbar. This is expected behavior. However, if you upgrade, it will show the angry dancing Ballmer instead. --[[Special:Mypage|GNUnicorn]] 01:38, 14 December 2011 (PST)
 
|}
 
</div>
 

Latest revision as of 15:21, 4 September 2020

50px Template documentation[create]