Template:Recipe: Difference between revisions

    From UNITApedia
    No edit summary
    No edit summary
     
    (8 intermediate revisions by the same user not shown)
    Line 1: Line 1:
    <noinclude>
    {{#template_params:
    Recipe
    |Category (label=Category of recipes;display=nonempty)
    |Final objectives
    |Specific objectives (label=Specif objectives)
    |Ingredients (holds template=Recipe ingredient)
    |Outcome (label=Outcomes : ECTS or certificate of attendance)
    |Difficulty (label=Level of difficulty;display=nonempty)
    |Calendar and time (label=Calendar and time needed)
    |Budget and cost (display=nonempty)
    |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)
    }}
    </noinclude>
    <includeonly>
    <includeonly>
    {{#template_display:_format=table}}
    <!--{{#template_display:_format=table}}-->
    <table class="customInfoTable">
    <table class="customInfoTable">
         <tr>
         <tr>
    Line 22: Line 45:
         <tr>
         <tr>
             <td>Final Objectives</td>
             <td>Final Objectives</td>
             <td>{{{RecipeFinalObjectives|}}}</td>
             <td>[[Final objectives::{{{RecipeFinalObjectives|}}}]]</td>
         </tr>
         </tr>
         }}
         }}
    Line 28: Line 51:
         <tr>
         <tr>
             <td>Specific Objectives</td>
             <td>Specific Objectives</td>
             <td>{{{RecipeSpecificObjectives|}}}</td>
             <td>[[Specific objectives::{{{RecipeSpecificObjectives|}}}]]</td>
         </tr>
         </tr>
         }}
         }}
    Line 34: Line 57:
         <tr>
         <tr>
             <td>Outcome</td>
             <td>Outcome</td>
             <td>{{{RecipeOutcomes|}}}</td>
             <td>[[Outcome::{{{RecipeOutcomes|}}}]]</td>
         </tr>
         </tr>
         }}
         }}
    Line 52: Line 75:
         <tr>
         <tr>
             <td>Budget Description</td>
             <td>Budget Description</td>
             <td>{{{RecipeBudgetDescription|}}}</td>
             <td>[[Budget description::{{{RecipeBudgetDescription|}}}]]</td>
        </tr>
        }}
        {{#if:{{{RecipeAuthor|}}}|
        <tr>
            <td>Author</td>
            <td>[[Author::User:{{{RecipeAuthor|}}}]]</td>
         </tr>
         </tr>
         }}
         }}
    </table>
    </table>
    ==Video==
    [[Has video::{{{RecipeVideo|}}}]]


    ==Ingredients==
    ==Ingredients==
    {{#arraymap:{{{RecipeIngredients|}}}|Template:Ingredient}}
    {{#arraymap:{{{RecipeIngredients|}}}|{{Template:Ingredient}}|<br />}}


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


    ==Resources==
    ==Resources==
    {{#arraymap:{{{RecipeResources|}}}|Template:Resource}}
    {{#arraymap:{{{RecipeResources|}}}|{{Template:Resource}}|<br />}}


    ==Tips and Tricks==
    ==Tips and Tricks==
    {{#arraymap:{{{RecipeTips|}}}|Template:Tip}}
    {{#arraymap:{{{RecipeTips|}}}|{{Template:Tip}}|<br />}}


    ==FAQ==
    ==FAQ==
    {{#arraymap:{{{RecipeFAQ|}}}|Template:FAQ}}
    {{#arraymap:{{{RecipeFAQ|}}}|{{Template:FAQ}}|<br />}}


    ==Success Story==
    ==Success Story==
    {{#arraymap:{{{RecipeSuccessStory|}}}|Template:SuccessStory}}
    {{#arraymap:{{{RecipeSuccessStory|}}}|{{Template:SuccessStory}}|<br />}}


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


    [[Category:Recipe]]
    [[Category:Recipe]]
    [[Category:{{{RecipeCategory|}}}]]
    [[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.