Difference between revisions of "Template:Tabs/doc"
(Created page with "{{NeedsTranslating}} <pre><nowiki> {{tabs |color= |bt1= |bticon1= |tab1= |bt2= |bticon2= |tab2= |bt3= |bticon3= |tab3= |bt4= |bticon4= |tab4= |bt5= |bticon5= |tab5= |bt6= |bt...") |
(Translated) |
||
Line 1: | Line 1: | ||
− | |||
− | |||
<pre><nowiki> | <pre><nowiki> | ||
{{tabs | {{tabs | ||
Line 34: | Line 32: | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
− | There must be one | + | |
− | === | + | There must be at least one tab or it can not work. |
+ | |||
+ | === Parameters === | ||
x=number 1-∞ | x=number 1-∞ | ||
− | *# color= | + | * General |
− | *#* | + | *# color= , only can set 7 colors and one default theme. |
− | *#* | + | *#* green |
− | *#* | + | *#* red |
− | *#* | + | *#* blue |
− | *#* | + | *#* yellow |
− | *#* | + | *#* purple |
− | *#* | + | *#* orange |
− | *# | + | *#* black (default) |
− | *# | + | *# DefaultTab: Specify which tab is displayed when the page loads, the default value is <code>1</code>; |
− | *# | + | *# LabelPadding: Specify the inner margin of the label, the default value is <code>2px</code>; |
− | *# | + | *# LabelBorderColor: Specify the left and right border color of the selected label, the default value is <code>#aaa</code>; |
− | *# | + | *# LabelBackgroundColor: Specify the background color of the selected label, the default value is <code>white</code>; |
− | *# | + | *# LabelColor: Specify the upper border color of the selected label, the default value is <code>green</code>; |
− | *# | + | *# TextBorderColor: Specify the border color of the displayed text, the default value is <code>#aaa</code>; |
− | *# | + | *# TextBackgroundColor: Specify the background color of the displayed text, the default value is <code>white</code>; |
− | *# | + | *# TextPadding: Specify the inner margin of the displayed text, the default value is <code>20px 30px</code>; |
− | * | + | *# AutoWidth: Make tabs no longer occupy the entire line, <span style="color:red;">if you want to enable it, you must pass in [yes] value</span>, the default value is <code>no</code>. |
− | ** bt<sub>x</sub>= | + | * Outcome |
− | ** bticon<sub>x</sub>= | + | ** bt<sub>x</sub>= , fill in the name of the displayed page. ('''Required''') |
− | ** tab<sub>x</sub>= | + | ** bticon<sub>x</sub>= , The logo on the left of the page name. It can be a text or a picture. The default is no logo. The recommended image size is 16px. If you don't show a logo, then don't use this parameter. |
+ | ** tab<sub>x</sub>= , the content of a page. |
Revision as of 09:59, 13 August 2020
{{tabs |color= |bt1= |bticon1= |tab1= |bt2= |bticon2= |tab2= |bt3= |bticon3= |tab3= |bt4= |bticon4= |tab4= |bt5= |bticon5= |tab5= |bt6= |bticon6= |tab6= |bt7= |bticon7= |tab7= |bt8= |bticon8= |tab8= |bt9= |bticon9= |tab9= |DefaultTab= }}
There must be at least one tab or it can not work.
Parameters
x=number 1-∞
- General
- color= , only can set 7 colors and one default theme.
- green
- red
- blue
- yellow
- purple
- orange
- black (default)
- DefaultTab: Specify which tab is displayed when the page loads, the default value is
1
; - LabelPadding: Specify the inner margin of the label, the default value is
2px
; - LabelBorderColor: Specify the left and right border color of the selected label, the default value is
#aaa
; - LabelBackgroundColor: Specify the background color of the selected label, the default value is
white
; - LabelColor: Specify the upper border color of the selected label, the default value is
green
; - TextBorderColor: Specify the border color of the displayed text, the default value is
#aaa
; - TextBackgroundColor: Specify the background color of the displayed text, the default value is
white
; - TextPadding: Specify the inner margin of the displayed text, the default value is
20px 30px
; - AutoWidth: Make tabs no longer occupy the entire line, if you want to enable it, you must pass in [yes] value, the default value is
no
.
- color= , only can set 7 colors and one default theme.
- Outcome
- btx= , fill in the name of the displayed page. (Required)
- bticonx= , The logo on the left of the page name. It can be a text or a picture. The default is no logo. The recommended image size is 16px. If you don't show a logo, then don't use this parameter.
- tabx= , the content of a page.