- 致编者:请牢记我们的域名wiki.mcbe-dev.net!
- 致编者:欢迎加入本Wiki的官方交流QQ群或Discord服务器!
- 基岩版1.19.31现已发布!(了解更多)
- Inner Core现已支持Xbox模组联机!(了解更多)
- 如果您是第一次来到本Wiki,欢迎注册一个账户
- 点击顶部的“编辑”或“编辑源代码”按钮即可编辑当前页面
- 请知悉:在不登录时也可以编辑和新建页面,但是您当前的IP地址会记录在编辑历史中
Template:Flatlist/doc
此模板使用了如下模板样式:
|
This template provides a WCAG/ISO-standards-compliant accessible alternative to comma or dash (or other single character) separated lists.
Usage[编辑]
{{flatlist}}
starts a horizontal list, such as:
- cat
- dog
- horse
- cow
- sheep
- pig
Parameters[编辑]
Used to create plain (i.e. unbulleted) lists.
参数 | 描述 | 类型 | 状态 | |
---|---|---|---|---|
Extra Classes | class | Adds extra CSS classes to the containing div. | 字符串 | 可选 |
CSS Style | style | Adds extra CSS properties to the containing div.
| 字符串 | 可选 |
Indent | indent | Indents the list by a number of standard indents (one indent being 1.6em), particularly handy for inclusion in an indented discussion thread.
| 数字 | 可选 |
Content | 1 | The list to wrap. | 内容 | 推荐 |
Examples[编辑]
{{flatlist|
* cat
* dog
* horse
* cow
* sheep
* pig
}}
produces:
- cat
- dog
- horse
- cow
- sheep
- pig
Syntax for ordered lists[编辑]
{{flatlist| # first # second # third # fourth # fifth # sixth }}
produces:
- first
- second
- third
- fourth
- fifth
- sixth
Using optional parameters[编辑]
{{flatlist |indent=2
|style=border:solid 1px silver; background:lightyellow;
|class=nowraplinks |
* Alpine skiing at the 1936 Winter Olympics
* Alpine skiing at the 1948 Winter Olympics
* Alpine skiing at the 1952 Winter Olympics
* Alpine skiing at the 1956 Winter Olympics
* Alpine skiing at the 1960 Winter Olympics
* Alpine skiing at the 1964 Winter Olympics
}}
produces:
- Alpine skiing at the 1936 Winter Olympics
- Alpine skiing at the 1948 Winter Olympics
- Alpine skiing at the 1952 Winter Olympics
- Alpine skiing at the 1956 Winter Olympics
- Alpine skiing at the 1960 Winter Olympics
- Alpine skiing at the 1964 Winter Olympics
Technical details[编辑]
This template uses the .hlist
CSS class defined in the TemplateStyles to generate horizontal lists. It causes ordinary HTML list items to be displayed inline (horizontally), where they would normally display as block elements (vertically). The class also generates the interpuncts between list items and parentheses around nested lists.
Wikitext | Expanded template | HTML |
---|---|---|
{{flatlist| * cat * dog * horse * cow * sheep * pig }} |
<div class="hlist " > * cat * dog * horse * cow * sheep * pig</div> |
<div class="hlist">
<ul><li>cat</li>
<li>dog</li>
<li>horse</li>
<li>cow</li>
<li>sheep</li>
<li>pig</li></ul>
</div>
|
See also[编辑]
{{multi-column numbered list}}
{{nowrap}}
{{pagelist}}
{{Hlist}}
– Uses Module:List- Template:Ll
另见
- Minecraft
{{navbox Bedrock Edition version}}
{{navbox block}}
{{Gameplay}}
{{Minecraft}}
{{Unused Features}}
- 软件
{{navbox software}}
{{navbox server side}}
{{Mod}}
- 格式
{{ModFormat}}
{{PluginFormat}}
- 技术性
- 其他
{{Developers}}
{{Documentations}}
{{Help}}
{{SimpleNavbox}}
{{Navbox}}
- Module:Navbox