Difference between revisions of "Template:Infobox Fossil"

From Nookipedia, the Animal Crossing wiki
(Adding padding to main image and appearances cell)
m (& minor tweaks and hopefully fix page alignment)
(14 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%"
+
{{Infobox 2.0
|- align="center"
+
| primarycolor  = 43 74
! colspan="3" align="center" | <big><big>{{{name|{{PAGENAME}}}}}</big></big>
+
| title          = {{{name|{{PAGENAME}}}}}
|-
+
| image          = [[File:{{{image|Nia.png}}}|{{{imagesize|250px}}}]]
| colspan="3" style="width:100%; border-top: 1px solid #6f5411; line-height:2px;" | &nbsp;
+
| caption        = {{{caption|}}}
|- style="text-align:center;"
+
| widelabel      = Scientific name
| colspan="3" |
+
| widedata      = ''{{{scientific name|Unknown}}}''
<div style="display:inline-block;">
+
| label          = Sections
{| style="text-align:left; width:100%; line-height:14px"
+
| data          = {{{sections|}}}
| [[File:Flag of Japan.png|Japanese|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{j-name|}}}|{{{j-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
| label2        = Period(s)
| <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>
+
| data2          = {{{period|}}}
| [[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>
+
| label3        = Length
|-
+
| data3          = {{{length|}}}
| [[File:Flag of France.png|French|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{f-name|}}}|{{{f-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
| label4        = Selling price
| <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>
+
| data4          = {{{price|}}}
| [[File:Flag of Spain.png|Spanish|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{s-name|}}}|{{{s-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
| appearances    = fossils
|-
+
| languages      = Name
| [[File:Flag of Germany.png|German|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{g-name|}}}|{{{g-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
| ja-name        = {{{ja-name|}}}
| <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>
+
| ko-name        = {{{ko-name|}}}
| [[File:Flag of Russia.png|Russian|link=|16px]]&nbsp;<span style="font-size:.75em">{{#if:{{{r-name|}}}|{{{r-name|}}}|{{Colorshow|6f5411|Unknown}}}}</span>
+
| zh-name        = {{{zh-name|}}}
|}</div>
+
| zht-name      = {{{zht-name|{{{zh-name|}}}}}}
|- align="center"
+
| fr-name        = {{{fr-name||}}}
| style="background: #ffffff; {{roundy|10px}}; padding:6px 0 6px 0;" colspan="2" | [[File:{{{image|Nia.png}}}|{{{imagesize|200px}}}]]
+
| frq-name      = {{{frq-name|{{{fr-name||}}}}}}
|-
+
| es-name        = {{{es-name|}}}
! style="background: #d2691e; {{roundytl|10px}}" align="right" | Scientific name
+
| esl-name      = {{{esl-name|{{{es-name|}}}}}}
| style="background:#ffffff; {{roundytr|10px}}" align="left" | ''{{{scientific name|Unknown}}}''
+
| it-name        = {{{it-name|}}}
|- {{#if:{{{sections|}}}|
+
| de-name        = {{{de-name|}}}
{{!-}}
+
| nl-name        = {{{nl-name|}}}
! style="background: #d2691e" align="right" {{!}} Sections
+
| ru-name        = {{{ru-name|}}}
{{!}} style="background:#ffffff" align="left" {{!}} {{{sections|}}}}}
+
}}<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>
|- {{#if:{{{period|}}}|
 
{{!-}}
 
! style="background: #d2691e" align="right" {{!}} Period(s)
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{period|}}}}}
 
|- {{#if:{{{length|}}}|
 
{{!-}}
 
! style="background: #d2691e" align="right" {{!}} Length
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{length|}}}}}
 
|- {{#if:{{{price|}}}|
 
{{!-}}
 
! style="background: #d2691e" align="right" {{!}} Selling price
 
{{!}} style="background:#ffffff" align="left" {{!}} {{{price|}}}}}
 
|-
 
! style="background: #d2691e; {{roundybl|10px}}; padding:0 0 0 6px;" align="right" | Appearances
 
| style="background:#ffffff; {{roundybr|10px}}" align="left" | {{{appearances|Unknown}}}
 
|}<noinclude>
 
<pre>
 
{{Infobox Fossil
 
|name=
 
|j-name=
 
|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>
 

Revision as of 01:25, March 4, 2021

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
Sections T. Rex Skull
T. Rex Tail
T. Rex Torso
Period(s) Late Cretaceous
Length 47.6 feet
Selling price Skull: 6,000 Bells
Tail: 5,000 Bells
Torso: 5,500 Bells
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
}}