Template:FigImage: Difference between revisions
From Electrical Installation Guide
No edit summary |
Tag: Undo |
||
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>< | <includeonly><div id="{{{1|{{{id|}}}}}}" class="img_anchor">[[File:{{{1|{{{id|}}}}}}.{{{2|{{{ext|}}}}}}|frame|none|{{FigNotes|{{{5|{{{notes|}}}}}}}}{{FigTitle|{{{3|{{{num|}}}}}}|{{{4|{{{title|}}}}}}}}]]</div>{{#if: {{{1|{{{id|}}}}}} |[[has_figure_id::{{{1|{{{id|}}}}}}| ]]}}</includeonly><noinclude> | ||
[[File:{{{1|}}}.{{{2|}}}|frame|none|{{FigNotes|{{{5|}}}}}{{FigTitle|{{{3 | |||
[[Category: | [[Category:eig-image-templates|{{PAGENAME}}]] | ||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "ID", | |||
"description": "image \"id\" (file name without the file extension)", | |||
"example": "DB422001", | |||
"type": "string", | |||
"required": true, | |||
"aliases": [ | |||
"id" | |||
] | |||
}, | |||
"2": { | |||
"label": "Extension", | |||
"description": "image file extension (without the .)", | |||
"example": "svg, jpg ...", | |||
"type": "string", | |||
"required": true, | |||
"aliases": [ | |||
"ext" | |||
] | |||
}, | |||
"3": { | |||
"label": "Number", | |||
"description": "Figure number", | |||
"example": "A11, B42a ...", | |||
"type": "string", | |||
"required": true, | |||
"aliases": [ | |||
"num" | |||
] | |||
}, | |||
"4": { | |||
"label": "Title", | |||
"description": "Figure title", | |||
"example": "Application of the diversity factor (ks) to an apartment block of 5 storeys", | |||
"type": "string", | |||
"required": true, | |||
"aliases": [ | |||
"title" | |||
] | |||
}, | |||
"5": { | |||
"label": "Figure Notes", | |||
"description": "will be added after the figure, with special class and special formatting", | |||
"type": "unbalanced-wikitext", | |||
"aliases": [ | |||
"notes" | |||
] | |||
}, | |||
"6": { | |||
"label": "Optional", | |||
"example": "can be like \"600px\"", | |||
"type": "unbalanced-wikitext" | |||
} | |||
}, | |||
"description": "This template is used to integrate a vectorial or bitmap image in a wiki page, as a Figure, eg image in a frame + fignum + title + (optionally) some figure notes" | |||
} | |||
</templatedata> | |||
</noinclude> | </noinclude> |
Latest revision as of 12:39, 26 August 2021
This template is used to integrate a vectorial or bitmap image in a wiki page, as a Figure, eg image in a frame + fignum + title + (optionally) some figure notes
Parameter | Description | Type | Status | |
---|---|---|---|---|
ID | 1 id | image "id" (file name without the file extension)
| String | required |
Extension | 2 ext | image file extension (without the .)
| String | required |
Number | 3 num | Figure number
| String | required |
Title | 4 title | Figure title
| String | required |
Figure Notes | 5 notes | will be added after the figure, with special class and special formatting | Unbalanced wikitext | optional |
Optional | 6 | no description
| Unbalanced wikitext | optional |