模板:Badge/doc:修订间差异
外观
< 模板:Badge
wiki>Pppery 小 Reverted edits by ~2025-30089-51 (talk) to last version by Eduardogobi |
小 导入1个版本 |
(没有差异)
| |
2025年12月16日 (二) 16:40的最新版本
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Badge. It contains usage information, categories and other content that is not part of the original 模板 page. |
| CSS | This template uses TemplateStyles: |
<translate> Tracked in [[<tvar name=1>phabricator:</tvar>|Phabricator]]</translate>
<translate> Task <tvar name=1>T188443</tvar></translate>
<translate> Task <tvar name=1>T188443</tvar></translate>
This is the TemplateData documentation for this template used by VisualEditor and other tools.
Badge
This template creates a badge with a light background. It can be used e.g. in page status indicators.
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| Contents | content | The badge's content. | 内容 | 必需 |
| Extra style | style | Extra CSS for the badge's style tag. | 字符串 | 可选 |
| Extra class | class | Extra CSS classes. | 字符串 | 可选 |
Badge templates
- Template:Shortcut, promote short redirect pages.
- Template:Ptag, promote Phabricator tags and workboards.
- Template:Tracked, badge rendering a prominent link to a Phabricator task.