Difference between revisions of "Template:Tab"

From EncyclopAtys

Jump to: navigation, search
(Parameters List)
Line 41: Line 41:
 
| round || Tab upper corners radius  
 
| round || Tab upper corners radius  
 
|-
 
|-
| bg_Tabs || Tab background|| rowspan="4" | Tab specific
+
| bg_Tabs || Tab background|| rowspan="5" | Tab specific
 
|-
 
|-
 
| Pic || Tab icon  
 
| Pic || Tab icon  
Line 53: Line 53:
 
| Example || Example || Example -->
 
| Example || Example || Example -->
 
|}
 
|}
 +
 
== Tabs code of this page ==
 
== Tabs code of this page ==
 
<syntaxhighlight lang="xml"> {{Tabs
 
<syntaxhighlight lang="xml"> {{Tabs

Revision as of 09:40, 25 November 2020

Tab#1: the Tabs TemplateThis tab is inactive Tab#1: the Tabs Template
This tab is inactive
 Tab#2 the Tab TemplateIt is the active tab Tab#2 the Tab Template
It is the active tab
de:Vorlage:Tabs
en:Template:Tabs
es:Plantilla:Tabs
fr:Modèle:Tabs
ru:Шаблон:Tabs
 
UnderConstruction.png
Translation to review
Don't blame the contributors, but come and help them 😎

Reference text ( Maintained text, used as reference ) :
Notes: (Dorothée, 2020-11-25)



This template is used by the Tabs template which assembles a set of tabs such as the ones on this same page. It seems useless to use it outside this context.


Parameters List

Parameter Effect Effect range
align_tab tab name text alignment common style parameters
blend  ?
bg_frame global frame background (i.e. page)
bord Tab border line syle
round Tab upper corners radius
bg_Tabs Tab background Tab specific
Pic Tab icon
preums  ?
Tab Tab name
URL Tab url

Tabs code of this page

 {{Tabs
|bord=2px solid #{{ColorAtys|type=dark|group=tryker}}
|bg_frame=#{{ColorAtys|type=bg|group=fyros}}         <——— note the colour change to be compatble with the tabs choices 
|round=5em
|align_tab=center
<!--  -->
|Tab-1={{3DText|text='''Tab#1: the Tabs Template'''<br />This tab is ''inactive''}}          <———passed from "Tabs" template to "Tab" template
|URL-1=Template:Tabs 
|bg_Tab-1=#{{ColorAtys|type=light|group=tryker}}
|Pic-1=dummy.png 
<!--  -->
|Tab-2={{3DText|text='''''Tab#2 the Tab Template''<br />It is the ''active'' tab'''}}          <———passed from "Tabs" template to "Tab" template
|URL-2=Template:Tab
|bg_Tab-2=#{{ColorAtys|type=light|group=fyros}}
|Pic-2=UnderConstruction.png
}}