模板:Infobox tabber

来自决策链云智库
Zeroclanzhang讨论 | 贡献2023年7月14日 (五) 17:15的版本 (创建页面,内容为“<!-- Don't run if there is no label -->{{#if:{{{label1|}}} |{{#tag:tabber|{{#vardefine:i|1}}{{#while: |{{{label{{#var:i}}|}}} |{{!}}-{{!}}{{{label{{#var:i}}}}}={{{data{{#var:i}}}}}{{#vardefine:i|{{#expr:{{#var:i}}+ 1}}}} }}}} }}<templatestyles src="Template:Infobox tabber/styles.css" /><noinclude> {{/doc}} <!-- Categories go in the /doc subpage, and interwikis go in Wikidata. --> </noinclude>”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{Infobox tabber}} implements the <tabber> tag from Extension:TabberNeue for infobox usage only. It includes additional styling needed for infobox.

Usage

{{Infobox tabber
|label1 = Tab Title A
|data1 = Tab content A goes here.
|label2 = Tab Title B
|data2 = Tab content B goes here.
|label3 = Tab Title C
|data3 = Tab content C goes here.
|label4 = Tab Title D
|data4 = Tab content D goes here.
|label5 = Tab Title E
|data5 = Tab content E goes here.
}}

gives

Tab content A goes here.

Tab content B goes here.

Tab content C goes here.

Tab content D goes here.

Tab content E goes here.