(1 版)
タグ: sourceedit
1行目: 1行目:
  +
<onlyinclude>{{Infoboxframe|
<div id="Food" class="infobox hidable" style="padding: 0px; {{#if:{{{width|}}}|width:{{{width}}};|}}">
 
  +
{{Infocell|type=image
{| class="infoboxtable hidable-content" cellspacing="0" cellpadding="4" style="border-width: 0px"
 
  +
|BG1=FF8000
|-
 
  +
|image={{{image|}}}
| class="infoboximage" colspan="2" style="{{#if:{{{imageBG|}}}|background: #{{{imageBG}}}|{{#if:006400|background: #006400|background: #999999}}}}" | {{{image|}}}
 
  +
|imageBG={{{imageBG|}}}
|-
 
 
}}
! class="infoboxheading" colspan="2" style="{{#if:006400|background: #006400|background: #999999}}; {{{css|}}}" | {{{{{{2|name}}}}}}
 
  +
{{Infocell|type=heading
{{#if:{{{invented|}}}|
 
  +
|BG1=FF8000
{{!}}-
 
 
|name={{{name|}}}
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Invented in
 
 
}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
  +
{{Infocell|type=section
{{{invented|}}}
 
  +
|section=歴史的な情報
{{!}}-
 
  +
|BG2=FFBF00
|}} {{#if:{{{ingredients|}}}|
 
  +
|hidecells={{{home|}}} {{{date|}}} {{{race|}}} {{{creator|}}} {{{found|}}}
{{!}}-
 
 
}}
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Ingredients
 
  +
{{Infocell|type=field
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
  +
|description=<span style="white-space:nowrap;">母星</span>
{{{ingredients|}}}
 
  +
|fieldname={{{home|}}}
{{!}}-
 
  +
}}
|}} {{#if:{{{made|}}}|
 
  +
{{Infocell|type=field
{{!}}-
 
  +
|description=誕生
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Made by
 
  +
|fieldname={{{date|}}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
  +
}}
{{{made|}}}
 
  +
{{Infocell|type=field
{{!}}-
 
  +
|description=種族
|}} {{#if:{{{found|}}}|
 
  +
|fieldname={{{race|}}}
{{!}}-
 
  +
}}
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Found on
 
  +
{{Infocell|type=field
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
  +
|description=発案者
{{{found|}}}
 
  +
|fieldname={{{creator|}}}
{{!}}-
 
  +
}}
|}} {{#if:{{{eras|}}}|
 
  +
{{Infocell|type=field
{{!}}-
 
  +
|description=消費地
{{!}} class="infoboxlabel" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}" {{!}} Eras
 
 
|fieldname={{{found|}}}
{{!}} class="infoboxcell" style="{{#if:{{{3|}}}|background: #{{{3}}}|}}; {{{css|}}}" {{!}}
 
  +
}}
{{{eras|}}}
 
  +
{{Infocell|type=section
{{!}}-
 
  +
|section=特徴的な情報
|}}
 
  +
|BG2=FFBF00
|}
 
  +
|hidecells={{{description|}}} {{{animals|}}} {{{plants|}}} {{{other|}}} {{{edible|}}} {{{inedible|}}} {{{potable|}}} {{{nutrition|}}} {{{effects|}}}
<div class="infoboxfooter plainlinks" style="text-align: center; {{#if:006400|background: #006400|background: #999999}}"><span class="hidable-button"></span>[[{{{srclink|Template:Food}}}|[Source]]]</div>
 
  +
}}
{{#if:006400|{{rb|#006400}}|{{rb|#999999}}}}</div><!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --><noinclude>
 
  +
{{Infocell|type=field
  +
|description=特徴
  +
|fieldname={{{description|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=<span style="white-space:nowrap;">食材の動物</span>
  +
|fieldname={{{animals|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=<span style="white-space:nowrap;">食材の植物</span>
  +
|fieldname={{{plants|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=<span style="white-space:nowrap;">その他具材</span>
  +
|fieldname={{{other|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=食用可能な種族
  +
|fieldname={{{edible|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=食用不可能な種族
  +
|fieldname={{{inedible|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=飲用可能な種族
  +
|fieldname={{{potable|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=その他飲食に関する情報
  +
|fieldname={{{nutrition|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=効果
  +
|fieldname={{{effects|}}}
  +
}}
  +
{{Infocell|type=section
  +
|section=歴史的な情報
  +
|BG2=FFBF00
  +
|hidecells={{{affiliation|}}} {{{era|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=時代
  +
|fieldname={{{era|}}}
  +
}}
  +
{{Infocell|type=field
  +
|description=所属
  +
|fieldname={{{affiliation|}}}
  +
}}
  +
|BG1=FF8000
  +
|divid=Food_infobox
  +
|src=Template:Food
  +
|width={{{width|}}}
 
}}<!-- TEMPLATE ENDS HERE. In order to regenerate the template, replace the code above with the source code provided. --></onlyinclude>
  +
{{Clear}}
  +
To add new fields to this infobox or change the colors, follow the instructions on {{Tl|Infocell}}.
   
 
===Usage===
 
===Usage===
To use this template, paste the following code into the top of the article, filling all relevant fields:
+
Copy and paste the following code to use the template.
<pre><nowiki>{{Food
+
<pre><nowiki>{{Eras|}}
  +
{{Food
 
|imageBG=
 
|imageBG=
 
|image=
 
|image=
 
|name=
 
|name=
  +
|home=
|invented=
 
  +
|date=
|ingredients=
 
|made=
+
|race=
  +
|creator=
 
|found=
 
|found=
  +
|description=
|eras=
 
  +
|animals=
}}
 
  +
|plants=
</nowiki></pre>
 
  +
|other=
 
  +
|edible=
===Source===
 
  +
|inedible=
<nowiki>{{Subst:Slh|006400}} {{Subst:Sli|006400}} {{Subst:Slc|006400}} {{Subst:Sld|Invented in|invented}} {{Subst:Sld|Ingredients|ingredients}} {{Subst:Sld|Made by|made}} {{Subst:Sld|Found on|found}} {{Subst:Sld|Eras|era}} {{Subst:Slf|006400}}</nowiki>
 
  +
|potable=
  +
|nutrition=
  +
|effects=
  +
|era=
 
|affiliation=}}</nowiki></pre>
   
[[Category:Infobox templates]]
+
[[Category:Object infobox templates]]
</noinclude>
 

2015年5月28日 (木) 01:28時点における版

To add new fields to this infobox or change the colors, follow the instructions on {{Infocell}}.

Usage

Copy and paste the following code to use the template.

{{Eras|}}
{{Food
|imageBG=
|image=
|name=
|home=
|date=
|race=
|creator=
|found=
|description=
|animals=
|plants=
|other=
|edible=
|inedible=
|potable=
|nutrition=
|effects=
|era=
|affiliation=}}
特に記載のない限り、コミュニティのコンテンツはCC-BY-SAライセンスの下で利用可能です。