Difference between revisions of "Template:Infobox Fossil"

From Nookipedia, the Animal Crossing wiki
(Sentence case)
(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)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Infobox 2.0
+
<noinclude>{{#cargo_declare:
 +
_table=fossil
 +
|url = String
 +
|name = String
 +
|image = String
 +
|image_url = String
 +
|fossil_sort = Integer
 +
|type = String
 +
|ac = Boolean
 +
|ww = Boolean
 +
|cf = Boolean
 +
|nl = Boolean
 +
|nh = Boolean
 +
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 +
_table=fossil
 +
|url = {{canonicalurl:{{PAGENAME}}}}
 +
|name = {{{name|{{PAGENAME}}}}}
 +
|image = {{{image|}}}
 +
|image_url = {{filepath:{{{image|}}}}}
 +
|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}}}}}}}}}}
 +
|type = {{{type|}}}
 +
|ac =  {{#incat:Animal Crossing fossils|Yes|No}}
 +
|ww =  {{#incat:Wild World fossils|Yes|No}}
 +
|cf =  {{#incat:City Folk fossils|Yes|No}}
 +
|nl =  {{#incat:New Leaf fossils|Yes|No}}
 +
|nh =  {{#incat:New Horizons fossils|Yes|No}}
 +
}}}}</includeonly>{{Infobox 2.0
 
| primarycolor  = 43 74
 
| primarycolor  = 43 74
 
| title          = {{#invoke:SentenceCase|main|{{{name|{{PAGENAME}}}}}}}
 
| title          = {{#invoke:SentenceCase|main|{{{name|{{PAGENAME}}}}}}}
Line 6: Line 32:
 
| widelabel      = Scientific name
 
| widelabel      = Scientific name
 
| widedata      = ''{{{scientific name|Unknown}}}''
 
| widedata      = ''{{{scientific name|Unknown}}}''
| label          = Sections
+
| label          = Type
| data          = {{{sections|}}}
+
| data          = {{{type|}}}
 
| label2        = Period(s)
 
| label2        = Period(s)
 
| data2          = {{{period|}}}
 
| data2          = {{{period|}}}
 
| label3        = Length
 
| label3        = Length
 
| data3          = {{{length|}}}
 
| data3          = {{{length|}}}
| label4        = Selling price
 
| data4          = {{{price|}}}
 
 
| appearances    = fossils
 
| appearances    = fossils
 
| languages      = Name
 
| languages      = Name

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
}}