Difference between revisions of "Template:Blathers"
From Nookipedia, the Animal Crossing wiki
(Template will now add pages to an administrative category. This functionality will be removed once all critter articles have properly implemented the template.) |
(Template now takes a type parameter which can be used to override default color. Acceptable values are: fish, bug, sea creature, and fossil) |
||
Line 19: | Line 19: | ||
| nh | | nh | ||
| #default = [[File:Blathers NH.png|70px|alt=]] | | #default = [[File:Blathers NH.png|70px|alt=]] | ||
− | }}}}{{#vardefine:color|{{#if:{{#incat:Fish|66CCFF|}}{{#incat:Bugs|caed78|}}{{#incat:Sea creatures|66a6ff|}}{{#incat:Fossils|E8CB7F|}}|{{#incat:Fish|66CCFF|}}{{#incat:Bugs|caed78|}}{{#incat:Sea creatures|66a6ff|}}{{#incat:Fossils|E8CB7F|}}|7d593c}}}} | + | }}}}{{#vardefine:color|{{#if:{{{type|}}}|{{#switch:{{lc:{{{type|}}}}}|fish=66CCFF|bug=caed78|sea creature=66a6ff|fossil=E8CB7F}}|{{#if:{{#incat:Fish|66CCFF|}}{{#incat:Bugs|caed78|}}{{#incat:Sea creatures|66a6ff|}}{{#incat:Fossils|E8CB7F|}}|{{#incat:Fish|66CCFF|}}{{#incat:Bugs|caed78|}}{{#incat:Sea creatures|66a6ff|}}{{#incat:Fossils|E8CB7F|}}|7d593c}}}}}} |
<div style="display:flex; flex-wrap:wrap; justify-content:center; align-items:center; border:3px solid #{{#var:color}}; padding:7px 3px; {{roundy|5vw}}; margin:5px;"> | <div style="display:flex; flex-wrap:wrap; justify-content:center; align-items:center; border:3px solid #{{#var:color}}; padding:7px 3px; {{roundy|5vw}}; margin:5px;"> | ||
<div style="flex:none; background-color:#{{#var:color}}; width: 60px; height: 60px; overflow: hidden; border-radius: 50%;"> | <div style="flex:none; background-color:#{{#var:color}}; width: 60px; height: 60px; overflow: hidden; border-radius: 50%;"> |
Revision as of 22:20, September 8, 2021
"Hoo, my goodness! Glorious! Seen in this light, of course, it's quite a grotesque beast. And yet, it does have a certain peculiar allure, wot? You may rest assured that we shall treat it with much affection and respect, wot! My word as a gentleowl."
No documentation for Template:Blathers exists. Create it.