Template talk:Infobox Embedded System

From TechInfoDepot
Jump to navigationJump to search

Todo

broken

origonal code from wikidevi

'''FLA1:''' {{#if:{{{fla1|}}}| {{#if: {{#pos:{{{fla1|}}}| }}|'''[[FLA1 amount::{{#explode:{{{fla1|}}}|-|0}} {{#explode:{{{fla1|}}}|-|1}}]]'''<!--

-->{{#vardefine:cur_var|{{Query self plain|FLA1 amount|#}}}}<!--

-->{{#set:FLA1 amount/MiB={{#sub:{{#var:cur_var}}|0|{{#expr:{{#pos:{{#var:cur_var}}|MiB}} - 1}}}}}}<!--
-->|'''[[FLA1 amount::{{{fla1}}} MiB]]'''<!--

-->{{#vardefine:cur_var|{{Query self plain|FLA1 amount|#}}}}<!--

-->{{#set:FLA1 amount/MiB={{#sub:{{#var:cur_var}}|0|{{#expr:{{#pos:{{#var:cur_var}}|MiB}} - 1}}}}}}<!--
-->}} | '''? MiB''' }} ({{#if:{{{fla1_brand|}}}|'''[[FLA1 brand::{{{fla1_brand}}}]]'''|'''Brand?'''}} {{#if:{{{fla1_model|}}}|[[FLA1 model::{{{fla1_model}}}]]|Model?}}{{#if:{{{fla1_num|}}}| ''' ×''' [[FLA1 chips used::{{{fla1_num}}}]])|)[[FLA1 chips used::1| ]]}}
{{#if:{{{flash1size|}}}| {{#if: {{#pos:{{{flash1size|}}}| }}|'''[[FLA1 amount::{{#explode:{{{flash1size|}}}|-|0}} {{#explode:{{{flash1size|}}}|-|1}}]]'''<!--

-->{{#vardefine:cur_var|{{Query self plain|FLA1 amount|#}}}}<!--

-->{{#set:FLA1 amount/MiB={{#sub:{{#var:cur_var}}|0|{{#expr:{{#pos:{{#var:cur_var}}|MiB}} - 1}}}}}}<!--
-->|'''[[FLA1 amount::{{{flash1size}}} MiB]]'''<!--

-->{{#vardefine:cur_var|{{Query self plain|FLA1 amount|#}}}}<!--

-->{{#set:FLA1 amount/MiB={{#sub:{{#var:cur_var}}|0|{{#expr:{{#pos:{{#var:cur_var}}|MiB}} - 1}}}}}}<!--
-->}} | '''? MiB''' }} {{#if: {{{flash1type|}}} | '''([[FLA1 type::{{{flash1type|}}}]])''' |  }}{{#if: {{{flash1maxsize}}} | {{#set:FLA1 Max Size={{{flash1maxsize}}}}} |  }}

specifically

-->{{#set:FLA1 amount/MiB={{#sub:{{#var:cur_var}}|0|{{#expr:{{#pos:{{#var:cur_var}}|MiB}} - 1}}}}}}<!-- 

FLA1 amount/MiB sets to 10 when FLA1 amount is 8, 0-4, etc... see D-Link DSL-2740B rev F1 which breaks Template:OpenWrt's notices

--  DarkShadow   talk    contribs   10:38, 17 September 2025 (UTC)

Work around in place until i can find a fix. FLA1 amount/MiB still reports incorrect.

--  DarkShadow   talk    contribs   14:35, 17 September 2025 (UTC)

Unfortunately only work for MiB number only

--  DarkShadow   talk    contribs   17:45, 17 September 2025 (UTC)

Added

|primflasize        = <!-- in MB only -->
|primramsice        = <!-- in MB only -->

for the time being....

--  DarkShadow   talk    contribs   11:21, 19 September 2025 (UTC)

serial switchout

{{#if: {{{serialport|}}} | {{#ifeq:{{{serialport|}}}|Mod to Add|<div style="background-color: #CBE1E0; ">Mod to Add</div>|{{#ifeq:{{{serialport|}}}|Yes|<div style="background-color: #CBE1E0; ">{{#if:{{{serial_port_num|}}}| x {{{serial_port_num|}}}| x 1}}{{#if: {{{serial_port_info|}}} | , {{{serial_port_info|}}} | }} (<span title="buad, data bits, parity, stop bits, flow control">{{#if:{{{serial_speed|}}}|{{{serial_speed|}}}|?}},{{#if:{{{serial_data_bits|}}}|{{{serial_data_bits|}}}|?}},{{#if:{{{serial_parity|}}}|{{{serial_parity|}}}|?}},{{#if:{{{serial_stop_bits|}}}|{{{serial_stop_bits|}}}|?}},{{#if:{{{serial_flow_cntl|}}}|{{{serial_flow_cntl|}}}|?}}</span>)</div>|}}}} | {{#if: {{{serial|}}} | <div style="background-color: #CBE1E0; ">{{MultiAssign |prop=Serial |param={{{serial|}}} |delim=,, |new_delim=,  }}</div> | }} }}

to

seperat values to better posiyion in infobox

has_serial        yes or no
pin_count         4,5,9,10 -pin header
ttl_volts         3.3V TTL
conn_des          JP1
conn_variables    (9600 8N1)
populated         yes or no
type              Gemtek type1 pinout


can still all have the same property, nothing changes semanticly.

Revision, etc.

header12 = 
|label12  = Brand • Model • Rev
|data12   = <div style="background-color: lightblue ">{{#if: {{{brand|}}}|'''[[Brand::{{{brand|}}}]]'''[[Category:{{{brand|}}}]] | Brand?<includeonly>[[Category:Fix Brand]]</includeonly> }} {{#if: {{{model|}}} | {{{model|}}}[[Model::{{{model|}}}| ]] | Model?<includeonly>[[Category:Fix Model]]</includeonly> }} {{#if: {{{submodel|}}} | {{{submodel|}}} | }} {{#if: {{{revision|}}} | {{nowrap| ''[[Revision::{{{revision|}}}]]'' }} | }} {{#if: {{{subrevision|}}} | '''{{{subrevision|}}}''' | }}</div>
|header13 = 
|label13  = Serial Num. Prefix
|data13   = {{#if: {{{sernum|}}} | <div style="background-color: #04FF00; ">[[Serial num::{{{sernum|}}}]]</div> | }}{{#if: {{{serialnum_prefix|}}} | <div style="background-color: #04FF00; ">[[Serial num::{{{serialnum_prefix|}}}]]</div> | }}
|header14 = 
|label14  = {{abbr|FCC ID|Federal Communication Commission Identification}}
|data14   = <div style="background-color: #04FF00; ">{{#if:{{{fcc_id|}}} | {{#set:Has FCC ID=Yes}}{{#arraymap:{{{fcc_id|}}}|, |z|{{nowrap|{{FCC.io|z}}}}}} | none available{{#set:Has FCC ID=No}}}}</div>
|header15 = 
|label15  = {{abbr|IC ID|Industry Canada Identification}}
|data15   = {{#if: {{{icid|}}} | <div style="background-color: #04FF00; ">{{#arraymap:{{{icid|}}}|, |z|{{nowrap|{{IndustryCanada.co|z}}}}}}</div> | }}
|header16 = 
|label16  = {{abbr|US ID|United States Identification}}
|data16   = {{#if: {{{us_id|}}} | <div style="background-color: #04FF00; ">{{{us_id|}}}</div> | }}
|header17 = 
|label17  = Board ID
|data17   = {{#if: {{{boardid|}}} | <div style="background-color: #04FF00; ">[[PCB ID::{{{boardid|}}}]]</div> | }}{{#if: {{{pcb_id|}}} | <div style="background-color: #04FF00; ">[[PCB ID::{{{pcb_id|}}}]]</div> | }}
--&Omega (talk) 02:15, 29 August 2019 (UTC)

Duplicate arguments

Category:Pages using duplicate arguments in template calls - 786 pages total ??
31 August 2019‎ ShadowBot (→‎ replaced: wi2_chip1brand → rad2chip1model )
30 August 2019‎ ShadowBot (→‎ replaced: fla2= → flash1size= )
--&Omega (talk) 12:20, 4 September 2019 (UTC)
I cought the first one after you corrected a page, didnt know about the snd one till now.
--  DarkShadow   talk    contribs   13:18, 4 September 2019 (UTC)
This is not the case for ASUS Lyra, Must be from a diff error
--  DarkShadow   talk    contribs   14:45, 4 September 2019 (UTC)

CPU1 cores

Property:CPU1 cores • Property:CPU2 cores ??
|header23 = 
|label23  = CPU1 Speed
|data23   = {{#if: {{{cpu1model|}}} | <div style="background-color: #9FE5B6; ">{{#if: {{{cpu1spd|}}} | '''[[CPU1 clock speed::{{{cpu1spd|}}}]]''' {{#if: {{{cpu1_cores|}}} | {{#ifeq:{{{cpu1_cores|}}} | 1 | {{#set:CPU1 cores={{{cpu1_cores}}}}} | '''<small>([[CPU1 cores::{{{cpu1_cores|}}}]] cores)</small>'''}} | }} | ? }}</div> | {{#if: {{{cpu1brand|}}} | <div style="background-color: #9FE5B6; ">{{#if: {{{cpu1spd|}}} | '''[[CPU1 clock speed::{{{cpu1spd|}}}]]''' {{#if: {{{cpu1_cores|}}} | {{#ifeq:{{{cpu1_cores|}}} | 1 | {{#set:CPU1 cores={{{cpu1_cores}}}}} | '''<small>([[CPU1 cores::{{{cpu1_cores|}}}]] cores)</small>'''}} | }} | unspecified }}</div> | }} }}<!-- <div style="background-color: #9FE5B6; ">{{#if: {{{cpu1spd|}}} | '''[[CPU1 clock speed::{{{cpu1spd}}}]]''' | unspecified }} {{#if: {{{cpu1_cores|}}} | {{#ifeq: {{{cpu1_cores|}}} | 1 | '''<small>({{{cpu1_cores|}}} core)</small>''' | '''<small>({{{cpu1_cores|}}} cores)</small>'''}} | }}</div> -->
…
|header28 = 
|label28  = CPU2 Speed
|data28   = {{#if: {{{cpu2model|}}} | <div style="background-color: #9FE5B6; ">{{#if: {{{cpu2spd|}}} | '''[[CPU2 clock speed::{{{cpu2spd|}}}]]''' {{#if: {{{cpu2_cores|}}} | {{#ifeq:{{{cpu2_cores|}}}|1|{{#set:CPU2 cores={{{cpu2_cores}}}}}| '''<small>([[CPU2 cores::{{{cpu2_cores|}}}]] cores)</small>'''}} | }} | ? }}</div> | {{#if: {{{cpu2brand|}}} | <div style="background-color: #9FE5B6; ">{{#if: {{{cpu2spd|}}} | '''[[CPU2 clock speed::{{{cpu2spd|}}}]]''' {{#if: {{{cpu2_cores|}}} | {{#ifeq:{{{cpu2_cores|}}}|1|{{#set:CPU2 cores={{{cpu2_cores}}}}}| '''<small>([[CPU2 cores::{{{cpu2_cores|}}}]] cores)</small>'''}} | }} | unspecified }}</div> | }} }}
--&Omega (talk) 00:05, 7 September 2019 (UTC)
done
--  DarkShadow   talk    contribs   00:19, 7 September 2019 (UTC)

SFP ports

Property:SFP ports
|header140 = 
|label140  = eSATA Ports
|data140   = {{#if: {{{exp_esata_num|}}} | <div style="background-color: #CBE1E0; ">[[ESATA Ports::{{{exp_esata_num|}}}]]</div> | }}
|header141 = 
|label141  = SFP ports
|data141   = {{#if:{{{exp_sfp_num|}}} | <div style="background-color: #CBE1E0; ">[[SFP ports::{{{exp_sfp_num}}}]]</div>|}}
|header142 = 
|label142  = Paralell Ports
|data142   = {{#if:{{{exp_parallel|}}}|<div style="background-color: #CBE1E0; ">[[Paralell ports::{{{exp_parallel|}}}]]</div>|}}
--&Omega (talk) 00:48, 7 September 2019 (UTC)
done
--  DarkShadow   talk    contribs   01:04, 7 September 2019 (UTC)

Radio

why change radio placement
  • Radio1 - b, bg, bgn, bgn+ax (abgn, abgn+ac - 1chip) • 2.4GHz (2.4/5GHz) - Solo Band, Solo Radio
  • Radio2 - a, an, an+ac, an+ac+ax (abgn+ac, abgn+ac+ax - 2chip) • 5GHz (2.4/5GHz) - Dual Band, Dual Radio
  • Radio3 - ad, an+ac, an+ac+ax (double ac/ax - 3chip) • 5.2/5.8/60GHz, etc. (ah, ay) - Tri Band, Tri Radio
--&Omega (talk) 15:12, 8 September 2019 (UTC)
wireless devices are not built this way.
--  DarkShadow   talk    contribs   15:24, 8 September 2019 (UTC)

Tables

  • | ?Radio1 chip1 brand | ?Radio1 chip2 brand --> | ?Radio1 chip1 brand | ?Radio2 chip1 brand ??
|header293 = 
|label293  = <!-- Line -->
|data293   = {{#if: {{{802dot11_prot|}}} | {{#ifeq: {{{802dot11_prot|}}} | none | {{#if: {{{brand|}}} | {{#if: {{{model|}}} | {{#ifeq: {{#ask: [[Brand::{{{brand}}}]] [[Model::{{{model}}}]] | format=count }} | 1 | | {{#ask: [[Brand::{{{brand}}}]] [[Model::{{{model}}}]] | ?CPU1 brand | ?FLA1 amount=FLA1 | ?RAM1 amount=RAM1 | format=broadtable | limit=5 | searchlabel=… further results }} }} }} }} | {{#if: {{{brand|}}} | {{#if: {{{model|}}} | {{#ifeq: {{#ask: [[Brand::{{{brand}}}]] [[Model::{{{model}}}]] | format=count }} | 1 | | {{#ask: [[Brand::{{{brand}}}]] [[Model::{{{model}}}]] | ?CPU1 brand | ?Radio1 chip1 brand | ?Radio2 chip1 brand |format=broadtable | limit=5 | searchlabel=… further results }} }} }} }} }} | }}

|belowstyle =
|below = 

Select ?

{{#if: {{{rad2stand|}}} | {{#ask: [[Brand::{{{brand}}}]] [[Model::{{{model}}}]] | ?CPU1 brand | ?Radio1 chip1 brand | ?Radio2 chip1 brand | format=broadtable }} | {{#ask: [[Brand::{{{brand}}}]] [[Model::{{{model}}}]] | ?CPU1 brand | ?Radio1 chip1 brand | ?Radio1 chip2 brand | format=broadtable }} }}
--&Omega (talk) 12:35, 29 April 2022 (UTC)
I don't understand what you are questioning --  DarkShadow   talk    contribs   14:55, 29 April 2022 (UTC)
I think I got it --  DarkShadow   talk    contribs   03:04, 30 April 2022 (UTC)

Switch 2 / Switch 3

? -> ASUS GT-AC5400

Switch2 brand		Qualcomm Atheros +
Switch2 model		QCA8075 +
Switch2 model/full	QCA8337;QCA8337-AL3C, PK810WV4, 1810, TAIWAN; +
Switch brand		Qualcomm Atheros +
Switch model		QCA8337 +

Fix -> |data138 |data139 |data140

{{#if: {{{switchmodelfull|}}} | [[Switch model/full::{{{switchmodelfull|}}}| ]] | }}
{{#if: {{{switch2modelfull|}}} | [[Switch2 model/full::{{{switch2modelfull|}}}| ]] | }}
{{#if: {{{switch3modelfull|}}} | [[Switch3 model/full::{{{switch3modelfull|}}}| ]] | }}

|header139 = 
|label139  = Switch 2
|data139   = {{#if: {{{switch2|}}} | {{{switch2|}}}[[Category:Old eth Variable]] | {{#if: {{{switch2model|}}} | {{#ifexist: {{{switch2brand|}}} {{{switch2model|}}} | <div style="background-color: #CBE1E0; ">'''[[{{{switch2brand|}}} {{{switch2model|}}}]]'''[[Switch2 brand::{{{switch2brand|}}}| ]][[Switch2 model::{{{switch2model|}}}| ]][[Category:Embedded System {{{switch2brand|}}}]][[Category:Embedded System {{{switch2model|}}}]]</div> | {{#if: {{{switch2brand|}}} | <div style="background-color: #CBE1E0; ">'''{{{switch2brand|}}}'''[[Category:Embedded System {{{switch2brand|}}}]][[Switch2 brand::{{{switch2brand|}}}| ]] | }} {{#if: {{{switch2model|}}} | {{{switch2model|}}}[[Category:Embedded System {{{switch2model|}}}]][[Switch2 model::{{{switch2model|}}}| ]] | }}</div> }} | {{#if: {{{switch2brand|}}} | <div style="background-color: #CBE1E0; ">'''{{{switch2brand|}}}'''[[Category:Embedded System {{{switch2brand|}}}]][[Switch2 brand::{{{switch2brand|}}}| ]] {{#if:{{{switch2model|}}}|{{{switch2model|}}}[[Category:Embedded System {{{switch2model|}}}]][[Switch2 model::{{{switch2model|}}}| ]]|Model?}}</div> | }} }} }}{{#if: {{{switch2modelfull|}}} | [[Switch2 model/full::{{{switchmodelfull|}}}| ]] | }}
|header140 = 
|label140  = Switch 3
|data140   = {{#if: {{{switch3model|}}} | {{#ifexist: {{{switch3brand|}}} {{{switch3model|}}} | <div style="background-color: #CBE1E0; ">'''[[{{{switch3brand|}}} {{{switch3model|}}}]]'''[[Switch3 brand::{{{switch3brand|}}}| ]][[Switch3 model::{{{switch3model|}}}| ]][[Category:Embedded System {{{switch3brand|}}}]][[Category:Embedded System {{{switch3model|}}}]]</div> | {{#if: {{{switch3brand|}}} | <div style="background-color: #CBE1E0; ">'''{{{switch3brand|}}}'''[[Category:Embedded System {{{switch3brand|}}}]][[Switch3 brand::{{{switch3brand|}}}| ]] | }} {{#if: {{{switch3model|}}} | {{{switch3model|}}}[[Category:Embedded System {{{switch3model|}}}]][[Switch3 model::{{{switch3model|}}}| ]] | }}</div> }} | {{#if: {{{switch3brand|}}} | <div style="background-color: #CBE1E0; ">'''{{{switch3brand|}}}'''[[Category:Embedded System {{{switch3brand|}}}]][[Switch3 brand::{{{switch3brand|}}}| ]] {{#if:{{{switch3model|}}}|{{{switch3model|}}}[[Category:Embedded System {{{switch3model|}}}]][[Switch3 model::{{{switch3model|}}}| ]]|Model?}}</div> | }} }}{{#if: {{{switch3modelfull|}}} | [[Switch3 model/full::{{{switchmodelfull|}}}| ]] | }}
--&Omega (talk) 00:39, 19 December 2022 (UTC)
< fixed
--  DarkShadow   talk    contribs   01:12, 19 December 2022 (UTC)
OK - Switch model/full ?
Switch2 brand		Qualcomm Atheros +
Switch2 model		QCA8075 +
Switch2 model/full	QCA8075;QCA8075, 0VV, PK724SBR, K072401; +
Switch brand		Qualcomm Atheros +
Switch model		QCA8337 +
Switch model/full	?

Fix -> |data138

{{#if: {{{switchmodelfull|}}} | [[Switch model/full::{{{switchmodelfull|}}}| ]] | }}
--&Omega (talk) 12:10, 19 December 2022 (UTC)
My bad, missed that one. < fixed. --  DarkShadow   talk    contribs   13:52, 19 December 2022 (UTC)

Grammar error

|label198  = Paralell Ports

Pretty sure it is Parallel not Paralell --Tripmines (talk) 00:29, 12 September 2026 (UTC)

fixed - --  DarkShadow   talk    contribs   03:01, 12 September 2026 (UTC)