Template:Recipe: Difference between revisions

    From UNITApedia
    No edit summary
     
    No edit summary
     
    (23 intermediate revisions by the same user not shown)
    Line 1: Line 1:
    <noinclude>
    <noinclude>
    This is the "Recipe" template.
    {{#template_params:
    It should be called in the following format:
    Recipe
    <pre>
    |Category (label=Category of recipes;display=nonempty)
    {{Recipe
    |Final objectives
    |RecipeCategory=
    |Specific objectives (label=Specif objectives)
    |RecipeIngredients=
    |Ingredients (holds template=Recipe ingredient)
    |RecipeDifficultyLevel=
    |Outcome (label=Outcomes : ECTS or certificate of attendance)
    |RecipeBudgetDescription=
    |Difficulty (label=Level of difficulty;display=nonempty)
    |RecipeCostScore=
    |Calendar and time (label=Calendar and time needed)
    |RecipeImg=
    |Budget and cost (display=nonempty)
    |RecipeVideo=
    |Budget description (label=Budget description)
    |Roles and responsabilities
    |Instructions (display=nonempty)
    |Author (label=Name of the author)
    |Image
    |Resources
    |Tips (label=Tips and Tricks)
    |FAQ
    |Success (label=Success story)
    }}
    }}
    </pre>
    Edit the page to see the template text.
    </noinclude><includeonly>
    ==Categories==
    {{#arraymap:{{{RecipeCategory|}}}|,|x|[[Has Category::x]]}}


    </noinclude>
    <includeonly>
    <!--{{#template_display:_format=table}}-->
    <table class="customInfoTable">
        <tr>
          <th colspan="2">[[Name::{{FULLPAGENAME}}]]</th>
        </tr>
        {{#if:{{{RecipeImg|}}}|
        <tr>
          <td colspan="2" style="text-align: center;">
            [[File:{{{RecipeImg|}}}|350px]]
            <div style="display: none">[[Has image::{{{RecipeImg|}}}]]</div>
          </td>
        </tr>
        }}
        {{#if:{{{RecipeCategory|}}}|
        <tr>
            <td>Category</td>
            <td>{{#arraymap:{{{RecipeCategory|}}}|,|x|[[Has Category::x]]}}</td>
        </tr>
        }}
        {{#if:{{{RecipeFinalObjectives|}}}|
        <tr>
            <td>Final Objectives</td>
            <td>[[Final objectives::{{{RecipeFinalObjectives|}}}]]</td>
        </tr>
        }}
        {{#if:{{{RecipeSpecificObjectives|}}}|
        <tr>
            <td>Specific Objectives</td>
            <td>[[Specific objectives::{{{RecipeSpecificObjectives|}}}]]</td>
        </tr>
        }}
        {{#if:{{{RecipeOutcomes|}}}|
        <tr>
            <td>Outcome</td>
            <td>[[Outcome::{{{RecipeOutcomes|}}}]]</td>
        </tr>
        }}
        {{#if:{{{RecipeDifficultyLevel|}}}|
        <tr>
            <td>Difficulty Level</td>
            <td>[[Difficulty level::{{{RecipeDifficultyLevel|}}}]]</td>
        </tr>
        }}
        {{#if:{{{RecipeCostScore|}}}|
        <tr>
            <td>Cost Score</td>
            <td>[[Cost score::{{{RecipeCostScore|}}}]]</td>
        </tr>
        }}
        {{#if:{{{RecipeBudgetDescription|}}}|
        <tr>
            <td>Budget Description</td>
            <td>[[Budget description::{{{RecipeBudgetDescription|}}}]]</td>
        </tr>
        }}
        {{#if:{{{RecipeAuthor|}}}|
        <tr>
            <td>Author</td>
            <td>[[Author::User:{{{RecipeAuthor|}}}]]</td>
        </tr>
        }}
    </table>
    ==Video==
    [[Has video::{{{RecipeVideo|}}}]]


    ==Ingredients==
    ==Ingredients==
    {{#arraymap:{{{RecipeIngredients|}}}|,|x|[[Has Ingredients::x]]}}
    {{#arraymap:{{{RecipeIngredients|}}}|{{Template:Ingredient}}|<br />}}


    ==Instructions==
    {{#arraymap:{{{RecipeInstructions|}}}|{{Template:Instruction}}|<br />}}


    ==Level of difficulty==
    ==Resources==
    [[Difficulty level::{{{RecipeDifficultyLevel|}}}]]
    {{#arraymap:{{{RecipeResources|}}}|{{Template:Resource}}|<br />}}


    ==Budget description==
    ==Tips and Tricks==
    [[Budget description::{{{RecipeBudgetDescription|}}}]]
    {{#arraymap:{{{RecipeTips|}}}|{{Template:Tip}}|<br />}}


    ==Cost score==
    ==FAQ==
    [[Cost score::{{{RecipeCostScore|}}}]]
    {{#arraymap:{{{RecipeFAQ|}}}|{{Template:FAQ}}|<br />}}


    ==Image==
    ==Success Story==
    [[Has image::{{{RecipeImg|}}}]]
    {{#arraymap:{{{RecipeSuccessStory|}}}|{{Template:SuccessStory}}|<br />}}


    ==Video==
    [[Has video::{{{RecipeVideo|}}}]]


    [[Category:Recipe]]
    [[Category:Recipe]]
    [[Category:{{{RecipeCategory|}}}]]
    </includeonly>
    </includeonly>

    Latest revision as of 14:27, 26 September 2024

    This is the "Recipe" template.

    It should be called in the following format:

    {{Recipe
    |Recipe=
    |Category=
    |Final objectives=
    |Specific objectives=
    |Ingredients=
    |Outcome=
    |Difficulty=
    |Calendar and time=
    |Budget and cost=
    |Budget description=
    |Roles and responsabilities=
    |Instructions=
    |Author=
    |Image=
    |Resources=
    |Tips=
    |FAQ=
    |Success=
    }}

    Edit the page to see the template text.