模板:Navbox top/doc

来自决策链云智库
< 模板:Navbox top
Zeroclanzhang讨论 | 贡献2024年1月16日 (二) 17:27的版本 (创建页面,内容为“{{Documentation subpage}} {{High-use}} {{Lua|Module:Navbox top and bottom}} <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> This template may be used for embedding wikitables (or other difficult to embed content) inside of navboxes. == Usage == The syntax is the same syntax used for {{tl|navbox}} with the table placed between the {{tld|navbox top}} and {{tld|navbox bottom}} templates. Any content that would normal…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

This template may be used for embedding wikitables (or other difficult to embed content) inside of navboxes.

Usage

The syntax is the same syntax used for {{navbox}} with the table placed between the {{navbox top}} and {{navbox bottom}} templates. Any content that would normally appear before the first list (list1) should be passed to the top template, and any content that would normally appear after the first list (list1) should be passed to the bottom template. Any content passed through |list1= is ignored.

Examples

Simple example

{{navbox top
| name = {{subst:PAGENAME}}
| title = Title
| state = {{{state|}}}
| above = Above
}}
{| style="width:100%" class="wraplinks"
! Header1
! Header2
|-
| Item 1
| Item 2
|}
{{navbox bottom|below=Below}}

Scrolling table

{{navbox top
| name = {{subst:PAGENAME}}
| title = Title
| above = Above
| state = {{{state|}}}
| innerstyle = table-layout:fixed
}}<div style="overflow:auto">
{| style="width:100%;min-width:150em" class="wraplinks"
! Header1
! Header2
|-
| Item 1
| Item 2
|}</div>
{{navbox bottom|below=Below}}