Difference between revisions of "Template:Infobox 3d printer"
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | < | + | {{Infobox |
− | + | | bodyclass = hrecipe adr | |
− | < | + | |
− | < | + | | titleclass = fn |
− | + | | titlestyle = | |
− | + | | title = <includeonly><span {{#if:{{{name_lang|}}}|lang="{{{name_lang}}}"}} {{#ifeq:{{{name_italics|false}}}|true|style="font-style: italic;"|}}>{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}</span></includeonly> | |
− | </ | + | |
− | + | | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|}}} |sizedefault=frameless |alt={{{image_alt|{{{alt|}}}}}} |title={{{image_alt|{{{alt|}}}}}} }} | |
− | + | | captionstyle = {{#if:{{{caption|}}} |padding-bottom:0.25em;border-bottom:1px solid #aaa;}} | |
− | < | + | | caption = {{{caption|}}} |
− | + | ||
− | + | | labelstyle = line-height:1.15em;<!--(modified longitem)--> | |
− | </ | + | padding-right:0.65em;<!--(to ensure some gap between (non-wrapped) labels and subsequent data)--> |
− | + | ||
− | + | | rowclass2 = note | |
− | </ | + | | label2 = Alternative names |
− | + | | data2 = {{{alternate_name|{{{alternate name|}}}}}} | |
− | + | ||
− | </ | + | | label3 = Type |
− | < | + | | data3 = {{{type|}}} |
+ | |||
+ | | label4 = Course | ||
+ | | data4 = {{{course|}}} | ||
+ | |||
+ | | rowclass5 = note | ||
+ | | label5 = Place of origin | ||
+ | | class5 = country-name | ||
+ | | data5 = {{{country|}}} | ||
+ | |||
+ | | rowclass7 = note | ||
+ | | label7 = Region or state | ||
+ | | class7 = region | ||
+ | | data7 = {{{region|}}} | ||
+ | |||
+ | | label9 = Associated [[:Category:Cuisine by country|national cuisine]] | ||
+ | | data9 = {{{national_cuisine|}}} | ||
+ | |||
+ | | rowclass11 = note | ||
+ | | label11 = Created by | ||
+ | | class11 = author | ||
+ | | data11 = {{#if:{{{creators|}}} |{{{creators}}} |{{{creator|}}} }} | ||
+ | |||
+ | | label13 = Invented | ||
+ | | data13 = {{{year|}}} | ||
+ | |||
+ | <!----------------------Cooking time-----------------------> | ||
+ | | label15 = Cooking time | ||
+ | | data15 = {{#if:{{{mintime|{{{time1|}}}}}}{{{maxtime|{{{time2|}}}}}} | ||
+ | | {{nowrap | ||
+ | | {{#iferror: <!--(display nothing if calculations below generate an error)--> | ||
+ | {{#if:{{{mintime|{{{time1|}}}}}} | ||
+ | | {{#ifexpr:{{#expr:{{{mintime|{{{time1|}}}}}}>60}} | ||
+ | <!----(time is "X hour/s Y min":)----> | ||
+ | | <!----hours:-->{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}} <!-- | ||
+ | <!--(units:)-->[[hour]]{{#ifeq:{{rounddown|{{#expr:{{{mintime|{{{time1|}}}}}}/60}}}}|1 | |s}} <!-- | ||
+ | <!--minutes:-->{{#ifeq:{{#expr:{{{mintime|{{{time1|}}}}}} mod 60}}|0 |<!--(omit if "0 min")--> | ||
+ | | {{#expr:{{{mintime|{{{time1|}}}}}} mod 60}} [[Minute|min]] | ||
+ | }} | ||
+ | <!----(else time is "X minute/s":)----> | ||
+ | | {{{mintime|{{{time1|}}}}}} <!--(units:)-->[[minute]]{{#ifeq:{{{mintime|{{{time1|}}}}}}|1 | |s}} | ||
+ | }} }} }}<!-- | ||
+ | -->{{#iferror: | ||
+ | {{#if:{{{maxtime|{{{time2|}}}}}} | ||
+ | | {{#if:{{{mintime|{{{time1|}}}}}} |<!--(then cooking time given is from min(imum)time to | ||
+ | max(imum), so insert the "to" before the maximum:)--> to}} <!-- | ||
+ | -->{{#ifexpr:{{#expr:{{{maxtime|{{{time2|}}}}}}>60}} <!--("X hour/s Y min" as above)--> | ||
+ | | {{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}} hour{{#ifeq:{{rounddown|{{#expr:{{{maxtime|{{{time2|}}}}}}/60}}}}|1 | |s}} <!-- | ||
+ | -->{{#ifeq:{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}}|0 | |{{#expr:{{{maxtime|{{{time2|}}}}}} mod 60}} min}} | ||
+ | | {{{maxtime|{{{time2|}}}}}} minute{{#ifeq:{{{maxtime|{{{time2|}}}}}}|1 | |s}} | ||
+ | }} }} }}<!-- | ||
+ | -->}} }} | ||
+ | <!---------------------------------------------------------> | ||
+ | |||
+ | | label17 = Serving temperature | ||
+ | | data17 = {{{served|}}} | ||
+ | |||
+ | | label19 = Main ingredients | ||
+ | | class19 = ingredient | ||
+ | | data19 = {{{main_ingredient|}}} | ||
+ | |||
+ | | label21 = Ingredients generally used | ||
+ | | class21 = ingredient | ||
+ | | data21 = {{{minor_ingredient|}}} | ||
+ | |||
+ | | label23 = Variations | ||
+ | | data23 = {{{variations|}}} | ||
+ | |||
+ | <!-----------------------Food energy-----------------------> | ||
+ | | label25 = {{longitem|style=line-height:1.1em;white-space:nowrap; | ||
+ | | 1 = [[Food energy]]<br/><span style="font-size:90%;font-weight:normal;"><!-- | ||
+ | -->(per {{#switch:{{{serving_size|}}} | ||
+ | | 100 grams |100 [[Gram|g]] |100 g |100g = 100 [[Gram|g]] serving) | ||
+ | | #default = {{{serving_size|}}} serving) | ||
+ | }}<!-----></span> | ||
+ | }} | ||
+ | | class25 = nutrition | ||
+ | | data25 = {{#if:{{{calories|}}} | ||
+ | | {{{calories}}} [[Calorie|kcal]]<!-- | ||
+ | -->{{#iferror: ({{#expr:{{{calories}}}*4.1868 round 0}} [[kilojoule|kJ]])}}<!-- | ||
+ | -->{{{calories_ref|}}} | ||
+ | }} | ||
+ | |||
+ | <!--------------------Nutritional value--------------------> | ||
+ | | label27 = {{longitem|style=line-height:1.1em;white-space:nowrap; | ||
+ | | 1 = [[Nutrition|Nutritional value]]<br/><span style="font-size:90%;font-weight:normal;"><!-- | ||
+ | -->(per {{#switch:{{{serving_size|}}} | ||
+ | | 100 grams |100 [[Gram|g]] |100 g |100g = 100 [[Gram|g]] serving) | ||
+ | | #default = {{{serving_size|}}} serving) | ||
+ | }}<!-- --></span> | ||
+ | }} | ||
+ | | data27 = {{#if:{{{protein|}}}{{{fat|}}}{{{carbohydrate|}}} | ||
+ | | {{Infobox | ||
+ | |bodystyle={{infobox subbox bodystyle}} | ||
+ | |labelstyle=width:6.75em;padding-right:0.35em;<!--(to ensure some gap between "Carbohydrate" and any subsequent data)-->line-height:1.3em;font-weight:normal; | ||
+ | |datastyle=line-height:1.3em; | ||
+ | |label1=[[Protein (nutrient)|Protein]] |data1={{{protein}}} [[Gram|g]] | ||
+ | |label2=[[Fat]] |data2={{{fat}}} [[Gram|g]] | ||
+ | |label3=[[Carbohydrate]] |data3={{{carbohydrate}}} [[Gram|g]] | ||
+ | }} }} | ||
+ | |||
+ | <!--------------------Glycemic index-----------------------> | ||
+ | | label32 = [[Glycemic index|{{allow wrap|Glycemic index}}]] | ||
+ | | data32 = {{#iferror: | ||
+ | {{#if:{{{glycemic_index|}}} | ||
+ | | {{smaller | ||
+ | | {{#ifexpr:{{#expr:{{{glycemic_index}}}<56}} | ||
+ | | {{{glycemic_index}}} ({{background|#ccffcc|low}}) | ||
+ | | {{#ifexpr:{{#expr:{{{glycemic_index}}}<70}} | ||
+ | | {{{glycemic_index}}} ({{background|#ffff99|medium}}) | ||
+ | | {{{glycemic_index}}} ({{background|#ffcc99|high}}) | ||
+ | }} }} }} }} }} | ||
+ | <!---------------------------------------------------------> | ||
+ | |||
+ | | label34 = Similar dishes | ||
+ | | data34 = {{{similar_dish|}}} | ||
+ | |||
+ | | label36 = Other information | ||
+ | | data36 = {{{other|}}} | ||
+ | |||
+ | |||
+ | | belowstyle = border-top:1px solid #aaa;padding-top:0.25em;{{{belowstyle|}}} | ||
+ | | below = {{Unbulleted list | ||
+ | | {{#if:{{{no_recipes|}}} <includeonly>|</includeonly> |{{Wikibooks-inline|short=yes|Special:Search|Cookbook: {{{cookbook|{{{name|{{PAGENAME}}}}}}}}}} }} | ||
+ | | {{#if:{{{no_commons|}}} <includeonly>|</includeonly> |<!-- | ||
+ | -->{{#if:{{{commons|}}}{{#invoke:Commons link|hasGalleryOrCategory|qid={{{qid|}}}}}| {{Commons-inline|short=yes|{{{commons|}}}|qid={{{qid|}}}|notrack=1|<!-- | ||
+ | -->Media{{colon}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}} }} }} | ||
+ | }} | ||
+ | |||
+ | }} | ||
</includeonly> | </includeonly> | ||
Revision as of 02:14, 27 June 2022
| image = Script error: No such module "InfoboxImage".
| captionstyle =
| caption =
| labelstyle = line-height:1.15em;
padding-right:0.65em;
| rowclass2 = note | label2 = Alternative names | data2 =
| label3 = Type | data3 =
| label4 = Course | data4 =
| rowclass5 = note | label5 = Place of origin | class5 = country-name | data5 =
| rowclass7 = note | label7 = Region or state | class7 = region | data7 =
| label9 = Associated national cuisine | data9 =
| rowclass11 = note | label11 = Created by | class11 = author | data11 =
| label13 = Invented | data13 =
| label15 = Cooking time | data15 =
| label17 = Serving temperature | data17 =
| label19 = Main ingredients | class19 = ingredient | data19 =
| label21 = Ingredients generally used | class21 = ingredient | data21 =
| label23 = Variations | data23 =
| label25 = Template:Longitem | class25 = nutrition | data25 =
| label27 = Template:Longitem | data27 =
| label32 = [[Glycemic index|Template:Allow wrap]] | data32 =
| label34 = Similar dishes | data34 =
| label36 = Other information | data36 =
| belowstyle = border-top:1px solid #aaa;padding-top:0.25em;
| below = Template:Unbulleted list
}} </includeonly>
Template for the 3D printers
Parameter | Description | Type | Status | |
---|---|---|---|---|
Printer Name | Printer Name | no description | String | optional |
Picture | Picture | no description | Content | optional |
Manufacturer | Manufacturer | no description | String | optional |
Model | Model | no description | String | optional |
Network Address | Network Address | no description | URL | optional |
Nozzle Size (mm) | Nozzle Size (mm) | no description | Number | optional |
Nozzle Type | Nozzle Type | no description | String | optional |
Nozzle Count | Nozzle Count | no description | Number | optional |
Filament Size (mm) | Filament Size (mm) | no description | Number | optional |
Print Volume (mm) | Print Volume (mm) | no description | String | optional |
Max Bed Temperature (C) | Max Bed Temperature (C) | no description | Number | optional |
Max Nozzle Temperature (C) | Max Nozzle Temperature (C) | no description | Number | optional |
Max Print Speed (mm/s) | Max Print Speed (mm/s) | no description | Number | optional |
Extruder Type | Extruder Type | no description | String | optional |
Manual | Manual | no description | File | optional |