ထႅမ်းပလဵတ်ႉ:Htab-box/doc
ဢၼ်ၼႆႉပဵၼ် ၽိုၼ်ၵႅမ်မိုဝ်း ၽႄ တွၼ်ႈတႃႇ ထႅမ်းပလဵတ်ႉ:Htab-box (တူၺ်းၼႃႈလိၵ်ႈၼၼ်ႉ တွၼ်ႈတႃႇ ထႅမ်းပလဵတ်ႉ တူဝ်မၼ်း)။ မၼ်းၶဝ်ႈပႃး လွၼ်ႉၶၢဝ်ႇ လွင်ႈၸႂ်ႉတိုဝ်း၊ ပိူင်ထၢၼ်ႈ လႄႈ လမၼ်းၼႂ်းတၢင်ႇၸိူဝ်း ဢၼ်ဢမ်ႇၸႂ်ႈ ပွတ်းတွၼ်ႈၶွင် ထႅမ်းပလဵတ်ႉ ၼႃႈလိၵ်ႈ ငဝ်ႈတိုၼ်းမၼ်း။ |
See also: {{Picture select}}
လွင်ႈၸႂ်ႉတိုဝ်း
မႄးထတ်း{{Htab-box|1= first tab some content |2= second tab some content [and so on...] }}
Tab titles
မႄးထတ်းYou can also use title<tab number>=foo to override the normal title. The way tab titles are figured out:
- The title<tab number>= parameter is looked at first. If its blank:
- We look for section headings. (
==something==
)- The biggest header there is used (
==A==
vs===B===
, A is used) - if there is a tie, first one we see is used
- Note: this means that any section headers are invisible when tabber is used (they are still visible to non-js users/when printed) use
<h2 style="display:block">something</h2>
if you want title to be visible regardless.
- Note: this means that any section headers are invisible when tabber is used (they are still visible to non-js users/when printed) use
- The biggest header there is used (
- As a last resort, The tabs are automatically numbered if no title can be found
Example using title<#>= parameter
{{Htab-box|1= <h2 style="display:block">first tab</h2> some content |title1=First box |2= <h2 style="display:block">second tab</h2> some content [and so on...] |title2=second box }}
Supports upto 11 tabs. Most common usage would be:
{{htab-box |{{Canada|orient=horiz}} |{{NAFTA infobox|orient=horiz}} }}
Replacing {{Canada|orient=horiz}} and {{NAFTA infobox|orient=horiz}} with appropriate infobox template names (look here for a more complete list).
caveats and bugs
မႄးထတ်း- Maximum 11 tabs (but if you need more, its a simple edit to this template)
- Tabs are not rounded in Internet Explorer and Opera. (This could be fixed by doing something messy with images. Tabs still look acceptable in my opinion)
- Titles:
- Assumes that your headline is a title of a tab, so doesn't display (this could be changed)
- use alternative syntax:
<h2 style="display:block">foo</h2>
(change the 2 to the number of equal signs you'd use in normal syntax)
- use alternative syntax:
- Assumes that your headline is a title of a tab, so doesn't display (this could be changed)
The max 11 tabs is a limit to this template, not the tab system, and can be expanded as needed. I don't consider that an issue. The tab title issues are problems with adapting the tabber code to the wiki. They require minor changes to js (I should get around to fixing them sometime soon). In the meanwhile i don't think it will be an issue.