Template:Userbox vanilla berries: Difference between revisions

From Celeste Wiki
Jump to navigation Jump to search
Content added Content deleted
(added tooltip option)
(changed structure to userbox, will move documentation)
 
(One intermediate revision 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">
{{#if:{{{2|}}}|This user has collected {{Tooltip|'''{{{1|100}}}''' strawberr{{#ifeq:{{{1|100}}}|1|y|ies!}}|{{{2|}}}}}
|This user has collected '''{{{1|100}}}''' strawberr{{#ifeq:{{{1|100}}}|1|y|ies!}}
}}</div>
|}
</div>
<noinclude>
<templatedata>
{
"params": {
"1": {
"label": "Strawberries",
"description": "The number of strawberries you have in Celeste",
"type": "number",
"required": true
},
"2": {
"label": "Explanation",
"description": "Shows up as a tooltip if defined. Use it to explain which strawberries you have collected (optional, in any format you like).",
"example": "175 Red, Moon, Winged Golden, Goldens 1A, 1B, 1C, 2A, 2C, 3A, 4A, 4C, 5C, 8C",
"type": "string"
}
},
"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": [
"1",
"2"
]
}
</templatedata>
== Examples ==
<div style="float: left">
{{Userberries|1|the first one in forsaken city xD}}

{{Userberries|50}}

{{Userberries|180|175 red, the moon berry, goldens in 1A, 1C, 2A, 2C}}
</div>
</noinclude>

Latest revision as of 17:51, 22 November 2023

This user has collected
100 strawberries!