Difference between revisions of "Template:NHFossilInfo"
From Nookipedia, the Animal Crossing wiki
SuperHamster (talk | contribs) (Abbreviate points) |
AlexBot2004 (talk | contribs) (Sentence case) |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | <noinclude>{{#cargo_declare: |
− | | | + | _table=nh_fossil |
− | | | + | |name = String |
− | | | + | |image = String |
− | |name = {{{name|}}} | + | |image_url = String |
+ | |fossil_group = String | ||
+ | |interactable = Boolean | ||
+ | |sell = Integer | ||
+ | |color1 = String | ||
+ | |color2 = String | ||
+ | |hha_base = Integer | ||
+ | |width = Float | ||
+ | |length = Float | ||
+ | }}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store: | ||
+ | _table=nh_fossil | ||
+ | |name = {{{name|}}} | ||
+ | |image = {{{image|}}} | ||
+ | |image_url = {{filepath:{{{image|}}}}} | ||
+ | |fossil_group = {{{group|}}} | ||
+ | |interactable = {{{interactable|}}} | ||
+ | |sell = {{{sell|}}} | ||
+ | |color1 = {{{color1|}}} | ||
+ | |color2 = {{{color2|}}} | ||
+ | |hha_base = 87 | ||
+ | |width = {{{width|}}} | ||
+ | |length = {{{length|}}} | ||
+ | }}}}</includeonly>{{Fossil Info | ||
+ | |name = {{#invoke:SentenceCase|main|{{{name|}}}}}{{#if:{{{name-note|}}}|<br><span style="font-weight: normal; font-size: .8em;">{{{name-note|}}}</span>|}} | ||
|image = {{{image|}}} | |image = {{{image|}}} | ||
|imagesize = 100px | |imagesize = 100px | ||
Line 11: | Line 34: | ||
|label = Interactable | |label = Interactable | ||
|data = {{{interactable|}}} | |data = {{{interactable|}}} | ||
− | |label2 = Sell | + | |label2 = Sell price |
|data2 = {{Currency|Bells|{{{sell|??}}}}} | |data2 = {{Currency|Bells|{{{sell|??}}}}} | ||
|label3 = Colors | |label3 = Colors | ||
|data3 = {{color|{{{color1|}}}|display=inline-block|small=yes}} {{color|{{{color2|}}}|display=inline-block|small=yes}} | |data3 = {{color|{{{color1|}}}|display=inline-block|small=yes}} {{color|{{{color2|}}}|display=inline-block|small=yes}} | ||
− | |||
− | |||
|labelend = Size | |labelend = Size | ||
|dataend = {{Size|{{{width|1.0}}}|{{{length|1.0}}}|imgsize=30x30px}} | |dataend = {{Size|{{{width|1.0}}}|{{{length|1.0}}}|imgsize=30x30px}} | ||
− | }} | + | }}<noinclude>{{Documentation}}[[Category:Cargo templates]][[Category:Fossil info templates]]</noinclude> |
Latest revision as of 17:30, November 28, 2022
This template defines the table "nh_fossil". View table.
Template documentation (view)
More Cargo templates |
---|
- For query instructions see our Cargo documentation.
Usage
Parameters
- name
- Name of the item.
- group
- The fossil group the item is a part of. Name comes from the fossil's plaque in the museum.
- image
- File name (do not include the "File:" prefix).
- interactable
- Yes or No for whether or not the fossil can be interacted with (e.g. some fossils may open their mouth).
- sell
- Sell price.
- color1
- Color of the fossil (factors into HHA score).
- color2
- Second color of the fossil (often the same as the first).
- width
- Width of the fossil when placed as a furniture item, as a float.
- length
- Length of the fossil when placed as a furniture item, as a float.
Example
{{NHFossilInfo | name = Ankylo Skull | group = Ankylosaurus | image = Ankylo Skull NH Icon.png | interactable = No | sell = 3500 | color1 = Brown | color2 = Brown | width = 2.0 | length = 2.0 }}