Template:PCB Picture: Difference between revisions

From OpenGK
No edit summary
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{if||side|  
= {{#switch: {{{side}}} | front = Front side | back = Back side | label = Label | {{{title| PCB picture}}} }} =
{{{side}}}  
 
| "title" }}
[[File:{{#if: {{{labeled_filename|}}} | {{{labeled_filename}}} | {{{original_filename}}} }}|thumb|1175x1175px|none]]
 
{{#if: {{{labeled_filename|}}} | {{#if:{{{original_filename|}}} | [[:File:{{{original_filename}}}|Click here to see the original picture]] | [[Category:PCB layouts with missing original files]] }} |}}
 
<noinclude>
<templatedata>
{
"params": {
"side": {
"description": "Side of PCB in the picture. If not provided, `title` has to be filled in",
"type": "string",
"suggestedvalues": [
"front",
"back",
"label"
],
"suggested": true
},
"title": {
"description": "If set, this property will overwrite the header",
"example": "PCB layout of the 95410-2C160",
"type": "string"
},
"original_filename": {
"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",
"type": "wiki-file-name"
},
"labeled_filename": {
"description": "Filename of the modified picture with labels",
"example": "SIMK43_5WY1919B_front_side_labeled.jpg",
"type": "wiki-file-name"
}
},
"paramOrder": [
"side",
"title",
"original_filename",
"labeled_filename"
]
}
</templatedata>
</noinclude>

Latest revision as of 21:56, 11 June 2025

PCB picture

[[File:{{{original_filename}}}|thumb|1175x1175px|none]]



No description.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
sideside

Side of PCB in the picture. If not provided, `title` has to be filled in

Suggested values
front back label
Stringsuggested
titletitle

If set, this property will overwrite the header

Example
PCB layout of the 95410-2C160
Stringoptional
original_filenameoriginal_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

Example
SIMK43_5WY1919B_front_side.jpg
Fileoptional
labeled_filenamelabeled_filename

Filename of the modified picture with labels

Example
SIMK43_5WY1919B_front_side_labeled.jpg
Fileoptional