From WikiChip
Difference between revisions of "Template:mcu"
Line 113: | Line 113: | ||
{{#if:{{{o lines|}}}|{{!-}}|<div></div>}} | {{#if:{{{o lines|}}}|{{!-}}|<div></div>}} | ||
{{#if:{{{o lines|}}}|{{!}} '''Output ports''' {{!}}{{!}} {{{o lines}}}|}} | {{#if:{{{o lines|}}}|{{!}} '''Output ports''' {{!}}{{!}} {{{o lines}}}|}} | ||
+ | {{#if: {{{package 0|}}}|<!-- | ||
+ | ============= NEW PACKAGING UI ================ --> | ||
+ | {{#if:{{{packaging|}}}|{{!-}}|<div></div>}} | ||
+ | {{#if:{{{packaging|}}}|{{!}} style="text-align: center; font-size: 12px;" colspan="2" {{!}} '''Packaging'''|}} | ||
+ | {{!-}} | ||
+ | {{!}} colspan="2" {{!}} <!-- | ||
+ | --><table style="border: solid 1px #999966; width: 100%; margin: 2px;"><!-- | ||
+ | --><tr><th>'''Package'''</th><td>[[package::{{{package 0}}}]] {{#if:{{{package 0 type|}}}|({{{package 0 type}}})|}}</td></tr><!-- | ||
+ | -->{{#if:{{{package 0 length|}}}{{{package 0 width|}}}{{{package 0 height|}}}|<!-- | ||
+ | --><tr><th>'''Dimension'''</th><td>{{{package 0 length|}}} x {{{package 0 length|}}} {{#if:{{{package 0 height|}}}|x {{{package 0 height|}}}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{package 0 pitch|}}}|<tr><th>'''Pitch'''</th><td>{{{package 0 pitch}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{package 0 pins|}}}|<tr><th>'''Pin Count'''</th><td>{{{package 0 pins}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{socket 0|}}}|<tr><th>'''Socket'''</th><td>{{{socket 0}}}<!-- | ||
+ | -->{{#if:{{{socket 0 type|}}}| ({{{socket 0 type}}})}}<!-- | ||
+ | -->{{#if:{{{socket 0 2|}}}|, {{{socket 0 2}}}{{#if:{{{socket 0 2 type|}}}| ({{{socket 0 2 type}}})}}}}<!-- | ||
+ | -->{{#if:{{{socket 0 3|}}}|, {{{socket 0 3}}}{{#if:{{{socket 0 2 type|}}}| ({{{socket 0 3 type}}})}}}}<!-- | ||
+ | -->{{#if:{{{socket 0 4|}}}|, {{{socket 0 4}}}{{#if:{{{socket 0 2 type|}}}| ({{{socket 0 4 type}}})}}}}<!-- | ||
+ | --></td></tr>}}<!-- | ||
+ | -->{{#subobject:package 1 | ||
+ | |package = {{{package 0|}}} | ||
+ | |package type = {{{package 0 type|}}} | ||
+ | |package pins = {{{package 0 pins|}}} | ||
+ | |package pitch = {{{package 0 pitch|}}} | ||
+ | |package length = {{{package 0 length|}}} | ||
+ | |package width = {{{package 0 width|}}} | ||
+ | |package height = {{{package 0 height|}}} | ||
+ | |socket = {{{socket 0|}}} | ||
+ | |socket type = {{{socket 0 type|}}} | ||
+ | |socket = {{{socket 0 2|}}} | ||
+ | |socket type = {{{socket 0 2 type|}}} | ||
+ | |socket = {{{socket 0 3|}}} | ||
+ | |socket type = {{{socket 0 3 type|}}} | ||
+ | |socket = {{{socket 0 4|}}} | ||
+ | |socket type = {{{socket 0 4 type|}}} | ||
+ | }}<!-- | ||
+ | --></table><!-- | ||
+ | -->{{#if:{{{package 1|}}}|<!-- | ||
+ | --><table style="border: solid 1px #999966; width: 100%; margin: 2px;"><!-- | ||
+ | --><tr><th>'''Package'''</th><td>[[package::{{{package 1}}}]] {{#if:{{{package 1 type|}}}|({{{package 1 type}}})|}}</td></tr><!-- | ||
+ | -->{{#if:{{{package 1 length|}}}{{{package 1 width|}}}{{{package 1 height|}}}|<!-- | ||
+ | --><tr><th>'''Dimension'''</th><td>{{{package 1 length|}}} x {{{package 1 length|}}} {{#if:{{{package 1 height|}}}|x {{{package 1 height|}}}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{package 1 pitch|}}}|<tr><th>'''Pitch'''</th><td>{{{package 1 pitch}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{package 1 pins|}}}|<tr><th>'''Pin Count'''</th><td>{{{package 1 pins}}}</td></tr>}}<!-- | ||
+ | -->{{#if:{{{socket 1|}}}|<tr><th>'''Socket'''</th><td>{{{socket 1}}}<!-- | ||
+ | -->{{#if:{{{socket 1 type|}}}| ({{{socket 1 type}}})}}<!-- | ||
+ | -->{{#if:{{{socket 1 2|}}}|, {{{socket 1 2}}}{{#if:{{{socket 1 2 type|}}}| ({{{socket 1 2 type}}})}}}}<!-- | ||
+ | -->{{#if:{{{socket 1 3|}}}|, {{{socket 1 3}}}{{#if:{{{socket 1 2 type|}}}| ({{{socket 1 3 type}}})}}}}<!-- | ||
+ | -->{{#if:{{{socket 1 4|}}}|, {{{socket 1 4}}}{{#if:{{{socket 1 2 type|}}}| ({{{socket 1 4 type}}})}}}}<!-- | ||
+ | --></td></tr>}}<!-- | ||
+ | -->{{#subobject:package 2 | ||
+ | |package = {{{package 1|}}} | ||
+ | |package type = {{{package 1 type|}}} | ||
+ | |package pins = {{{package 1 pins|}}} | ||
+ | |package pitch = {{{package 1 pitch|}}} | ||
+ | |package length = {{{package 1 length|}}} | ||
+ | |package width = {{{package 1 width|}}} | ||
+ | |package height = {{{package 1 height|}}} | ||
+ | |socket = {{{socket 1|}}} | ||
+ | |socket type = {{{socket 1 type|}}} | ||
+ | |socket = {{{socket 1 2|}}} | ||
+ | |socket type = {{{socket 1 2 type|}}} | ||
+ | |socket = {{{socket 1 3|}}} | ||
+ | |socket type = {{{socket 1 3 type|}}} | ||
+ | |socket = {{{socket 1 4|}}} | ||
+ | |socket type = {{{socket 1 4 type|}}} | ||
+ | }}<!-- | ||
+ | --></table><!-- | ||
+ | -->}} | ||
+ | |<!-- | ||
+ | ============= LEGACY PACKAGING UI ================ --> | ||
{{#if:{{{packaging|}}}|{{!-}}|<div></div>}} | {{#if:{{{packaging|}}}|{{!-}}|<div></div>}} | ||
{{#if:{{{packaging|}}}|{{!}} style="text-align: center; font-size: 12px;" colspan="2" {{!}} '''Packaging'''|}} | {{#if:{{{packaging|}}}|{{!}} style="text-align: center; font-size: 12px;" colspan="2" {{!}} '''Packaging'''|}} | ||
{{#if:{{{package|}}}|{{!-}}|<div></div>}} | {{#if:{{{package|}}}|{{!-}}|<div></div>}} | ||
− | {{#if:{{{package|}}}|{{!}} '''Package''' {{!}}{{!}} {{{package}}} {{#if:{{{package type|}}}|({{{package type}}})|}}{{#if:{{{package 1|}}}|, {{{package 1}}} {{#if:{{{package type 1|}}}|({{{package type 1}}})}}}}|}} | + | {{#if:{{{package|}}}|{{!}} '''Package''' {{!}}{{!}} [[package::{{{package}}}]] {{#if:{{{package type|}}}|({{{package type}}})|}}{{#if:{{{package 1|}}}|, [[package::{{{package 1}}}]] {{#if:{{{package type 1|}}}|({{{package type 1}}})}}}}{{#if:{{{package 2|}}}|, [[package::{{{package 2}}}]] {{#if:{{{package type 2|}}}|({{{package type 2}}})}}}}{{#if:{{{package 3|}}}|, [[package::{{{package 3}}}]] {{#if:{{{package type 3|}}}|({{{package type 3}}})}}}}{{#if:{{{package 4|}}}|, [[package::{{{package 4}}}]] {{#if:{{{package type 4|}}}|({{{package type 4}}})}}}}{{#if:{{{package 5|}}}|, [[package::{{{package 5}}}]] {{#if:{{{package type 5|}}}|({{{package type 5}}})}}}}{{#if:{{{package 6|}}}|, [[package::{{{package 6}}}]] {{#if:{{{package type 6|}}}|({{{package type 6}}})}}}} |}} |
{{#if:{{{package pitch|}}}|{{!-}}|<div></div>}} | {{#if:{{{package pitch|}}}|{{!-}}|<div></div>}} | ||
{{#if:{{{package pitch|}}}|{{!}} '''Pitch''' {{!}}{{!}} {{{package pitch}}}|}} | {{#if:{{{package pitch|}}}|{{!}} '''Pitch''' {{!}}{{!}} {{{package pitch}}}|}} | ||
Line 122: | Line 192: | ||
{{#if:{{{package size|}}}|{{!}} '''Dimension''' {{!}}{{!}} {{{package size}}}|}} | {{#if:{{{package size|}}}|{{!}} '''Dimension''' {{!}}{{!}} {{{package size}}}|}} | ||
{{#if:{{{socket|}}}|{{!-}}|<div></div>}} | {{#if:{{{socket|}}}|{{!-}}|<div></div>}} | ||
− | {{#if:{{{socket|}}}|{{!}} '''Socket''' {{!}}{{!}} {{{socket}}} {{#if:{{{socket type|}}}|({{{socket type}}})|}}|}} | + | {{#if:{{{socket|}}}|{{!}} '''Socket''' {{!}}{{!}} [[socket::{{{socket}}}]] {{#if:{{{socket type|}}}|({{{socket type}}})|}}{{#if:{{{socket 1|}}}|, [[socket::{{{socket 1}}}]] {{#if:{{{socket type 1|}}}|({{{socket type 1}}})}}}}{{#if:{{{socket 2|}}}|, [[socket::{{{socket 2}}}]] {{#if:{{{socket type 2|}}}|({{{socket type 2}}})}}}}{{#if:{{{socket 3|}}}|, [[socket::{{{socket 3}}}]] {{#if:{{{socket type 3|}}}|({{{socket type 3}}})}}}}{{#if:{{{socket 4|}}}|, [[socket::{{{socket 4}}}]] {{#if:{{{socket type 4|}}}|({{{socket type 4}}})}}}}{{#if:{{{socket 5|}}}|, [[socket::{{{socket 5}}}]] {{#if:{{{socket type 5|}}}|({{{socket type 5}}})}}}}{{#if:{{{socket 6|}}}|, [[socket::{{{socket 6}}}]] {{#if:{{{socket type 6|}}}|({{{socket type 6}}})}}}} |}}<!-- END UI if -->}} |
|}[[Category:all microcontroller models]][[full page name::{{FULLPAGENAME}}| ]][[instance of::microcontroller| ]]</includeonly><noinclude>{{documentation}} | |}[[Category:all microcontroller models]][[full page name::{{FULLPAGENAME}}| ]][[instance of::microcontroller| ]]</includeonly><noinclude>{{documentation}} | ||
</noinclude> | </noinclude> |