Vorlage:FigTitle: Unterschied zwischen den Versionen

Aus Planungskompendium Energieverteilung
Wechseln zu:Navigation, Suche
(updated as EN wiki)
K (1 Version importiert: X1 import - exported page from PPR-EN)
 
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt)
Zeile 1: Zeile 1:
{{#if: {{{2|}}} |<p class="figure-title">{{#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>

Aktuelle Version vom 24. November 2021, 09:28 Uhr


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

Vorlagenparameter

ParameterBeschreibungTypStatus
Figure Numbernum 1

keine Beschreibung

Beispiel
F12
Unbekanntvorgeschlagen
Figure Titletitle 2

keine Beschreibung

Beispiel
This is a figure title
Mehrzeiliger Textvorgeschlagen