module.exports = {
    params: {
        designator: 'C',
        side: 'F',
        value: '100nF',
        from: undefined,
        to: undefined,
    },
    body: p => `
        (module C_1206_3216Metric_Pad1.33x1.80mm_HandSolder (layer ${p.side}.Cu) (tedit 67059662)
            ${p.at /* parametric position */}
            (attr smd)

            ${'' /* footprint reference */}
            (fp_text reference "${p.ref}" (at 0 0) (layer ${p.side}.SilkS) ${p.ref_hide}
                (effects (font (size 1.27 1.27) (thickness 0.15)))
            )
            (fp_text value "${p.value}" (at 0 0) (layer ${p.side}.SilkS) hide
                (effects (font (size 1.27 1.27) (thickness 0.15)))
            )

            ${''/* capacitor symbols */}
            (fp_line (start -1.6  0.8) (end -1.6 -0.8) (layer ${p.side}.Fab) (width 0.1))
            (fp_line (start -1.6 -0.8) (end  1.6 -0.8) (layer ${p.side}.Fab) (width 0.1))
            (fp_line (start  1.6 -0.8) (end  1.6  0.8) (layer ${p.side}.Fab) (width 0.1))
            (fp_line (start  1.6  0.8) (end -1.6  0.8) (layer ${p.side}.Fab) (width 0.1))
            (fp_line (start -0.711252 -0.91) (end 0.711252 -0.91) (layer ${p.side}.SilkS) (width 0.12))
            (fp_line (start -0.711252  0.91) (end 0.711252  0.91) (layer ${p.side}.SilkS) (width 0.12))
            (fp_line (start -2.48  1.15) (end -2.48 -1.15) (layer ${p.side}.CrtYd) (width 0.05))
            (fp_line (start -2.48 -1.15) (end  2.48 -1.15) (layer ${p.side}.CrtYd) (width 0.05))
            (fp_line (start  2.48 -1.15) (end  2.48  1.15) (layer ${p.side}.CrtYd) (width 0.05))
            (fp_line (start  2.48  1.15) (end -2.48  1.15) (layer ${p.side}.CrtYd) (width 0.05))

            ${''/* SMD pads */}
            (pad 1 smd roundrect (at -1.5625 0 ${p.r}) (size 1.325 1.8)
                (layers ${p.side}.Cu ${p.side}.Mask ${p.side}.Paste)
                (roundrect_rratio 0.188679) ${p.to}
            )
            (pad 2 smd roundrect (at 1.5625 0 ${p.r}) (size 1.325 1.8)
                (layers ${p.side}.Cu ${p.side}.Mask ${p.side}.Paste)
                (roundrect_rratio 0.188679) ${p.from}
            )
        )
    `
}
