Template:PCB Picture: Difference between revisions
From OpenGK
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
= {{#switch: {{{side}}} | front = Front side | back = Back side | label = Label | {{{title| PCB picture}}} }} = | = {{#switch: {{{side}}} | front = Front side | back = Back side | label = Label | {{{title| PCB picture}}} }} = | ||
[[File:{{{labeled_filename|original_filename}}}|thumb|1175x1175px]] | [[File:{{#if: {{{labeled_filename|}}} | {{{labeled_filename}}} | {{{original_filename}}} }}|thumb|1175x1175px|none]] | ||
{{#if: {{{labeled_filename|}}} | [[:File:{{{original_filename}}}|Click here to see the original picture]] |}} | {{#if: {{{labeled_filename|}}} | {{#if:{{{original_filename|}}} | [[:File:{{{original_filename}}}|Click here to see the original picture]] | [[Category:PCB layouts with missing original files]] }} |}} | ||
<noinclude> | <noinclude> | ||
| Line 27: | Line 27: | ||
"description": "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", | "description": "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", | ||
"example": "SIMK43_5WY1919B_front_side.jpg", | "example": "SIMK43_5WY1919B_front_side.jpg", | ||
"type": "wiki-file-name" | "type": "wiki-file-name" | ||
}, | }, | ||
"labeled_filename": { | "labeled_filename": { | ||
Latest revision as of 21:56, 11 June 2025
PCB picture
[[File:{{{original_filename}}}|thumb|1175x1175px|none]]
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 | optional |
| labeled_filename | labeled_filename | Filename of the modified picture with labels
| File | optional |
