ഫലകം:Metacaixa
Utilització
Plantilla pensada per a usar-la en l'espai de noms Viquipèdia, Ajuda, Usuaris i Portals. Es prega no usar-la en els articles i en les categories.
Permet incloure metacaixes (vegeu la Portada), amb una pestanya preseleccionada. Per a pestanyes aleatòries, cal usar la plantilla {{MetacaixaAleatoria}}.
Caldrà crear subpàgines per a cada combinació de pestanyes existent, per a permetre que la metacaixa sigui funcional per als navegadors que no disposen de JavaScript.
Parameters;
id -> box id (0 to 9, default=0), must be unique and correlative within a page it is not necessary to fill it if we only have one meta box on the page bticona1 -> If you want to put an icon in front of the label button 1 bticona2 -> If you want to put an icon in front of the label button 2 ... bticona9 -> If you want to put an icon in front of the label button 9 bt1 -> Label button 1 bt2 -> Tag button 2 ... bt9 -> Etiqueta botó 9 ps1 -> Content tab 1 ps2 -> Content tab 2 ... ps9 -> Content tab 9 sel -> Selected tab, 1 to 9 to show one by default 0 or no fill parameter to change the tab randomly every time the page is loaded. color -> "Green", "Red", "Blue", "Yellow", "Purple" or "Orange" for now (if left blank it will be purple) PageName -> Allows us to redirect tabs to a URL for browsers without JavaScript urlPrev -> Allows us to redirect tabs to a URL for browsers without JavaScript urlPost -> Allows us to redirect tabs to a URL for browsers without JavaScript
Codi d'exemple
{{Metacaixa
|id=0
|color=Taronja
|bt1=1 d'abril
|bt2=2 d'abril
|bt3=Altres
|bticona1=[[Image:Nuvola_apps_kuickshow.png|16px]]
|bticona3=[[Image:Nuvola_apps_kuickshow.png|16px]]
|ps1={{Abril 1}}
|ps2={{Abril 2}}
|ps3=Bla, bla, bla, bla, bla, bla, bla, bla, bla
|sel=2
}}
Resultat
പച്ച
ചുവപ്പ്
നീല
മഞ്ഞ
ഓറഞ്ച്
Taronja {{Metacaixa |id=5 |color=Taronja |bt1=1 d'abril |bt2=2 d'abril |bt3=Altres |bticona1=[[Image:Nuvola_apps_kuickshow.png|16px]] |bticona3=[[Image:Nuvola_apps_kuickshow.png|16px]] |ps1={{History/മേയ് 1}} |ps2={{History/മേയ് 2}} |ps3=*Bla, bla, bla, bla, bla, bla, bla, bla, bla |sel=2 }}
Com incloure aquesta plantilla en altres wikis
- Cal que el vostre wiki suporti les ParserFunctions (Funcionen en tots els projectes de a fundació wikimedia).
- Cal que copieu aquesta plantila a la vostra viquipèdia
- Per a veure-la correctament, cal que copieu la secció dels estils de MediaWiki:Common.css corresponent a la Plantilla:MetaCaixa
- Per a que funcioni, cal també copiar la secció corresponent de MediaWiki:Common.js.
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
- mcപച്ച = mbGreen
- mcചുവപ്പ് = mbRed
- mcനീല = mbBlue
- mcമഞ്ഞ = mbYellow
- mcഓറഞ്ച് = mbOrange
- bticona = bticon (button icon)
- sel = sel (selected)
| Editing of this template by new or unregistered users is currently disabled. See the protection policy and protection log for more details. If you cannot edit this template and you wish to make a change, you can submit an edit request, discuss changes on the talk page, request unprotection, log in, or create an account. |
ദയവായി വർഗ്ഗങ്ങളും ബഹുഭാഷാകണ്ണികളും /വിവരണം ഉപതാളിൽ മാത്രം ഇടുക. ഈ ഫലകത്തിന്റെ ഉപതാളുകൾ.