Template:Navbox food: Difference between revisions
(updated to new navbox and sandbox) |
m (added missing translation stuff) |
||
Line 9: | Line 9: | ||
{{Translation guide|<syntaxhighlight lang="html"> | {{Translation guide|<syntaxhighlight lang="html"> | ||
{{#switch: {{{1|}}} | {{#switch: {{{1|}}} | ||
|liquid = Liquid | <!-- title --> | ||
|canned_picked = Canned/pickled | | food = Food | ||
|meat_fish = Meats & fishes | <!-- group --> | ||
|vegetable_fruit = Vegetables & fruits | | liquid = Liquid | ||
|foraged = Foraged | | canned_picked = Canned/pickled | ||
|animal_insect = Animals & insects | | meat_fish = Meats & fishes | ||
|grains_sweets = Grains & sweets | | vegetable_fruit = Vegetables & fruits | ||
|miscellaneous = Miscellaneous | | foraged = Foraged | ||
|condiments_spices = Condiments & spices | | animal_insect = Animals & insects | ||
|cooking_ingredients = Cooking ingredients | | grains_sweets = Grains & sweets | ||
|prepared_cooked = Prepared/cooked | | miscellaneous = Miscellaneous | ||
|evolved_recipes = Evolved recipes | | condiments_spices = Condiments & spices | ||
| cooking_ingredients = Cooking ingredients | |||
| prepared_cooked = Prepared/cooked | |||
| evolved_recipes = Evolved recipes | |||
| #default = [[Category:Incorrect template usage]] | |||
}} | }} | ||
</syntaxhighlight>}} | </syntaxhighlight>}} | ||
Line 29: | Line 33: | ||
{{ll|Category:Navbox}} | {{ll|Category:Navbox}} | ||
</noinclude><includeonly>{{Navbox | </noinclude><includeonly>{{Navbox | ||
| title = {{ll|:Category:Food|Food}} | | title = {{ll|:Category:Food|{{tt|name=Navbox food|default=Food|arg1=food}} | ||
| content = {{Navbox/row | | content = {{Navbox/row | ||
| group = {{tt|name=Navbox food|default=Liquid|arg1=liquid}} | | group = {{tt|name=Navbox food|default=Liquid|arg1=liquid}} |
Revision as of 11:00, 7 January 2024
This template should be transcluded at the bottom of all food pages.
Usage
{{navbox food}}
{{Navbox
| title = Food
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#switch: {{{1|}}}
<!-- title -->
| food = Food
<!-- group -->
| liquid = Liquid
| canned_picked = Canned/pickled
| meat_fish = Meats & fishes
| vegetable_fruit = Vegetables & fruits
| foraged = Foraged
| animal_insect = Animals & insects
| grains_sweets = Grains & sweets
| miscellaneous = Miscellaneous
| condiments_spices = Condiments & spices
| cooking_ingredients = Cooking ingredients
| prepared_cooked = Prepared/cooked
| evolved_recipes = Evolved recipes
| #default = [[Category:Incorrect template usage]]
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.