Difference between revisions of "Template:Tabs"
From EncyclopAtys
Line 33: | Line 33: | ||
|Pic-1=dummy.png | |Pic-1=dummy.png | ||
− | |Tab-2={{3DText|text='''''Tab#2 | + | |Tab-2={{3DText|text='''''Tab#2: the Tab Template'''''<br />This tab is ''inactive''}} |
|URL-2=Template:Tab | |URL-2=Template:Tab | ||
|bg_Tab-2=#{{ColorAtys|type=light|group=fyros}} | |bg_Tab-2=#{{ColorAtys|type=light|group=fyros}} | ||
Line 46: | Line 46: | ||
<br /><!-- <span style="font: bold 5em Times New Roman, Times, Georgie, serif; color: crimson;">Ce texte est vert</span> --> | <br /><!-- <span style="font: bold 5em Times New Roman, Times, Georgie, serif; color: crimson;">Ce texte est vert</span> --> | ||
<br /> | <br /> | ||
− | {| class="wikitable" style="margin: auto; width: 100%; background-color:transparent; text-align:center;font: bold 2em serif;;" | + | <!-- {| class="wikitable" style="margin: auto; width: 100%; background-color:transparent; text-align:center;font: bold 2em serif;;" |
|- | |- | ||
| <span style="font: bold 2em serif; color: crimson;">↑</span> This is Tab#1 <span style="font: bold 2em serif; color: crimson;">↑</span> || <span style="font: bold 2em serif; color: crimson;">↑</span> This is Tab#2 <span style="font: bold 2em serif; color: crimson;">↑</span> | | <span style="font: bold 2em serif; color: crimson;">↑</span> This is Tab#1 <span style="font: bold 2em serif; color: crimson;">↑</span> || <span style="font: bold 2em serif; color: crimson;">↑</span> This is Tab#2 <span style="font: bold 2em serif; color: crimson;">↑</span> | ||
− | |} | + | |} --> |
:This template is designed to assemble a set of tabs (10 max) such as the ones on this same page. Lets explain how it works on this example. It uses the [[:Template:Tab|Tab "sub"-template]]. | :This template is designed to assemble a set of tabs (10 max) such as the ones on this same page. Lets explain how it works on this example. It uses the [[:Template:Tab|Tab "sub"-template]]. | ||
==Tabs code== | ==Tabs code== | ||
Line 58: | Line 58: | ||
|align_tab=center | |align_tab=center | ||
<!-- --> | <!-- --> | ||
− | |Tab-1={{3DText|text='''Tab#1 the Tabs Template'''}} | + | |Tab-1={{3DText|text='''Tab#1 the Tabs Template<br />It is the ''active'' tab'''}} |
|URL-1=Template:Tabs | |URL-1=Template:Tabs | ||
|bg_Tab-1=#{{ColorAtys|type=light|group=tryker}} | |bg_Tab-1=#{{ColorAtys|type=light|group=tryker}} | ||
|Pic-1=dummy.png | |Pic-1=dummy.png | ||
<!-- --> | <!-- --> | ||
− | |Tab-2={{3DText|text='''''Tab#2 the Tab Template'''''}} | + | |Tab-2={{3DText|text='''''Tab#2: the Tab Template'''''<br />This tab is ''inactive''}} |
|URL-2=Template:Tab | |URL-2=Template:Tab | ||
|bg_Tab-2=#{{ColorAtys|type=light|group=fyros}} | |bg_Tab-2=#{{ColorAtys|type=light|group=fyros}} | ||
Line 85: | Line 85: | ||
| <code><nowiki><!-- --></nowiki></code> || empty comment (used as separator) || to make the code easier to read | | <code><nowiki><!-- --></nowiki></code> || empty comment (used as separator) || to make the code easier to read | ||
|- | |- | ||
− | | <code><nowiki>|Tab-1={{3DText|text='''Tab#1 the Tabs Template'''}}</nowiki></code> || Tab name || rowspan="4"|This single tab<br /><small>Note that the parameters are numbered. You can have up to 10 tabs as this one.</small> | + | | <code><nowiki>|Tab-1={{3DText|text='''Tab#1 the Tabs Template<br />It is the ''active'' tab'''}}</nowiki></code> || Tab name || rowspan="4"|This single tab<br /><small>Note that the parameters are numbered. You can have up to 10 tabs as this one.</small> |
|- | |- | ||
| <code><nowiki>|URL-1=Template:Tabs</nowiki></code> || The url of the page in which the tab is "active".<br /> The url is the one of the actual page, the tab is "active", thus its background is the page body one. | | <code><nowiki>|URL-1=Template:Tabs</nowiki></code> || The url of the page in which the tab is "active".<br /> The url is the one of the actual page, the tab is "active", thus its background is the page body one. | ||
Line 95: | Line 95: | ||
| <code><nowiki><!-- --></nowiki></code> || separator || to make the code easier to read | | <code><nowiki><!-- --></nowiki></code> || separator || to make the code easier to read | ||
|- | |- | ||
− | | <code><nowiki>|Tab-2={{3DText|text='''''Tab#2 the Tab Template'''''}}</nowiki></code> || Second tab title. || rowspan="4"|This single tab | + | | <code><nowiki>|Tab-2={{3DText|text='''''Tab#2: the Tab Template'''''<br />This tab is ''inactive''}}</nowiki></code> || Second tab title. || rowspan="4"|This single tab |
|- | |- | ||
| <code><nowiki>|URL-2=Template:Tab</nowiki></code> || This page is not the actual page, the tab is "inactive"<br /> "Inactive" tabs are separated from the page body by an horizontal line. | | <code><nowiki>|URL-2=Template:Tab</nowiki></code> || This page is not the actual page, the tab is "inactive"<br /> "Inactive" tabs are separated from the page body by an horizontal line. |
Revision as of 20:28, 7 November 2020
Tab#1: the Tabs Template It is the active tab | Tab#2: the Tab Template This tab is inactive |