Template:Recipe Usage/core: Difference between revisions

From PZwiki
mNo edit summary
mNo edit summary
Line 1: Line 1:
<includeonly>|-
<includeonly>{{!}}-
| [[File:{{{productimage|product}}}]]<br>{{{product}}} {{#if: {{{qproduct|}}}|<span style="color:#666"><small>×{{{qproduct|}}}</small></span>}}
{{!}} [[File:{{{productimage|product}}}]]<br>{{{product}}} {{#if: {{{qproduct|}}}|<span style="color:#666"><small>×{{{qproduct|}}}</small></span>}}
|
{{!}}
{| width=100%
{{{!}} width=100%
{{!}} {{#if:{{{image1|}}}|[[File:{{{image1}}}]]<br>}} {{{item1|}}}{{#if: {{{q1|}}}|<span style="color:#666"><small> ×{{{q1|}}}</small></span>}}{{#if: {{{item2|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
{{!}} {{#if:{{{image1|}}}|[[File:{{{image1}}}]]<br>}} {{{item1|}}}{{#if: {{{q1|}}}|<span style="color:#666"><small> ×{{{q1|}}}</small></span>}}{{#if: {{{item2|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
{{!}} {{#if:{{{image2|}}}|[[File:{{{image2}}}]]<br>}} {{{item2|}}}{{#if: {{{q2|}}}|<span style="color:#666"><small> ×{{{q2|}}}</small></span>}}{{#if: {{{item3|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
{{!}} {{#if:{{{image2|}}}|[[File:{{{image2}}}]]<br>}} {{{item2|}}}{{#if: {{{q2|}}}|<span style="color:#666"><small> ×{{{q2|}}}</small></span>}}{{#if: {{{item3|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
Line 13: Line 13:
{{!}} {{#if:{{{image9|}}}|[[File:{{{image9}}}]]<br>}} {{{item9|}}}{{#if: {{{q9|}}}|<span style="color:#666"><small> ×{{{q9|}}}</small></span>}}{{#if: {{{item10|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
{{!}} {{#if:{{{image9|}}}|[[File:{{{image9}}}]]<br>}} {{{item9|}}}{{#if: {{{q9|}}}|<span style="color:#666"><small> ×{{{q9|}}}</small></span>}}{{#if: {{{item10|}}}| {{!}}{{!}} <span style="font-size:230%;">+</span></td>
{{!}} {{#if:{{{image10|}}}|[[File:{{{image10}}}]]<br>}} {{{item10|}}}{{#if: {{{q10|}}}|<span style="color:#666"><small> ×{{{q10|}}}</small></span>}}}}}}}}}}}}}}}}}}}}
{{!}} {{#if:{{{image10|}}}|[[File:{{{image10}}}]]<br>}} {{{item10|}}}{{#if: {{{q10|}}}|<span style="color:#666"><small> ×{{{q10|}}}</small></span>}}}}}}}}}}}}}}}}}}}}
|}
{{!}}}
| {{#if:{{{equipment|}}}|{{#if:{{{equipmentimage|}}}|[[File:{{{equipmentimage}}}]]<br>}}}} {{{equipment|-}}}
{{!}} {{#if:{{{equipment|}}}|{{#if:{{{equipmentimage|}}}|[[File:{{{equipmentimage}}}]]<br>}}}} {{{equipment|-}}}
| {{#if:{{{workstation|}}}|{{#if:{{{workstationimage|}}}|[[File:{{{workstationimage}}}]]<br>}}}} {{{workstation|-}}}
{{!}} {{#if:{{{workstation|}}}|{{#if:{{{workstationimage|}}}|[[File:{{{workstationimage}}}]]<br>}}}} {{{workstation|-}}}
| {{{time|}}}
{{!}} {{{time|}}}
| {{#if:{{{recipe|}}}|{{#if:{{{recipeimage|}}}|[[File:{{{recipeimage}}}]]<br>}}}} {{{recipe|-}}}
{{!}} {{#if:{{{recipe|}}}|{{#if:{{{recipeimage|}}}|[[File:{{{recipeimage}}}]]<br>}}}} {{{recipe|-}}}
| {{#if:{{{skill|}}}|{{#if:{{{skillimage|}}}|[[File:{{{skillimage}}}]]<br>}}}} {{{skill|-}}} {{#if:{{{skilllevel|}}}|Level {{{skilllevel|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>
{{!}} {{#if:{{{skill|}}}|{{#if:{{{skillimage|}}}|[[File:{{{skillimage}}}]]<br>}}}} {{{skill|-}}} {{#if:{{{skilllevel|}}}|Level {{{skilllevel|}}}}}</includeonly><noinclude>{{Documentation}}</noinclude>

Revision as of 08:58, 17 January 2020

[view] [edit] [history] [purge] Template documentation
The following can be copy and pasted, with the unneeded parameters deleted:
{{Recipe Usage/core
|productimage= | product= | qproduct=
|image1= | item1= | q1=
|image2= | item2= | q2=
|image3= | item3= | q3=
|image4= | item4= | q4=
|image5= | item5= | q5=
|image6= | item6= | q6=
|image7= | item7= | q7=
|image8= | item8= | q8=
|image9= | item9= | q9=
|image10= | item10= | q10=
|equipmentimage= |equipment=
|workstationimage= |workstation=
|time=
|recipeimage= |recipe=
|skillimage= |skill= |skilllevel=
}}

Example

{| class="wikitable theme-red" style="text-align:center;" 
|- 
! width=120px | Product 
! width=120px | Materials
! width=120px | Equipment
! width=120px | Workstation
! width=120px | Time
! width=120px | Recipe
! width=150px | Skill
{{Recipe_Usage/core
|productimage=Bread.png 		|product=[[Bread]]
|image1=WaterDrop.png 			|item1=[[Water]] 		|q1=1 unit
|image2=Flour.png 			|item2=[[Flour]] 		|q2=1 unit
|image3=Salt.png 			|item3=[[Salt]] 		|q3=1 unit
|image4=Yeast.png 			|item4=[[Yeast]] 		|q4=1 unit
|equipmentimage=RollingPin.png 		|equipment=[[Rolling Pin]]
|workstationimage=Oven.png{{!}}32px 	|workstation=[[Oven]]
|time=<small>Cooked: 20min<br>Burned: 50min</small>
|recipeimage=MagazineFood2.png 		|recipe=[[Good Cooking Magazine|Good Cooking Magazine Vol.2]]
|skill=[[Cooking]] 			|skilllevel=0
}}
|}

Produces

Product Materials Equipment Workstation Time Recipe Skill
Bread.png
Bread
WaterDrop.png
Water ×1 unit
+ Flour.png
Flour ×1 unit
+ Salt.png
Salt ×1 unit
+ Yeast.png
Yeast ×1 unit
- Oven.png
Heat source
MagazineFood2.png
Good Cooking Magazine Vol.2
Cooking Level 0
Documentation transcluded from Template:Recipe Usage/core/doc.
Editors can experiment in this template's sandbox (create)