Difference between revisions of "Template:Tabs/doc"

From Moegirlpedia
Jump to: navigation, search
(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:
{{NeedsTranslating}}
 
 
 
<pre><nowiki>
 
<pre><nowiki>
 
{{tabs
 
{{tabs
Line 34: Line 32:
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
There must be one tabs or it can not work
+
 
=== 參數 ===
+
There must be at least one tab or it can not work.
 +
 
 +
=== Parameters ===
 
x=number 1-∞
 
x=number 1-∞
*# color= only can set 7 colors and one topic
+
* General
*#* green(綠色)
+
*# color= , only can set 7 colors and one default theme.
*#* red(紅色)
+
*#* green
*#* blue(藍色)
+
*#* red
*#* yellow(黃色)
+
*#* blue
*#* purple(紫色)
+
*#* yellow
*#* orange(橙色)
+
*#* purple
*#* black(黑色,default)
+
*#* orange
*# DefaultTab:指定页面加载时显示第几个tab,默认值为<code>1</code>
+
*#* black (default)
*# LabelPadding:指定label的内边距,默认值为<code>2px</code>
+
*# DefaultTab: Specify which tab is displayed when the page loads, the default value is <code>1</code>;
*# LabelBorderColor:指定选中的label的左右边框颜色,默认值为<code>#aaa</code>
+
*# LabelPadding: Specify the inner margin of the label, the default value is <code>2px</code>;
*# LabelBackgroundColor:指定选中的label的背景色,默认值为<code>white</code>
+
*# LabelBorderColor: Specify the left and right border color of the selected label, the default value is <code>#aaa</code>;
*# LabelColor:指定选中的label的上边框颜色,默认值为<code>green</code>
+
*# LabelBackgroundColor: Specify the background color of the selected label, the default value is <code>white</code>;
*# TextBorderColor:指定显示的text的边框颜色,默认值为<code>#aaa</code>
+
*# LabelColor: Specify the upper border color of the selected label, the default value is <code>green</code>;
*# TextBackgroundColor:指定显示的text的背景色,默认值为<code>white</code>
+
*# TextBorderColor: Specify the border color of the displayed text, the default value is <code>#aaa</code>;
*# TextPadding:指定显示的text的内边距,默认值为<code>20px 30px</code>
+
*# TextBackgroundColor: Specify the background color of the displayed text, the default value is <code>white</code>;
*# AutoWidth:使tabs不再占满整行,<span style="color:red;">如要启用必须传入【yes】值</span>,默认值为<code>no</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>= ,分頁名稱左邊的標誌,可填寫文字或者圖片,預設為沒有標誌。圖片大小建議16px。若不使用,請不要使用這個參數。
+
** 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
    1. color= , only can set 7 colors and one default theme.
      • green
      • red
      • blue
      • yellow
      • purple
      • orange
      • black (default)
    2. DefaultTab: Specify which tab is displayed when the page loads, the default value is 1;
    3. LabelPadding: Specify the inner margin of the label, the default value is 2px;
    4. LabelBorderColor: Specify the left and right border color of the selected label, the default value is #aaa;
    5. LabelBackgroundColor: Specify the background color of the selected label, the default value is white;
    6. LabelColor: Specify the upper border color of the selected label, the default value is green;
    7. TextBorderColor: Specify the border color of the displayed text, the default value is #aaa;
    8. TextBackgroundColor: Specify the background color of the displayed text, the default value is white;
    9. TextPadding: Specify the inner margin of the displayed text, the default value is 20px 30px;
    10. 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.
  • 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.