« Modèle:Tb-start » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
Aucun résumé des modifications
 
(Remove SMW has_chapter_letter)
 
(Une version intermédiaire par un autre utilisateur non affichée)
Ligne 1 : Ligne 1 :
<includeonly>{{#if: {{{3|{{{id|}}}}}} |[[has_table_id::{{{3|{{{id|}}}}}}| ]]}}<div class="table-title {{#if: {{{4|{{{cols|}}}}}} | {{#switch: {{{4|{{{cols|}}}}}} | 2 = cols-2 | 3 = cols-3 | 4 = cols-4 | 5 = cols-5 | #default = cols-4}}}} {{#ifeq: {{{2|{{{title|+}}}}}} | {{{2|{{{title|-}}}}}}||no-title}}" {{#if: {{{3|{{{id|}}}}}} | id="{{{3|{{{id|}}}}}}"}}>{{#if: {{{2|{{{title|}}}}}} | {{Title|prefix={{txt-fig-acronym}}|num={{{1|{{{num|}}}}}}|title={{{2|{{{title|}}}}}}}} }}</div></includeonly><noinclude>
<includeonly><div class="table-title {{#if: {{{4|{{{cols|}}}}}} | {{#switch: {{{4|{{{cols|}}}}}} | 2 = cols-2 | 3 = cols-3 | 4 = cols-4 | 5 = cols-5 | #default = cols-4}}}} {{#ifeq: {{{2|{{{title|+}}}}}} | {{{2|{{{title|-}}}}}}||no-title}}" {{#if: {{{3|{{{id|}}}}}} | id="{{{3|{{{id|}}}}}}"}}>{{#if: {{{2|{{{title|}}}}}} | {{Title|prefix={{txt-fig-acronym}}|num={{{1|{{{num|}}}}}}|title={{{2|{{{title|}}}}}}}} }}</div></includeonly><noinclude>





Dernière version du 2 septembre 2025 à 14:10


Description

Template to add at the beginning of a table (just before the table). It defines its ID, optionally its standardized max-width, its figure number and figure title It calls the template {{Title}}, which requires one extra parameter = the prefix to add before the figure num (= the figure acronym, defined in another template)

Paramètres du modèle

ParamètreDescriptionTypeÉtat
Figure/table Numbernum 1

aucune description

Exemple
F12
Inconnusuggéré
Figure Titletitle 2

aucune description

Exemple
This is a figure title
Chaînesuggéré
Table IDid 3

aucune description

Exemple
Tab1127
Chaînesuggéré
Table standard max width, from 2 to 5cols 4

aucune description

Exemple
4
Chaînesuggéré