"Şablon:Metakutu" sayfasının sürümleri arasındaki fark
(Yeni sayfa: "<includeonly><div id="mc{{{id|0}}}" class="mc{{{color|Lila}}}"> <div> {{#if:{{{bt1|}}}|<div id="mc{{{id|0}}}bt1" {{#ifexpr: {{{sel|0}}}=1 | class="mcBotoSel" | class="mcBoto" }}>{{{...") |
|||
29. satır: | 29. satır: | ||
</div>}}</div></div></includeonly> | </div>}}</div></div></includeonly> | ||
<noinclude> | <noinclude> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Kullanma talimatı == | == Kullanma talimatı == |
15.09, 22 Kasım 2016 itibarı ile sayfanın şu anki hâli
İçindekiler
Kullanma talimatı
Kod örneği
{{Metakutu |id=0 |color=Taronja |bt1=1'nci sayfa düğmesi/Başlık |bt2=2'nci sayfa düğmesi/Başlık |bt3=3'ncü sayfa düğmesi/Başlık |bticona1=[[Resim:Nuvola_apps_kuickshow.png|16px]] |bticona3=[[Resim:Nuvola_apps_kuickshow.png|16px]] |ps1=1'nci sayfa/içerik |ps2=2'nci sayfa/içerik |ps3=3'ncü sayfa/içerik |sel=2 }}
Netice
2'nci sayfa/içerik
How can I include this Template in my wiki?
- First of all, you must be sysop or you must apply help to a sysop, in order to edit MediaWiki pages.
- Your wiki must support ParserFunctions (Parser Functions work well in all Wikimedia Fundation Projects)
- Copy this Template to your Wikipedia or other project and adapt it into your language ("Metacaixa" can be translated to "Metabox" in English).
- In order to see this Template, you must copy style section from MediaWiki:Common.css. Copy from /*HERE STARTS "METABOX" COLOUR-SCHEMES*/ to /*HERE FINISHES "METABOX" COLOUR-SCHEMES*/. These codes are ranges of colours used in Metaboxes. For the moment, there are 6 ranges available: "Lila" means "Lilac" (this colour is by default), "Verd" means "Green", "Vermell" means "Red", "Blau" means "Blue", "Groc" means "Yellow" and "Taronja" means "Orange"; but you can create new ranges with adapting current range codes with new colour shades.
- So that this template can work, you must copy also working-code section from MediaWiki:Common.js. Copy from /*HERE STARTS THE WORKING-CODE OF "METABOXES"*/ to /*HERE FINISHES THE WORKING-CODE OF "METABOXES"*/.
- Then, adapt codes into your language. Here below you can find possible translations in English of variable codes in Catalan.
Possible translations in English of variable codes
- mcBotoSel = mbButtonSel (metabox button selected)
- mcBoto = mbButton (Metabox button)
- MetaCaixaInit = MetaBoxInit (Metabox initiating)
- vMc = vMb (variable metabox)
- vPsIni = vTabIni (variable tab initiating)
- vBt = vBt (variable button)
- mc = mb (metabox)
- bt = bt (button)
- MetaCaixaMostraPestanya = MetaBoxShowTab
- psini = tabini (tab initiating)
- vMcNom = vMbName (variable metabox name)
- vIndex = vIndex (variable index)
- vPsElem = vTabItem (variable tab items)
- mcContingut = mbContent
- mcPestanya = mbTab
- mcLila = mbLilac
- mcVerd = mbGreen
- mcVermell = mbRed
- mcBlau = mbBlue
- mcGroc = mbYellow
- mcTaronja = mbOrange
- bticona = bticon (button icon)
- sel = sel (selected)