模块:Portal bar/doc

来自决策链云智库
< 模块:Portal bar
Zeroclanzhang讨论 | 贡献2024年1月20日 (六) 19:59的版本 (创建页面,内容为“{{Sandbox other||{{module rating|protected}} {{High-use}}}} {{Lua|Module:Portal|Module:Yesno|Module:Arguments}} {{Uses TemplateStyles|Module:Portal bar/styles.css}} This module implements the {{tl|portal bar}} template. It displays a horizontal bar of portals. See here and here for testcases. '''Note''': in order to make the test cases work, the Sandbox CSS classes…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

这是模块:Portal bar的文档页面

Lua错误 在模块:TNT的第167行:Missing Commons dataset I18n/Module:TNT.tab This module implements the {{portal bar}} template. It displays a horizontal bar of portals.

See here and here for testcases.

Note: in order to make the test cases work, the Sandbox CSS classes have "-sand" appended to their names. If you wish to update the CSS, copy the contents of each class from Module:Portal bar/sandbox/styles.css to Module:Portal bar/styles.css, but do not alter the class names, nor just copy-paste the entire CSS file. For the current difference in CSS between Sandbox and Main, see here.

Usage

{{#invoke:Portal bar|main|''portal 1''|''portal 2 ''|...|border=''no''}}
  • Positional parameters - the names of the portals to be displayed.
  • border - if |border= is equal to no, n, false, or 0, then the portal box will have no border.
  • redlinks - if |redlinks= is equal to yes, y, true or include, then the portal box will show redlinked portals

Examples

  • {{#invoke:portal bar|main|Visual arts|Science|Literature}}

Produces:

  • {{#invoke:portal bar|main|Visual arts|Science|Literature|border=no}}

Produces:

For further examples, see Template:Portal bar/testcases.

Images

This module uses Module:Portal to get portal images. To add, change, or remove images, please see the instructions at Module:Portal.