Template:FigTitle: Difference between revisions

From Electrical Installation Guide
(copied from FR-wiki - template to standardize formatting of figure titles)
 
m (Protected "Template:FigTitle" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if: {{{2|}}} |<p class="figure-title" style="font-size:14px">{{#if: {{{1|}}} |'''''{{mediawiki:figure-acronym}} {{{1}}}''''':&nbsp;|}}''{{{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>

Latest revision as of 22:32, 22 December 2019


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

Template parameters

ParameterDescriptionTypeStatus
Figure Numbernum 1

no description

Example
F12
Unknownsuggested
Figure Titletitle 2

no description

Example
This is a figure title
Stringsuggested