Difference between revisions of "Template:Infobox Fossil"

From Nookipedia, the Animal Crossing wiki
m
(Removing sell price and sections, as they are now all defined in the body of the article; period and length should eventually be moved outside the infobox too)
 
(13 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| id="Infobox-fossil" align="right" style="background: #daa520; margin-left: 10px; margin-bottom: 10px; {{roundy|10px}} border: 3px solid #b8860b; width: 25%"
+
<noinclude>{{#cargo_declare:
|- align="center"
+
_table=fossil
! colspan="3" align="center" | <big><big>{{{name|{{PAGENAME}}}}}</big></big>
+
|url = String
|-
+
|name = String
| colspan="3" style="width:100%; border-top: 1px solid #6f5411; line-height:2px;" | &nbsp;
+
|image = String
|- style="text-align:center;"
+
|image_url = String
| colspan="3" |
+
|fossil_sort = Integer
<div style="display:inline-block;">
+
|type = String
{| style="text-align:left; width:100%; line-height:14px"
+
|ac = Boolean
| [[File:Flag of Japan.png|Japanese|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{j-name|}}}|{{{j-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
|ww = Boolean
| <span style="padding-left:{{{spacing|.6em}}};"></span>[[File:Flag of Korea.png|Korean|link=|16px]]&nbsp;<span style="font-size:{{#if:{{{k-name|}}}|.7em|.75em}}">{{#if:{{{k-name|}}}|{{{k-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|cf = Boolean
| [[File:Flag of the People's Republic of China.png|Chinese|link=|16px]]&nbsp;<span style="font-size:{{#if:{{{c-name|}}}|.8em|.75em}}">{{#if:{{{c-name|}}}|{{{c-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
|nl = Boolean
|-
+
|nh = Boolean
| [[File:Flag of France.png|French|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{f-name|}}}|{{{f-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
| <span style="padding-left:{{{spacing|.6em}}};"></span>[[File:Flag of Italy.png|Italian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{i-name|}}}|{{{i-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
_table=fossil
| [[File:Flag of Spain.png|Spanish|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{s-name|}}}|{{{s-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
|url = {{canonicalurl:{{PAGENAME}}}}
|-
+
|name = {{{name|{{PAGENAME}}}}}
| [[File:Flag of Germany.png|German|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{g-name|}}}|{{{g-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
|image = {{{image|}}}
| <span style="padding-left:{{{spacing|.6em}}};"></span>[[File:Flag of the Netherlands.png|Dutch|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{d-name|}}}|{{{d-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span><span style="padding-left:{{{spacing|.6em}}};"></span>
+
|image_url = {{filepath:{{{image|}}}}}
| [[File:Flag of Russia.png|Russian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{r-name|}}}|{{{r-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
|fossil_sort = {{#incat:Animal Crossing fossils|1|{{#incat:Wild World fossils|2|{{#incat:City Folk fossils|3|{{#incat:New Leaf fossils|4|{{#incat:New Horizons fossils|5}}}}}}}}}}
|}</div>
+
|type = {{{type|}}}
|- align="center"
+
|ac =  {{#incat:Animal Crossing fossils|Yes|No}}
| style="background: #ffffff; {{roundy|10px}}; padding:8px 0 8px 0;" colspan="2" | [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]
+
|ww = {{#incat:Wild World fossils|Yes|No}}
|-
+
|cf =  {{#incat:City Folk fossils|Yes|No}}
! style="background: #d2691e; {{roundytl|10px}}" align="right" | Scientific name
+
|nl =  {{#incat:New Leaf fossils|Yes|No}}
| style="background:#ffffff; {{roundytr|10px}}" align="left" | ''{{{scientific name|Unknown}}}''
+
|nh =  {{#incat:New Horizons fossils|Yes|No}}
|- {{#if:{{{sections|}}}|
+
}}}}</includeonly>{{Infobox 2.0
{{!-}}
+
| primarycolor  = 43 74
! style="background: #d2691e" align="right" {{!}} Sections
+
| title          = {{#invoke:SentenceCase|main|{{{name|{{PAGENAME}}}}}}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{sections|}}}}}
+
| image          = [[File:{{{image|Nia.png}}}|{{{imagesize|250px}}}]]
|- {{#if:{{{period|}}}|
+
| caption        = {{{caption|}}}
{{!-}}
+
| widelabel      = Scientific name
! style="background: #d2691e" align="right" {{!}} Period(s)
+
| widedata      = ''{{{scientific name|Unknown}}}''
{{!}} style="background:#ffffff" align="left" {{!}} {{{period|}}}}}
+
| label          = Type
|- {{#if:{{{length|}}}|
+
| data          = {{{type|}}}
{{!-}}
+
| label2        = Period(s)
! style="background: #d2691e" align="right" {{!}} Length
+
| data2          = {{{period|}}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{length|}}}}}
+
| label3        = Length
|- {{#if:{{{price|}}}|
+
| data3          = {{{length|}}}
{{!-}}
+
| appearances    = fossils
! style="background: #d2691e" align="right" {{!}} Selling price
+
| languages      = Name
{{!}} style="background:#ffffff" align="left" {{!}} {{{price|}}}}}
+
| ja-name        = {{{ja-name|}}}
|-
+
| ko-name        = {{{ko-name|}}}
! style="background: #d2691e; {{roundybl|10px}}; padding:0 0 0 10px;" align="right" | Appearances
+
| zh-name        = {{{zh-name|}}}
| style="background:#ffffff; {{roundybr|10px}}" align="left" | {{{appearances|Unknown}}}
+
| zht-name      = {{{zht-name|{{{zh-name|}}}}}}
|}<includeonly>
+
| fr-name        = {{{fr-name||}}}
{| style="display:none;"
+
| frq-name      = {{{frq-name|{{{fr-name||}}}}}}
|-
+
| es-name        = {{{es-name|}}}
|<span id="api-fossil_name" style="display:none;">{{{name|Unknown}}}</span><span id="api-fossil_image" style="display:none;">{{filepath:{{{image|Nia.png}}}|{{{imagesize|200px}}}}}</span><span id="api-fossil_scientific-name" style="display:none;">{{{scientific name|Unknown}}}</span><span id="api-fossil_sections" style="display:none;">{{{sections|Unknown}}}</span><span id="api-fossil_period" style="display:none;">{{{period|Unknown}}}</span><span id="api-fossil_length" style="display:none;">{{{length|Unknown}}}</span><span id="api-fossil_price" style="display:none;">{{{price|Unknown}}}</span><span id="api-fossil_link" style="display:none;">{{fullurl:{{FULLPAGENAME}}}}</span><span id="api-fossil_updated" style="display:none;">{{REVISIONMONTH1}}/{{REVISIONDAY}}/{{REVISIONYEAR}}</span><span id="api-fossil_cached" style="display:none;">{{LOCALMONTH}}/{{LOCALDAY}}/{{LOCALYEAR}} {{LOCALTIME}}</span>
+
| esl-name      = {{{esl-name|{{{es-name|}}}}}}
|}</includeonly><noinclude>
+
| it-name        = {{{it-name|}}}
<pre>
+
| de-name        = {{{de-name|}}}
{{Infobox Fossil
+
| nl-name       = {{{nl-name|}}}
|name=
+
| ru-name        = {{{ru-name|}}}
|j-name=
+
}}<includeonly>{{#ifeq:{{NAMESPACE}}||{{#if:{{{ja-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{ko-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{zh-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{fr-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{it-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{es-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{de-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{nl-name|}}}||[[Category:Fossils with missing other language information]]}}{{#if:{{{ru-name|}}}||[[Category:Fossils with missing other language information]]}} {{#if:{{{appearances|}}}| [[Category:Pages with an outdated infobox fossil template]]}}}}</includeonly><noinclude>{{Documentation}}[[Category:Infobox templates]][[Category:Project Museum]]</noinclude>
|k-name=
 
|c-name=
 
|f-name=
 
|i-name=
 
|s-name=
 
|g-name=
 
|d-name=
 
|r-name=
 
|image=
 
|scientific name=
 
|sections=
 
|period=
 
|length=
 
|price=
 
|appearances=
 
}}</pre>
 
[[Category:Infobox templates]][[Category:Project Museum]]</noinclude>
 

Latest revision as of 19:21, November 28, 2022

This template defines the table "fossil". View table.

Infobox Fossil
Nia.png
Scientific name
Unknown
Main appearances

Name in other languages
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown
 Unknown

Template documentation (view)


Usage

{{Infobox Fossil
|name               = 
|ja-name            = 
|ko-name            = 
|zh-name            = 
|fr-name            = 
|it-name            = 
|es-name            = 
|de-name            = 
|nl-name            = 
|ru-name            = 
|image              = 
|imagesize          = 
|scientific name    = 
|sections           = 
|period             = 
|length             = 
|price              = 
}}

This infobox is for articles about fossils in the series. Many of the parameters are straightforward, but the below ones require special consideration:

  • scientific name is the scientific name of the fossil in Latin.
  • sections is the sections of the fossil (not relevant for some standalone fossils).
  • period is the period of the fossil (not relevant for some standalone fossils).
  • length is the length of the fossil (not relevant for some standalone fossils).
  • price is the sell price of the fossil or its sections.

The appearances are auto-assigned depending on category using Template:Infobox Appearance and PageInCat extension.

Example

T. Rex
NH T. Rex Museum.jpg
Scientific name
Tyrannosaurus rex
Period(s) Late Cretaceous
Length 47.6 feet
Main appearances

Name in other languages
 Tレックス
 暴龙
 Tyrannosaure
 Tiranosaurio
 Tirannosauro
 Тираннозавр
 티렉스
 暴龙
 Tyrannosaure
 Tiranosaurio
 Tyrannosaurus Rex
 Tyrannosaurus rex


{{Infobox Fossil
|name               = T. Rex
|ja-name            = Tレックス
|ko-name            = 티렉스
|zh-name            = 暴龙
|fr-name            = Tyrannosaure
|it-name            = Tirannosauro
|es-name            = Tiranosaurio
|de-name            = Tyrannosaurus Rex
|nl-name            = Tyrannosaurus rex
|ru-name            = Тираннозавр
|image              = NHMuseumTRex.jpg
|imagesize          = 200px
|scientific name    = Tyrannosaurus rex
|sections           = T. Rex Skull<br>T. Rex Tail<br>T. Rex Torso
|period             = Late Cretaceous
|length             = 47.6 feet
|price              = Skull: 6,000 [[Bells]]<br>Tail: 5,000 Bells<br>Torso: 5,500 Bells
}}