|
|
Line 3: |
Line 3: |
| }}{{#if:{{{time|}}}|<div style="margin: 0.25rem 0;">'''Time:''' {{{time}}}</div> | | }}{{#if:{{{time|}}}|<div style="margin: 0.25rem 0;">'''Time:''' {{{time}}}</div> |
| }}{{#if:{{{servings|}}}|<div style="margin: 0.25rem 0;">'''Servings:''' {{{servings}}}</div>}} | | }}{{#if:{{{servings|}}}|<div style="margin: 0.25rem 0;">'''Servings:''' {{{servings}}}</div>}} |
| {{#if:{{{difficulty|}}}|<div style="margin: 0.25rem 0;">'''Difficulty:''' <div style="display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; margin-right: 0.2rem; background-image: linear-gradient(#3f1, #1e0); box-shadow: 0 1px 2px rgba(0,0,0,0.3);"></div>{{#ifexpr:{{difficulty}} > 1|<div style="display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; margin-right: 0.2rem; background-image: linear-gradient(#cf2, #9f0); box-shadow: 0 1px 2px rgba(0,0,0,0.3);"></div>|<div style="display: inline-block; width: 0.8rem; height: 0.8rem; border: 0.05rem dashed silver; border-radius: 50%; margin-right: 0.2rem;"></div>}}{{#ifexpr:{{difficulty}} > 2|<div style="display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; margin-right: 0.2rem; background-image: linear-gradient(#fe2, #fd0); box-shadow: 0 1px 2px rgba(0,0,0,0.3);"></div>|<div style="display: inline-block; width: 0.8rem; height: 0.8rem; border: 0.05rem dashed silver; border-radius: 50%; margin-right: 0.2rem;"></div>}}{{#ifexpr:{{difficulty}} > 3|<div style="display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; margin-right: 0.2rem; background-image: linear-gradient(#fb2, #f80); box-shadow: 0 1px 2px rgba(0,0,0,0.3);"></div>|<div style="display: inline-block; width: 0.8rem; height: 0.8rem; border: 0.05rem dashed silver; border-radius: 50%; margin-right: 0.2rem;"></div>}}{{#ifexpr:{{difficulty}} > 4|<div style="display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; margin-right: 0.2rem; background-image: linear-gradient(#f42, #e01); box-shadow: 0 1px 2px rgba(0,0,0,0.3);"></div>|<div style="display: inline-block; width: 0.8rem; height: 0.8rem; border: 0.05rem dashed silver; border-radius: 50%; margin-right: 0.2rem;"></div>}}</div> | | {{#if:{{{difficulty|}}}|<div style="margin: 0.25rem 0;">'''Difficulty:''' {{#switch: {{{difficulty}}} |
| | |1={{difficulty/1}}{{difficulty/undefined}}{{difficulty/undefined}}{{difficulty/undefined}}{{difficulty/undefined}} |
| | |2={{difficulty/1}}{{difficulty/2}}{{difficulty/undefined}}{{difficulty/undefined}}{{difficulty/undefined}} |
| | |3={{difficulty/1}}{{difficulty/2}}{{difficulty/3}}{{difficulty/undefined}}{{difficulty/undefined}} |
| | |4={{difficulty/1}}{{difficulty/2}}{{difficulty/3}}{{difficulty/4}}{{difficulty/undefined}} |
| | |5={{difficulty/1}}{{difficulty/2}}{{difficulty/3}}{{difficulty/4}}{{difficulty/5}} |
| | }}</div> |
| }} | | }} |
| </div></includeonly><noinclude>{{documentation}}</noinclude> | | </div></includeonly><noinclude>{{documentation}}</noinclude> |
Template documentation
Parameters
{{summary
|type =
|time =
|servings = (for recipes only)
}}
Usage
{{summary
|type = Recipes
|time = 30 minutes
|servings = 4
|difficulty = 3
}}
Type: Recipes
Time: 30 minutes
Servings: 4