Template:Userbox vanilla berries: Difference between revisions

From Celeste Wiki
Jump to navigation Jump to search
Content added Content deleted
m (Artubass moved page Template:Userberries to Template:Userbox vanilla berries: Moved the template to its proper location so it hopefully works)
(changed structure to userbox, will move documentation)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Userbox
<div style="float: right; border:solid #d72727 3px; margin: 1px; font-family: Helvetica, Arial, sans-serif">
{| style="width: 238px; background: #d9a0a0;"
| color = #d9a0a0
| bcolor = #d72727
|<div style="float: right; margin-right: 4px">
| rimage = {{#ifexpr: {{{1|100}}} > 175|[[File:Goldberry.png|48px]]|[[File:Strawberry celeste.png|48px]]}}
<!-- The next line of code (hopefully) adjusts image based on the number supplied -->
| text = {{#if:{{{2|}}}|This user has collected<br>{{Tooltip|'''{{{1|100}}}''' strawberr{{#ifeq:{{{1|100}}}|1|y|ies!}}|{{{2|}}}}}|This user has collected<br>'''{{{1|100}}}''' strawberr{{#ifeq:{{{1|100}}}|1|y|ies!}}}}
{{#ifexpr: {{{1|100}}} > 175|[[File:Goldberry.png|48px]]|[[File:Strawberry celeste.png|48px]]}}
}}<noinclude>{{Documentation}}</noinclude>
</div><div style="margin-top: 8px">This user has collected '''{{{1|100}}}''' strawberr{{#ifeq:{{{1|100}}}|1|y|ies}}!</div>
|}
</div>
<noinclude>
<templatedata>
{
"params": {
"berries": {
"description": "The number of strawberries you have in Celeste",
"type": "number",
"required": true
}
},
"description": "This template (userbox) allows you to show how many strawberries you have collected. It will surely impress your friends! Be honest though - we don't have a way to check.",
"paramOrder": [
"berries"
]
}
</templatedata>
== Examples ==
<div style="float: left">
{{Userberries|1}}

{{Userberries|50}}

{{Userberries|180}}
</div>
</noinclude>

Latest revision as of 17:51, 22 November 2023

This user has collected
100 strawberries!