模板:Tabs/core

出自H萌娘
跳至導覽 跳至搜尋
Template-info.svg 模板文檔  [查看] [編輯] [歷史] [刷新]

參數列表[編輯原始碼]

  1. Theme:內置主題樣式:
    • green(綠色),
    • red(紅色),
    • blue(藍色),
    • yellow(黃色),
    • purple(紫色),
    • orange(橙色),
    • black(黑色);
  2. DefaultTab:指定頁面加載時顯示第幾個tab,默認值為1
  3. LabelPadding:指定label的內邊距,默認值為2px
  4. LabelBorderColor:指定選中的label的左右邊框顏色,默認值為#aaa
  5. LabelBackgroundColor:指定選中的label的背景色,默認值為white
  6. LabelColor:指定選中的label的上邊框顏色,默認值為green
  7. TextBorderColor:指定顯示的text的邊框顏色,默認值為#aaa
  8. TextBackgroundColor:指定顯示的text的背景色,默認值為white
  9. TextPadding:指定顯示的text的內邊距,默認值為20px 30px
  10. AutoWidth:使tabs不再占滿整行,如要啟用必須傳入【yes】值,默認值為no

一個例子[編輯原始碼]

{{tabs/core
|label1=Label 1
|text1=Text 1
|label2=Label 2
|text2=[[File:江泽民视察二院.jpg]]
|label3=Label 3
|text3={{膜蛤}}
|DefaultTab=2
|LabelPadding=1em
|LabelBorderColor=black
|LabelColor=blue
|TextPadding=1.5em
|TextBorderColor=black
|AutoWidth=yes
}}
Label 1

Text 1

Label 2

江澤民視察二院.jpg

Label 3