Template:PCB Picture: Difference between revisions
From OpenGK
No edit summary |
No edit summary |
||
| Line 3: | Line 3: | ||
{{#if: labeled_filename | | {{#if: {{{labeled_filename}}} | [[Link: File:{{{original_filename}}} ]] |}} | ||
[[File:{{{original_filename}}}|border|none|thumb|1175x1175px]] | [[File:{{{labeled_filename|original_filename}}}|border|none|thumb|1175x1175px]] | ||
<noinclude> | <noinclude> | ||
| Line 31: | Line 31: | ||
"type": "wiki-file-name", | "type": "wiki-file-name", | ||
"required": true | "required": true | ||
}, | |||
"labeled_filename": { | |||
"description": "Filename of the modified picture with labels", | |||
"example": "SIMK43_5WY1919B_front_side_labeled.jpg", | |||
"type": "wiki-file-name" | |||
} | } | ||
}, | }, | ||
| Line 36: | Line 41: | ||
"side", | "side", | ||
"title", | "title", | ||
"original_filename" | "original_filename", | ||
"labeled_filename" | |||
] | ] | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> | ||
Revision as of 21:28, 11 June 2025
PCB picture
[[Link: File:{{{original_filename}}} ]]
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| side | side | Side of PCB in the picture. If not provided, `title` has to be filled in
| String | suggested |
| title | title | If set, this property will overwrite the header
| String | optional |
| original_filename | original_filename | Filename of the image to display. If you also have a separate image with labeled components, use `filename_labeled` **additionally**. `original_filename` will then allow to go to the unaltered picture
| File | required |
| labeled_filename | labeled_filename | Filename of the modified picture with labels
| File | optional |
