Difference between revisions of "Template:Critter Info"
From Nookipedia, the Animal Crossing wiki
(Number cell will now be padded differently depending on the size of the number) |
m (Padding values need to be switched) |
||
Line 3: | Line 3: | ||
<div {{#if: {{{collapse|}}} | id="mw-customcollapsible-{{{collapse-id|1}}}"}} class="flex-container {{#if: {{{collapse|}}} | mw-collapsible mw-collapsed mw-collapsible-content}}"> | <div {{#if: {{{collapse|}}} | id="mw-customcollapsible-{{{collapse-id|1}}}"}} class="flex-container {{#if: {{{collapse|}}} | mw-collapsible mw-collapsed mw-collapsible-content}}"> | ||
<div class="flex-item" style="margin: 0 auto; background: #ffffff; {{roundy|11px}}; text-align: center; padding: 10px; max-width: 250px;"> | <div class="flex-item" style="margin: 0 auto; background: #ffffff; {{roundy|11px}}; text-align: center; padding: 10px; max-width: 250px;"> | ||
− | {{#if:{{{number|}}}|<div style="float: left; position: absolute; background: #{{{secondarycolor|d9d9d9}}}; border-radius: 15px; color: #FFFFFF; padding: {{#ifexpr:{{{number|0}}}>9|0px | + | {{#if:{{{number|}}}|<div style="float: left; position: absolute; background: #{{{secondarycolor|d9d9d9}}}; border-radius: 15px; color: #FFFFFF; padding: {{#ifexpr:{{{number|0}}}>9|3px|0px}} 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 15:51, August 12, 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 = }}