模板:Tracked/doc
本文件是Template:Tracked的文件子頁面(見模板頁自身)。 本頁包含用法資訊、分類和其他非原模板頁面的內容。 |
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 | 字串 | 必填 |
Status | 2 | resolved, stalled, invalid, ... | 字串 | 非必填 |
float | float | CSS float+clear right, left, none, both, inherit
| 字串 | 非必填 |