Difference between revisions of "Template:Tab"

From EncyclopAtys

Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#if:{{{preums|}}}||<td class="Tab" style="width: 2%; border-bottom: {{#if:{{{bord|}}}|{{{bord}}}|solid 2px #A3B1BF}}">&nbsp;</td>}}<td class="Tab {{#switch:{{{blend}}}|yes=blend|#default=}}" style="text-align: {{#if:{{{align_tab|}}}|{{{align_tab}}}|center}}; {{#if:{{{round|}}}|-moz-border-radius: {{{round}}} {{{round}}} 0 0; -webkit-border-radius: {{{round}}} {{{round}}} 0 0; border-radius: {{{round}}} {{{round}}} 0 0;}} padding:0.3em; border: {{#if:{{{bord|}}}|{{{bord}}}|solid 2px #A3B1BF}}; font-size: 110%; {{#ifeq:{{FULLPAGENAME}}|{{{URL}}}|background-color: {{#if:{{{bg_frame|}}}|{{{bg_frame}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{bg_Tabs|}}}|{{{bg_Tabs}}}|#CEE0F2}}; }}" width="{{#expr:(100/{{Nb_parm_def|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}})-2}}%">{{#if:{{{Pic|}}}|[[File:{{{Pic}}}|20px|{{{Tab}}}|link={{{URL}}}]]&nbsp;|}}{{#ifeq:{{{URLType|}}}|http|<span class="plainlinks noarchive">[{{{URL}}} {{{Tab}}}]</span>|[[{{{URL}}}|{{{Tab}}}]]}}</td></includeonly><noinclude>[[Category:Tab]]</noinclude><noinclude>
+
<includeonly>{{#if:{{{preums|}}}||<td class="Tab" style="width: 2%; border-bottom: {{#if:{{{bord|}}}|{{{bord}}}|solid 2px #A3B1BF}}">&nbsp;</td>}}<td class="Tab {{#switch:{{{blend}}}|yes=blend|#default=}}" style="text-align: {{#if:{{{align_tab|}}}|{{{align_tab}}}|center}}; {{#if:{{{round|}}}|-moz-border-radius: {{{round}}} {{{round}}} 0 0; -webkit-border-radius: {{{round}}} {{{round}}} 0 0; border-radius: {{{round}}} {{{round}}} 0 0;}} padding:0.3em; border: {{#if:{{{bord|}}}|{{{bord}}}|solid 2px #A3B1BF}}; font-size: 110%; {{#ifeq:{{FULLPAGENAME}}|{{{URL}}}|background-color: {{#if:{{{bg_frame|}}}|{{{bg_frame}}}|transparent}}; border-bottom: none; font-weight:bold; |background-color: {{#if:{{{bg_Tabs|}}}|{{{bg_Tabs}}}|#CEE0F2}}; }}" width="{{#expr:(100/{{Nb_parm_def|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8}}}|{{{9}}}|{{{10}}}}})-2}}%">{{#if:{{{Pic|}}}|[[File:{{{Pic}}}|20px|{{{Tab}}}|link={{{URL}}}]]&nbsp;|}}{{#ifeq:{{{URLType|}}}|http|<span class="plainlinks noarchive">[{{{URL}}} {{{Tab}}}]</span>|[[{{{URL}}}|{{{Tab}}}]]}}</td></includeonly>
{{Trad
+
<noinclude><!-- _______________________ Docs_______________________ -->{{Tabs
|DE=Template:Tab
+
|bord=2px solid #{{ColorAtys|type=dark|group=tryker}}
|EN=Template:Tab
+
|bg_frame=#{{ColorAtys|type=bg|group=fyros}}
|ES=Template:Tab
+
|round=5em
|FR=Modèle:Onglet
+
|align_tab=center
|RU=Template:Tab
+
<!--  -->
 +
|Tab-1={{3DText|text='''Tab#1: the Tabs 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'''''}}
 +
|URL-2=Template:Tab
 +
|bg_Tab-2=#{{ColorAtys|type=light|group=fyros}}
 +
|Pic-2=UnderConstruction.png
 +
}}{{Trad
 +
|DE=Vorlage:Tabs
 +
|EN=Template:Tabs
 +
|ES=Plantilla:Tabs
 +
|FR=Modèle:Début des onglets
 +
|RU=Шаблон:Tabs
 
}}
 
}}
[[Category:Template:Tab]]</noinclude>
+
<br />
 +
<br />
 +
:This template is used by the ''[[:Template:Tabs|Tabs template]]'' which assembles a set of tabs such as the ones on this same page.
 +
<br />
 +
==Parameters List==
 +
{| class="wikitable"
 +
|-
 +
! Header text !! Header text !! Header text
 +
|-
 +
| align_tab || tab name text alignment || rowspan="5" |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|| rowspan="4" | Tab specific
 +
|-
 +
| Pic || Tab icon
 +
|-
 +
| Tab || Tab name
 +
|-
 +
| URL || Tab url <!--
 +
|-
 +
| Example || Example || Example -->
 +
|}
 +
[[Category:Tab]][[Category:Template:Tab]]</noinclude>

Revision as of 18:15, 6 November 2020

Tab#1: the Tabs Template Tab#1: the Tabs Template Tab#2 the Tab Template Tab#2 the Tab Template
de:Vorlage:Tabs
en:Template:Tabs
es:Plantilla:Tabs
fr:Modèle:Début des onglets
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-06)



This template is used by the Tabs template which assembles a set of tabs such as the ones on this same page.


Parameters List

Header text Header text Header text
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
Tab Tab name
URL Tab url