« Modèle:FigTitle » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
(added a span with class = figure-title and font size 14px)
m (1 révision importée : importer pages, templates etc de PPR-FR (X1))
 
(4 versions intermédiaires par 2 utilisateurs non affichées)
Ligne 1 : Ligne 1 :
<p class="figure-title" style="font-size:14px">{{#if: {{{1|}}} |'''''{{mediawiki:figure-acronym}} {{{1}}}'''''&nbsp;:&nbsp;|}}{{#if: {{{2|}}} |''{{{2|}}}''|}}</p><noinclude>
<includeonly><div class="figure-title">{{Title|prefix={{txt-fig-acronym}}|num={{{1|{{{num|}}}}}}|title={{{2|{{{title|}}}}}}}}</div></includeonly><noinclude>




[[Category:Utility templates|{{PAGENAME}}]]
[[Category:eig-image-templates|{{PAGENAME}}]]




== Description ==
<templatedata>
 
{
This template is used for table titles  (to simplify proper formatting / ensure coherence / be able to modify formatting in one single place)
"params": {
 
"num": {
The acronym used for "Fig." in local language is coming from system message mediawiki:figure-acronym (to be created / localized in new wikis)
"aliases": [
 
"1"
Arguments =  figure number (example = A12),  Figure title
],
"label": "Figure Number",
"example": "F12",
"suggested": true
},
"title": {
"aliases": [
"2"
],
"label": "Figure Title",
"example": "This is a figure title",
"type": "string",
"suggested": true
}
},
"description": "Template to add a FIGURE title (Fig. + figure num + title text) inside an image figure with title\n\nIt calls the template {{Title}}, adding one extra parameter = the prefix (\"Fig.\", coming from a mediawiki message) to add before the figure num"
}
</templatedata>
</noinclude>
</noinclude>

Dernière version du 20 mai 2020 à 12:53


Template to add a FIGURE title (Fig. + figure num + title text) inside an image figure with title It calls the template {{Title}}, adding one extra parameter = the prefix ("Fig.", coming from a mediawiki message) to add before the figure num

Paramètres du modèle

ParamètreDescriptionTypeÉtat
Figure Numbernum 1

aucune description

Exemple
F12
Inconnusuggéré
Figure Titletitle 2

aucune description

Exemple
This is a figure title
Chaînesuggéré