Difference between revisions of "Template:Critter Info"
From Nookipedia, the Animal Crossing wiki
SuperHamster (talk | contribs) (Adding number display) |
SuperHamster (talk | contribs) (Styling number) |
||
Line 2: | Line 2: | ||
<div class="flex-container"> | <div class="flex-container"> | ||
<div class="flex-item" style="margin: 0 auto; background: #ffffff; {{roundy|9px}}; text-align: center; padding: 10px; max-width: 250px;"> | <div class="flex-item" style="margin: 0 auto; background: #ffffff; {{roundy|9px}}; text-align: center; padding: 10px; max-width: 250px;"> | ||
− | {{#if:{{{number|}}}|<div style="float: left; background: #{{{secondarycolor|d9d9d9}}}; border-radius: | + | {{#if:{{{number|}}}|<div style="float: left; position: absolute; background: #{{{secondarycolor|d9d9d9}}}; border-radius: 15px; color: #FFFFFF; padding: 5px;"><small>#{{{number|}}}</small></div> | }} |
<div style="display: table; height: 100%; width: 100%;"> | <div style="display: table; height: 100%; width: 100%;"> | ||
<div style="display: table-cell; vertical-align: middle;"> | <div style="display: table-cell; vertical-align: middle;"> |
Revision as of 05:32, May 20, 2020
Have an image of this critter?
Then please upload it!
{{{label}}} |
---|
Usage
{{Infobox |bordercolor = |primarycolor = |secondarycolor = |title = |image = |caption = |image2 = |caption2 = |label = |data = |label2 = |data2 = |label3 = |data3 = |label4 = |data4 = |label5 = |data5 = |label6 = |data6 = |label7 = |data7 = |label8 = |data8 = |label9 = |data9 = |label10 = |data10 = |label11 = |data11 = |labelend = |dataend = }}