Template:Product: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
 
(192 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{TemplateGen|params=<nowiki>image=###description=###|category1=###|category2=###</nowiki><br/><nowiki>|documentation={{DocBox|system={Android,Linux,Yocto,Hardware}|content=###}}</nowiki><br/><nowiki>|cpu=###|mpu=###|gfx=###|ram=###|lcd=###|hdmi=###|rtc=###|i2c=###|spi=###|sd_mmc=###|nand=###|power=###|temp=###|usb=###|ethernet=###|audio=###|wireless=###|canbus=###|bluetooth=###|touch=###|serial=###</nowiki>}}</noinclude>
<noinclude>{{TemplateGen|params=<nowiki>image=###image class=img-fluid(default)|as-is(without resizing)###description=###|category1=###|category2=###</nowiki><br/><nowiki>|documentation={{DocBox|system={Android,Linux,Yocto,Hardware}|content=###}}</nowiki><br/><nowiki>|cpu=###</nowiki><br/><nowiki>|ram=###</nowiki><br/><nowiki>|display=###</nowiki><br/><nowiki>|gfx=###</nowiki><br/><nowiki>|storage=###</nowiki><br/><nowiki>|rtc=###</nowiki><br/><nowiki>|i2c=###</nowiki><br/><nowiki>|spi=###</nowiki><br/><nowiki>|net=###</nowiki><br/><nowiki>|temp=Commercial\Extended </nowiki><br/><nowiki>|usb=###</nowiki><br/><nowiki>|audio=###</nowiki><br/><nowiki>|uart=###</nowiki><br/><nowiki>|dim=###</nowiki><br/><nowiki>|wire=###</nowiki>}}</noinclude>__notoc__<!--Description-->
__notoc__
<div class="mt-3 card bg-light border-0">
<!--Description-->
<div class="card-header bg-main text-white">
<div style=" width:100%;">
<div class="lead font-weight-bold">{{PAGENAME}}</div>
{|
|-
{| style="padding:15px; background-color: #0066c7; color: white; width:100%; font-size:25px;  border-top-left-radius:5px; border-top-right-radius:5px; "
|{{PAGENAME}}
|}
|-
|
{|style="background-color: #F0F0FF; width:100%; "
|style="width:250px; padding:5px 25px 5px 25px;"|[[File:{{{image}}}|height=100px|{{PAGENAME}}]]
|style="padding:20px 30px 0px 0px; vertical-align:top;"|{{{description}}}
|}
|}
</div>
</div>
<!--
<div class="card-body row p-3">
<!--Documentation-->
<div class="product-header text-center col-md-5 col-lg-5 col-xl-4">[[File:{{{image}}}|class={{{image class|img-fluid}}} mb-3|{{PAGENAME}}]]</div>
<div style="overflow:hidden;">
<div class="col-md-7 col-lg-7 col-xl-8 d-flex flex-column justify-content-between pb-3" style="font-size:17px;line-height:1.3em">
{{{documentation}}}
{{{description}}}
{{#if: {{{spec link|}}}
  |<div>[{{{spec link|}}} <span class="mw-ui-button mw-ui-progressive mt-3">Product Specifications</span>]</div>
}}
</div>
</div>
</div><!-- SEO -->{{#seo:
  |description={{#sub:{{{seo description|{{{description|}}}}}}|0|{{#expr:180 - ( 0{{#len:{{#explode:{{#sub:{{{seo description|{{{description|}}}}}}|0|180}}| |-1}}}} + 1 ) }} }}...
  |modified_time={{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
}}<!--Documentation--><div class="card-deck flex-column flex-lg-row">{{{documentation}}}
<div class="mt-3 card specs bg-light border-0">
<div class="card-header bg-blue text-white"  style="font-size: 12pt;">
<div class="font-weight-bold">Specs summary</div>
</div>
<div class="card-body row px-3 py-0 align-items-start">
<table id="specs" class="table bg-light py-0" style="font-size:90%"><!--
-->{{#if:{{{cpu}}}|<tr><td style="width:90px">'''CPU'''</td><td>{{{cpu}}}</td></tr>}}<!--
-->{{#if:{{{ram}}}|<tr><td>'''Memory'''</td><td>{{{ram}}}</td></tr>|}}<!--
-->{{#if:{{{gfx}}}|<tr><td>'''GPU'''</td><td>{{{gfx}}}</td></tr>|}}<!--
-->{{#if:{{{display}}}|<tr><td>'''Display'''</td><td>{{{display}}}</td></tr>|}}<!--
-->{{#if:{{{storage}}}|<tr><td>'''Storage'''</td><td>{{{storage}}}</td></tr>|}}<!--
-->{{#if:{{{net}}}|<tr><td>'''Network'''</td><td>{{{net}}}</td></tr>|}}<!--
-->{{#if:{{{rtc}}}|<tr><td>'''RTC'''</td><td>{{{rtc}}}</td></tr>|}}<!--
-->{{#if:{{{i2c}}}|<tr><td>'''I2C'''</td><td>{{{i2c}}}</td></tr>|}}<!--
-->{{#if:{{{wire}}}|<tr><td>'''One-Wire'''</td><td>{{{wire}}}</td></tr>|}}<!--
-->{{#if:{{{spi}}}|<tr><td>'''SPI'''</td><td>{{{spi}}}</td></tr>|}}<!--
-->{{#if:{{{can}}}|<tr><td>'''CAN bus'''</td><td>{{{can}}}</td></tr>|}}<!--
-->{{#if:{{{uart}}}|<tr><td>'''UARTs'''</td><td>{{{uart}}}</td></tr>|}}<!--
-->{{#if:{{{usb}}}|<tr><td>'''USB'''</td><td>{{{usb}}}</td></tr>|}}<!--
-->{{#if:{{{audio}}}|<tr><td>'''Audio'''</td><td>{{{audio}}}</td></tr>|}}<!--
-->{{#if:{{{temp}}}|<tr><td>'''Temperature Range'''</td><td>{{{temp}}}</td></tr>|}}<!--
-->{{#if:{{{dim}}}|<tr><td>'''Dimensions'''</td><td>{{{dim}}}</td></tr>|}}
</table>
</div>
</div>
</div>
</div>
<div class="text-right d-inline-block d-md-none">
[[#top|<span class="mw-ui-button mw-ui-progressive my-3">To the top</span>]]
</div>
</div>
{| class="wikitable" style="background-color: #F0F0FF; margin: 0 auto; width:30%;"
|-
|{{#if:{{{cpu}}}|style="width:150px;"{{!}}CPU{{!}}{{!}}{{{cpu}}}|}}
{{#if:{{{cpu}}}|{{!}}-|}}
|{{#if:{{{mpu}}}|MPU{{!}}{{!}}{{{mpu}}}|}}
{{#if:{{{mpu}}}|{{!}}-|}}
|{{#if:{{{gfx}}}|GFX{{!}}{{!}}{{{gfx}}}|}}
{{#if:{{{gfx}}}|{{!}}-|}}
|{{#if:{{{ram}}}|RAM{{!}}{{!}}{{{ram}}}|}}
{{#if:{{{ram}}}|{{!}}-|}}
|{{#if:{{{lcd}}}|LCD{{!}}{{!}}{{{lcd}}}|}}
{{#if:{{{lcd}}}|{{!}}-|}}
|{{#if:{{{hdmi}}}|HDMI{{!}}{{!}}{{{hdmi}}}|}}
{{#if:{{{hdmi}}}|{{!}}-|}}
|{{#if:{{{rtc|}}}|{{!}}-{{!}} RTC{{!}} {{{rtc}}}|}}
|{{#if:{{{i2c|}}}|{{!}}-{{!}} I2C{{!}} {{{i2c}}}|}}
{{#if:{{{i2c}}}|{{!}}-|}}
|{{#if:{{{spi}}}|SPI{{!}}{{!}}{{{spi}}}|}}
{{#if:{{{spi}}}|{{!}}-|}}
|{{#if:{{{sd_mmc}}}|SD/MMC{{!}}{{!}}{{{sd_mmc}}}|}}
{{#if:{{{sd_mmc}}}|{{!}}-|}}
|{{#if:{{{nand}}}|NAND Flash{{!}}{{!}}{{{nand}}}|}}
{{#if:{{{nand}}}|{{!}}-|}}
|{{#if:{{{power}}}|Typical power consumtpion{{!}}{{!}}{{{power}}}|}}
{{#if:{{{power}}}|{{!}}-|}}
|{{#if:{{{temp}}}|Temp Range{{!}}{{!}}{{{temp}}}|}}
{{#if:{{{temp}}}|{{!}}-|}}
|{{#if:{{{usb}}}|USB{{!}}{{!}}{{{usb}}}|}}
{{#if:{{{usb}}}|{{!}}-|}}
|{{#if:{{{ethernet}}}|Ethernet{{!}}{{!}}{{{ethernet}}}|}}
{{#if:{{{ethernet}}}|{{!}}-|}}
|{{#if:{{{audio}}}|Audio codec{{!}}{{!}}{{{audio}}}|}}
{{#if:{{{audio}}}|{{!}}-|}}
|{{#if:{{{wireless}}}|Wireless{{!}}{{!}}{{{wireless}}}|}}
{{#if:{{{wireless}}}|{{!}}-|}}
|{{#if:{{{canbus}}}|Can-Bus controller{{!}}{{!}}{{{canbus}}}|}}
{{#if:{{{canbus}}}|{{!}}-|}}
|{{#if:{{{bluetooth}}}|Bluetooth{{!}}{{!}}{{{bluetooth}}}|}}
{{#if:{{{bluetooth}}}|{{!}}-|}}
|{{#if:{{{touch}}}|Touch panel controller{{!}}{{!}}{{{touch}}}|}}
{{#if:{{{touch}}}|{{!}}-|}}
|{{#if:{{{serial}}}|Serial Interfaces{{!}}{{!}}{{{serial}}}|}}
{{#if:{{{serial}}}|{{!}}-|}}
|}
<!--Categories-->
<!--Categories-->
{{#if:{{{category1}}}|[[Category:{{{category1}}}]]|}}
{{#if:{{{category1}}}|[[Category:{{{category1}}}]]|}}
{{#if:{{{category2}}}|[[Category:{{{category2}}}]]|}}
{{#if:{{{category2}}}|[[Category:{{{category2}}}]]|}}

Latest revision as of 20:33, 23 December 2023

Usage

Please use this string:

{{Product|image=###image class=img-fluid(default)|as-is(without resizing)###description=###|category1=###|category2=###
|documentation={{DocBox|system={Android,Linux,Yocto,Hardware}|content=###}}
|cpu=###
|ram=###
|display=###
|gfx=###
|storage=###
|rtc=###
|i2c=###
|spi=###
|net=###
|temp=Commercial\Extended
|usb=###
|audio=###
|uart=###
|dim=###
|wire=###}}

Product
[[File:{{{image}}}|class=img-fluid mb-3|Product]]

{{{description}}}

{{{documentation}}}
Specs summary
CPU{{{cpu}}}
Memory{{{ram}}}
GPU{{{gfx}}}
Display{{{display}}}
Storage{{{storage}}}
Network{{{net}}}
RTC{{{rtc}}}
I2C{{{i2c}}}
One-Wire{{{wire}}}
SPI{{{spi}}}
CAN bus{{{can}}}
UARTs{{{uart}}}
USB{{{usb}}}
Audio{{{audio}}}
Temperature Range{{{temp}}}
Dimensions{{{dim}}}

[[Category:{{{category1}}}]] [[Category:{{{category2}}}]]