Difference between revisions of "Template:Food"

Jump to navigation Jump to search
m (try it like this)
m (+^world)
{{#if:{{{origin|}}} |{{row/kv| Origin | [[{{{origin}}}]] }} {{info/origin}} }}
{{#if:{{{'origin|}}} |{{row/kv| Origin | {{{'origin}}} }} {{raw/origin}} }}
{{#if:{{{earth|}}} |{{row/kv| World | [[Earth ({{{earth}}})]]<!-- REF:-->{{{^world|}}} }} {{info/earth}} [[category: food from {{{earth}}} earth]] }}
{{#if:{{{world|}}} |{{row/kv| World | [[{{{world}}}]]<!-- REF:-->{{{^world|}}} }} {{info/world}} [[category: {{demonym|{{{world}}}|}} food]] }}
{{#if:{{{'world|}}} |{{row/kv| World | {{{'world}}}<!-- REF:-->{{{^world|}}} }} {{raw/world}} }}
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}} }} {{info/universe}} }}
 
{{#if:<!-- -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
---->|<!-- there is a location row present
---->| <includeonly>{{infoboxmissing/no-world}}</includeonly> <!-- tag with missing world-location
-->}}
<!-- REF PARAMETER: -->{{#if:{{{^world|}}}| {{info/^ref}} }}
 
<!-- featured in -->{{row/kv| Featured In | ''{{{books}}}'' }}<!-- -->
{{#if:{{{books|}}}|<!-- see above ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ELSE: -->| <includeonly>{{missing/books}}</includeonly> }}
 
<!--
|origin=
|world= / earth=
|^world=
|universe=
|books=
<!-- ------------------ -->
{{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>
}}
 
<!-- ------------- -->