Jump to content

Template:Tracked: Difference between revisions

From cernipedia
Prep for 1.19 deployment
 
m 24 revisions imported from wikipedia:Template:Tracked
 
(23 intermediate revisions by 14 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>]]'''
<templatestyles src="Tracked/styles.css" /><div role="note" class="tracked plainlinks {{#if:{{{1|}}}|mw-trackedTemplate}}">Tracked in [[phabricator:|Phabricator]]<br />{{#if:{{{1|}}}|<span class="tracked-url">[[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>]]</span>}}<br>{{#switch:{{lc:{{{2|}}}}}
{{#switch:{{{2}}}
  |resolved|fixed=<span class="tracked-closure tracked-resolved">Resolved</span>
|fixed=<span style="color: green; font-weight: bold; text-transform: uppercase;">Resolved fixed</span>
  |invalid=<span class="tracked-closure">Invalid</span>
|wontfix=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved "won't fix"</span>
  |duplicate=<span class="tracked-closure">Duplicate</span>
|invalid=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved invalid</span>
  |declined|wontfix=<span class="tracked-closure">Declined</span>
|later=<span style="color: black; font-weight: bold; text-transform: uppercase;">Resolved "later"</span>
  |stalled|later=<span class="tracked-closure">Stalled</span>
|critical=<span style="color: red; font-weight: bold; font-size: 1.5em; text-transform: uppercase;">Critical</span>
  |open=<span class="tracked-closure">Open</span>
|}}
}}</div><noinclude>
</div></includeonly><noinclude>
{{documentation}}
'''''Template 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 13:13, 19 November 2026