Template:Votings/select
外观
Usage
[编辑]This subtemplate determines whether to display some text based on whether a particular subset of votings is being displayed and, if so, which subset the given text belongs to.
Param name | Description |
---|---|
1=
|
The text possibly to be displayed |
entry= or item=
|
The nature of this particular text (required) |
row=
|
The nature of the things currently being displayed (optional; if omitted, everything is being displayed) |
If row
is non-blank, the text is only displayed when row
is equal to entry
(or, in its absence, item
).
Row names in use at this writing are: production
, community
, admin
.
Examples
[编辑]code | output |
---|---|
{{Votings/select|quux}}
|
quux |
{{Votings/select|quux}}
|
quux |
{{Votings/select|quux}}
|
Internals
[编辑]row
parameter values propagate from MediaWiki:Recentchanges-summary. entry
parameter values are specified at the calls to this subtemplate in {{votings}}, {{votings/head}}, and {{votings/tail}}.
上述文档嵌入自Template:Votings/select/doc。 (编辑 | 历史) 编者可以在本模板的沙盒 (创建 | 镜像)和测试样例 (创建)页面进行实验。 请在/doc子页面中添加分类。 本模板的子页面。 |