Şablon:Navigation tabs

Vikipediya, açıq ensiklopediya - ویکیپدیا ، آچیق انسایکلوپدیا

This template employs intricate features of template syntax.
Please do not alter it unless you understand its setup and parser functions and are ready to repair or revert all collateral damage if results are unexpected.
Any experiments should be conducted and all improvements tested in either the template sandbox or your user space before changing anything here.

Mündəricat

[redaktə / تحریر] Usage

You may use between 1 and 10 tabs. This template should be a nested template (like most Navigation templates). That is, you should create a template and use this template within it to make a Navigation box. For example, if we had a template called '''{{Earth Continents}}''', when placed on a page, the code would look like:

[redaktə / تحریر] Page code

{{Earth Continents|selected=Europe}}

[redaktə / تحریر] Template code

The code at the template would look like:

{{Navigation tabs
| template=Earth continents
| selected={{{selected}}}
| title=[[Country|Countries]] of the [[World]]
| tab1=[[Antarctica]]
| body1=Countries in Antarctica
| tab2=[[Africa]]
| body2=Countries in Africa
| tab3=[[Asia]]
| body3=Countries in Asia
| tab4=[[Australia]]
| body4=Countries in Australia
| tab5=[[Europe]]
| body5=Countries in Europe
| tab6=[[North America]]
| body6=Countries in North America
| tab7=[[South America]]
| body7=Countries in South America
}}

[redaktə / تحریر] Which produces

Countries of the World
v  d  e


[redaktə / تحریر] Optional parameters

[redaktə / تحریر] Code

{{Navigation tabs
| template=Americas
| title=The Americas
| width=400px
| colorback=yellow
| colorborder=black
| colortabsoff=orange
| colortop=limegreen
| selected=[[North America]]
| tab1=[[North America]]
| body1=Countries in North America
| tab2=[[South America]]
| body2=Countries in South America
}}

[redaktə / تحریر] Which produces

Which yes, is ugly, but you can be creative.

The Americas
v  d  e
Başqa dillərdə