Difference between revisions of "Template talk:Infobox Flora"

From Nookipedia, the Animal Crossing wiki
m (Text replacement - "{{AFe+}}" to "{{DnMe+}}")
m (Text replacement - "{{AF+}}" to "{{DnM+}}")
Line 8: Line 8:
 
|spawns=
 
|spawns=
 
|rarity=Common
 
|rarity=Common
|appearances={{DnM}},<br>{{AF+}},<br>{{PG}},<br>{{DnMe+}},<br>{{WW}},<br>{{CF}},<br>{{NL}},<br>{{AM}}
+
|appearances={{DnM}},<br>{{DnM+}},<br>{{PG}},<br>{{DnMe+}},<br>{{WW}},<br>{{CF}},<br>{{NL}},<br>{{AM}}
 
}}</pre>
 
}}</pre>
 
<br />'''Result:''' Notice that it still states 'Type of plant Unknown'.
 
<br />'''Result:''' Notice that it still states 'Type of plant Unknown'.
Line 18: Line 18:
 
|spawns=
 
|spawns=
 
|rarity=Common
 
|rarity=Common
|appearances={{DnM}},<br>{{AF+}},<br>{{PG}},<br>{{DnMe+}},<br>{{WW}},<br>{{CF}},<br>{{NL}},<br>{{AM}}
+
|appearances={{DnM}},<br>{{DnM+}},<br>{{PG}},<br>{{DnMe+}},<br>{{WW}},<br>{{CF}},<br>{{NL}},<br>{{AM}}
 
}}
 
}}
 
--[[User:Sunmarsh|sunmarsh]] ([[User talk:Sunmarsh|talk]]) 19:15, July 15, 2014 (EDT)
 
--[[User:Sunmarsh|sunmarsh]] ([[User talk:Sunmarsh|talk]]) 19:15, July 15, 2014 (EDT)
  
 
:The problem is that the "type of plant" field was renamed "type" when the template was updated, but the pages the template was used on weren't updated. Taking the "of plant" out of the field names will fix the problem (adding it back to the template would also fix it, but the one-word field is preferable here, and the infobox is used on relatively few pages). '''''[[User:Sky|<font color="#4682B4">-Sky</font>]] <small>[[User talk:Sky|<font color="#246092">(talk)</font>]]</small>''''' 21:13, July 15, 2014 (EDT)
 
:The problem is that the "type of plant" field was renamed "type" when the template was updated, but the pages the template was used on weren't updated. Taking the "of plant" out of the field names will fix the problem (adding it back to the template would also fix it, but the one-word field is preferable here, and the infobox is used on relatively few pages). '''''[[User:Sky|<font color="#4682B4">-Sky</font>]] <small>[[User talk:Sky|<font color="#246092">(talk)</font>]]</small>''''' 21:13, July 15, 2014 (EDT)

Revision as of 20:11, October 4, 2019

Type Error

It seems that even if one enters a 'Type of plant' in the 'type' field, the template still displays "Unknown". I'm not familiar enough with code to fix this.



Example code: Notice type of plant=tree.

{{Infobox Flora
|name=Tree
|image=[[File:Tree NL.png|100px]] [[File:Cedar Tree NL.png|100px]]
Oak and Cedar trees in ''New Leaf''
|type of plant=Tree
|spawns=
|rarity=Common
|appearances={{DnM}},<br>{{DnM+}},<br>{{PG}},<br>{{DnMe+}},<br>{{WW}},<br>{{CF}},<br>{{NL}},<br>{{AM}}
}}


Result: Notice that it still states 'Type of plant Unknown'.

Flora
100px Cedar Tree NL Artwork.png

Oak and Cedar trees in New Leaf

Type Unknown
Appearances Doubutsu no Mori,
Doubutsu no Mori+,
Animal Crossing,
Doubutsu no Mori e+,
Animal Crossing: Wild World,
Animal Crossing: City Folk,
Animal Crossing: New Leaf,
🎬 Gekijōban Doubutsu no Mori
Main appearances

Other appearances

--sunmarsh (talk) 19:15, July 15, 2014 (EDT)

The problem is that the "type of plant" field was renamed "type" when the template was updated, but the pages the template was used on weren't updated. Taking the "of plant" out of the field names will fix the problem (adding it back to the template would also fix it, but the one-word field is preferable here, and the infobox is used on relatively few pages). -Sky (talk) 21:13, July 15, 2014 (EDT)