Difference between revisions of "Template:Food"

From The Coppermind
Jump to navigation Jump to search
m (Protected "Template:Food": High traffic page: We'd like all infobox changes to be discussed and agreed to by consensus ahead of time ([Edit=Allow only keepers] (indefinite) [Move=Allow only keepers] (indefinite)))
(rm featured in)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{infobox|title={{{name|{{PAGENAME}}}}}|id=Food|
{{infobox
 
|title={{{name|{{PAGENAME}}}}}|id=Food|
 
   
{{#if:{{{image|}}} |{{row/image+artist |{{{image}}} }}|}}
+
{{#if:{{{image|}}} |{{row/image+artist | {{{image}}} }} }}
   
 
<!-- about -->
 
<!-- about -->
{{#if:{{{ingredients|}}} |{{row/kv|Ingredients |{{{ingredients}}} }}|}}
+
{{#if:{{{ingredients|}}} |{{row/kv| Ingredients | {{{ingredients}}} }} {{info/ingredients}} }}
{{#if:{{{type|}}} |{{row/kv|Type |{{{type}}} }}|}}
+
{{#if:{{{type|}}} |{{row/kv| Type | {{{type}}} }} {{info/type}} }}
{{#if:{{{taste|}}} |{{row/kv|Taste |{{{taste}}} }}|}}
+
{{#if:{{{taste|}}} |{{row/kv| Taste | {{{taste}}} }} {{info/taste}} }}
   
 
<!-- location -->
 
<!-- location -->
{{#if:{{{origin|}}} |{{row/kv| Origin |[[{{{origin}}}]] }}|}}
+
{{#if:{{{origin|}}} |{{row/kv| Origin | [[{{{origin}}}]] }} {{info/origin}} }}
{{#if:{{{'origin|}}} |{{row/kv| Origin |{{{'origin}}} }}|}}
+
{{#if:{{{'origin|}}} |{{row/kv| Origin | {{{'origin}}} }} {{raw/origin}} }}
{{#if:{{{earth|}}} |{{row/kv| World |[[Earth ({{{earth}}})]] [[category: food from {{{earth}}} earth]] }}|}}
+
{{#if:{{{earth|}}} |{{row/kv| World of Origin | [[Earth ({{{earth}}})]]<!-- REF:-->{{{^world|}}} }} {{info/earth}} }}
{{#if:{{{world|}}} |{{row/kv| World |[[{{{world}}}]] [[category: {{demonym|{{{world}}}|}} food]] }}|}}
+
{{#if:{{{world|}}} |{{row/kv| World of Origin | {{toponym link|{{{world}}}}}{{cat ns|{{demonym|{{{world}}}|}} food|only=0}}<!-- REF:-->{{{^world|}}} }} {{info/world}} }}
{{#if:{{{'world|}}} |{{row/kv| World |{{{'world}}} {{raw/world}} }}|}}
+
{{#if:{{{'world|}}} |{{row/kv| World of Origin | {{{'world}}}<!-- REF:-->{{{^world|}}} }} {{raw/world}} }}
{{#if:{{{universe|}}} |{{row/kv| Universe |{{{universe}}} }}|}}
+
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}} }} {{info/universe}} }}
   
 
{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
<!-- featured in -->{{row/kv| Featured In |''{{{books}}}'' }}
 
  +
---->|<!-- there is a location row present
  +
---->| <includeonly>{{missing/world}}</includeonly> <!-- tag with missing world-location
 
-->}}
  +
<!-- REF PARAMETER: -->{{#if:{{{^world|}}}| {{info/^ref}} }}
   
}}<includeonly><!--
+
<!--
 
-->[[Category: Food]]<!--
 
-->[[Category: Culture]]<!--
 
   
  +
CATS:
-->{{#if:<!--
 
  +
-->{{cat ns|food|only=0}}<!--
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
 
-->||{{infobox/no-world}}<!--
+
-->{{cat ns|culture|only=0}}<!--
-->}}<!--
 
   
  +
END:
-->{{#if:{{{world-raw|}}}{{{raw-world|}}}|[[category: depreciated raw parameters]]}}<!--
 
 
-->}}<includeonly><!--
 
 
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!--
 
  +
--></includeonly><noinclude>[[category: infoboxes]]
 
--></includeonly><noinclude>
 
   
 
The {{t|food}} template is used to describe foods and drinks from Brandon Sanderson's worlds that don't exist in ours.
 
The {{t|food}} template is used to describe foods and drinks from Brandon Sanderson's worlds that don't exist in ours.
Line 48: Line 46:
 
|origin=
 
|origin=
 
|world= / earth=
 
|world= / earth=
  +
|^world=
 
|universe=
 
|universe=
|books=
 
 
}}
 
}}
 
</pre>
 
</pre>
Line 113: Line 111:
 
<!-- ------------------ -->
 
<!-- ------------------ -->
 
{{docs/world|subject=food or drink}}
 
{{docs/world|subject=food or drink}}
 
<!-- ROW: ^world -->
  +
{{docs/row/optional
  +
|param= ^world
  +
|desc= Use to add a reference to either the <code>world</code> or <code>earth</code> parameter
  +
|eg=
  +
<code><nowiki>|^world={{wob ref|12345}}</nowiki></code>
  +
}}
   
 
<!-- ------------- -->
 
<!-- ------------- -->
Line 118: Line 123:
 
<!-- ------------- -->
 
<!-- ------------- -->
 
{{docs/universe|subject=food or drink}}
 
{{docs/universe|subject=food or drink}}
 
<!-- ---------- -->
 
<!-- ROW: books -->
 
<!-- ---------- -->
 
{{docs/books|subject=food or drink}}
 
   
 
|}
 
|}
 
   
 
=== Categories & Tags ===
 
=== Categories & Tags ===
Line 134: Line 133:
 
Specifying a <code>world</code> will apply the appropriate ''food'' category using that world's {{t|demonym}} (<small>e.g. <code>|earth=Roshar</code> will apply [[:Category: Rosharan food]]</small>).
 
Specifying a <code>world</code> will apply the appropriate ''food'' category using that world's {{t|demonym}} (<small>e.g. <code>|earth=Roshar</code> will apply [[:Category: Rosharan food]]</small>).
   
  +
== Articles using Template ==
 
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
[[Category: Infoboxes]]
 
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Latest revision as of 18:29, 15 March 2024

Food

The {{food}} template is used to describe foods and drinks from Brandon Sanderson's worlds that don't exist in ours.

Template

{{food
|image=
|ingredients=
|type=
|taste=
|origin=
|world= / earth=
|^world=
|universe=
}}

Parameters

Highlighted lines indicate mandatory parameters. On lines with multiple parameters (e.g. |world= / earth=) pick only the one most appropriate.

{{Food}} Parameters
Parameter Description Examples
image Use this to display a relevant image hosted on the Coppermind.

See Help:Infoboxes for further details.

|image=Chouta.jpg

ingredients Use this to list the main ingredients of the food or drink.

|ingredients=Fermented [[lavis]]

type Use this to apply a broad category to the food or drink.

|type=Alcohol
|type=Dinner meal

taste Use this to describe the primary taste(s) of the food or drink.

|taste=Sweet

origin Use this to specify the place of origin of the food or drink.

Note: Automatically generates a link. To bypass this, use 'origin.

|origin=Herdaz

world
or
earth
Use this to specify the planet where the food or drink can be found.

Note: Automatically generates a link. To bypass this, use 'world.
See Help:Infoboxes for further details.

|world=Roshar
|earth=Reckoners
|'world=Mars

^world Use to add a reference to either the world or earth parameter

|^world={{wob ref|12345}}

universe Use this to indicate the (connected) universe where the food or drink can be found.

See Help: Infoboxes for further details.

|universe=[[Cosmere]]
|universe=[[Cytoverse]]
|universe=[[Wode]] [[State]]s
|universe=''Standalone''

Categories & Tags

Pages that make use of the {{food}} template will be added to Category: Food and Category: Culture.

Specifying an earth will apply the appropriate Earth category (e.g. |earth=Reckoners will apply Category: Food from Earth (Reckoners)).

Specifying a world will apply the appropriate food category using that world's {{demonym}} (e.g. |earth=Roshar will apply Category: Rosharan food).

Articles using Template