模板: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
| 字符串 | 可选 |
上述文档嵌入自Template:Tracked/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |