跳至內容

模板:Tracked/doc

本頁使用了標題或全文手工轉換
維基新聞,自由的新聞源

This template displays a box on the right side of the page, which links to a specific Phabricator or Bugzilla discussion.

Usage

[編輯]
{{Tracked|Task ID}}

where Task ID is the Phabricator number of the task e.g. T12345. Bugzilla ticket numbers work as well. For example, {{Tracked|T123}} generates the box to the right:

Sample output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

You can also mark the status of the task:

{{Tracked|Task ID}}

where Status is one of resolved, we support invalid, duplicate, declined, stalled, and open. Example with the resolved keyword:

Sample output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Bugzilla tickets

[編輯]

For backwards compatibility, this template also accepts the number of a Bugzilla ticket as the first parameter, and the following resolutions: fixed, wontfix, later, invalid, and critical. This last keyword should only be used if the bug has also been marked as critical in Bugzilla. Example usage: {{Tracked|300|critical}}

Sample output:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

If you need the Phabricator task for a migrated Bugzilla ticket, add 2000 to the BZ bug number and prefix with T, e.g. T2300 replaced bugzilla:300.

TemplateData

[編輯]

Link box to a bug report

模板參數

參數描述類型狀態
Bug id.1

Tasknumber T123 or old bugzilla number

字串必填
Status2

resolved, stalled, invalid, ...

字串非必填
floatfloat

CSS float+clear right, left, none, both, inherit

預設
right
字串非必填