Template:IB-Level: Difference between revisions

From Geometry Dash Expanded Wiki
Jump to navigation Jump to search
Start infobox values on separate lines so every bullet renders consistently
Accept gallery markup as well as filenames in level infobox images
 
Line 1: Line 1:
<div class="portable-infobox expanded-ve-infobox pi-background pi-border-color pi-theme-default"><div class="pi-item pi-item-spacing pi-title pi-secondary-background">{{{name|{{PAGENAME}}}}}</div><div class="pi-item pi-image">[[File:{{#replace:{{{image|Placeholder.png}}}|File:|}}|300px]]</div>{{#if:{{{game|}}}{{{released|}}}{{{levelnumber|}}}{{{difficultymain|}}}|<div class="pi-item pi-group pi-border-color expanded-infobox-horizontal" style="display:grid;grid-template-columns:repeat(var(--expanded-columns),minmax(0,1fr));gap:.5rem;padding:.75rem 1rem;--expanded-columns:{{#expr:{{#if:{{{game|}}}|1|0}}+{{#if:{{{released|}}}|1|0}}+{{#if:{{{levelnumber|}}}|1|0}}+{{#if:{{{difficultymain|}}}|1|0}}}}">{{#if:{{{game|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" style="display:flex;flex-direction:column;align-items:center;gap:.5rem;font-weight:bold;" data-source="game"><div class="pi-data-label pi-secondary-font" style="flex:0 1 auto;width:100%;margin:0;text-align:center;font-weight:bold;overflow-wrap:normal;word-break:normal;">Game</div><div class="pi-data-value pi-font" style="flex:0 1 auto;width:100%;min-width:0;margin:0;text-align:center;font-weight:normal;overflow-wrap:normal;">
<div class="portable-infobox expanded-ve-infobox pi-background pi-border-color pi-theme-default"><div class="pi-item pi-item-spacing pi-title pi-secondary-background">{{{name|{{PAGENAME}}}}}</div><div class="pi-item pi-image">{{#invoke:Expanded infobox image|render|{{{image|Placeholder.png}}}|width=300}}</div>{{#if:{{{game|}}}{{{released|}}}{{{levelnumber|}}}{{{difficultymain|}}}|<div class="pi-item pi-group pi-border-color expanded-infobox-horizontal" style="display:grid;grid-template-columns:repeat(var(--expanded-columns),minmax(0,1fr));gap:.5rem;padding:.75rem 1rem;--expanded-columns:{{#expr:{{#if:{{{game|}}}|1|0}}+{{#if:{{{released|}}}|1|0}}+{{#if:{{{levelnumber|}}}|1|0}}+{{#if:{{{difficultymain|}}}|1|0}}}}">{{#if:{{{game|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" style="display:flex;flex-direction:column;align-items:center;gap:.5rem;font-weight:bold;" data-source="game"><div class="pi-data-label pi-secondary-font" style="flex:0 1 auto;width:100%;margin:0;text-align:center;font-weight:bold;overflow-wrap:normal;word-break:normal;">Game</div><div class="pi-data-value pi-font" style="flex:0 1 auto;width:100%;min-width:0;margin:0;text-align:center;font-weight:normal;overflow-wrap:normal;">
{{{game|}}}
{{{game|}}}
</div></div>}}{{#if:{{{released|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" style="display:flex;flex-direction:column;align-items:center;gap:.5rem;font-weight:bold;" data-source="released"><div class="pi-data-label pi-secondary-font" style="flex:0 1 auto;width:100%;margin:0;text-align:center;font-weight:bold;overflow-wrap:normal;word-break:normal;">Released</div><div class="pi-data-value pi-font" style="flex:0 1 auto;width:100%;min-width:0;margin:0;text-align:center;font-weight:normal;overflow-wrap:normal;">
</div></div>}}{{#if:{{{released|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" style="display:flex;flex-direction:column;align-items:center;gap:.5rem;font-weight:bold;" data-source="released"><div class="pi-data-label pi-secondary-font" style="flex:0 1 auto;width:100%;margin:0;text-align:center;font-weight:bold;overflow-wrap:normal;word-break:normal;">Released</div><div class="pi-data-value pi-font" style="flex:0 1 auto;width:100%;min-width:0;margin:0;text-align:center;font-weight:normal;overflow-wrap:normal;">

Latest revision as of 21:09, 15 October 2026

IB-Level
Description
This template is an infobox which provides information about a level at a glance.
Contextually, not all fields should be used at once, particularly those to do with level attributes, where only four (of difficulty, stars, moons, manaorbs, diamonds, coins, unvercoins, practicemode, normalmode) can properly display at one time. Refer to the syntax below for recommended usage between user levels and main levels.
Syntax
{{IB-Level
 |name           = (automatic)
 |image          = (required) [specify .png image only]
 |game           = [main level]
 |released       = [main level]
 |levelnumber    = [main level]
 |difficultymain = [main level] [specify image at x35px]
 |id             = [user level]
 |creator        = [user level]
 |verifier       = [user level]
 |created        = [user level]
 |updated        = [user level]
 |difficulty     = [user level] [specify image at x35px]
 |stars          = [classic level if applicable]
 |moons          = [platformer level if applicable]
 |manaorbs       = [main level (user level - unspecified, assumed under calculation)]
 |diamonds       = [user level if applicable]
 |coins          = [user level if applicable]
 |unvercoins     = [user level if applicable]
 |practicemode   = [main level if applicable] [specify image at x35px]
 |normalmode     = [main level] [specify image at x35px]
 |length         = [user level]
 |objects        = [user level]
 |copytype       = [user level]
 |portals        = [main level]
 |sequences      = [main level]
 |downloads      = [user level]
 |likes          = [user level]
 |rating         = [user level]
 |artist         =
 |music          =
 |musicid        =
 |audio          =
 |fullaudio      =
 |precededby     = [main level]
 |followedby     = [main level]
 |previous       = [user level]
 |next           = [user level]
}}
Sample & output
Spike Spike
ID

130

Creator(s)

RobTop

Created

Update 1.9

Last updated

Update 2.1

Attributes
Difficulty

Length

20s (Short)

Objects

?

Copy type

Password (789123)

Statistics
Downloads

350,000+

Likes

100,000+

Rating

Featured

Audio info
Artist(s)

DJVI

Music

Base After Base

Level sequence
Previous

Block Block

Next

Saw Saw

Bounce ball thingy
Game

Geometry Stroll

Released

Update 6.9

Level

42

Difficulty

Cube, Ship, Ball, UFO, Wave, Robot, Spider, Swing; Gravity, Mirror, Size, Speed, Dual, Teleportation

Sequences

C, .S, b, U,, W,,, R,,,, Sp. SwSw,

Audio info
Artist(s)
Audio

Full audio

Level sequence
Preceded by

RubRub Origins

Followed by

RubRub Legacy

{{IB-Level
 |name           = Spike Spike
 |image          =
 |game           =
 |released       =
 |levelnumber    =
 |difficultymain =
 |id             = 130
 |creator        = RobTop
 |verifier       =
 |created        = Update 1.9
 |updated        = Update 2.1
 |difficulty     = [[File:Harder.png|x35px]]
 |stars          = 6
 |moons          =
 |manaorbs       =
 |diamonds       = 8
 |coins          = 3
 |unvercoins     =
 |practicemode   =
 |normalmode     =
 |length         = 20s (Short)
 |objects        = ?
 |copytype       = Password (789123)
 |portals        = 
 |sequences      = 
 |downloads      = 350,000+
 |likes          = 100,000+
 |rating         = Featured
 |artist         = DJVI
 |music          = Base After Base
 |musicid        =
 |audio          =
 |fullaudio      =
 |precededby     =
 |followedby     =
 |previous       = Block Block
 |next           = Saw Saw
}}
{{IB-Level
 |name           = Bounce ball thingy
 |image          = RobertTopala.png
 |game           = Geometry Stroll
 |released       = Update 6.9
 |levelnumber    = 42
 |difficultymain = [[File:Auto.png|x35px]]
 |id             =
 |creator        =
 |verifier       =
 |created        =
 |updated        =
 |difficulty     =
 |stars          = 420
 |moons          =
 |manaorbs       = 9001
 |diamonds       =
 |coins          =
 |unvercoins     =
 |practicemode   = [[File:Cube004.png|x35px]]
 |normalmode     = [[File:Cube062.png|x35px]]
 |length         =
 |objects        =
 |copytype       =
 |portals        = Cube, Ship, Ball, UFO, Wave, Robot, Spider, Swing; Gravity, Mirror, Size, Speed, Dual, Teleportation
 |sequences      = C, .S, b, U,, W,,, R,,,, Sp. SwSw,
 |downloads      =
 |likes          =
 |rating         =
 |artist         = [https://zhenmuron.newgrounds.com Zhenmuron]
 |music          =
 |musicid        =
 |audio          = [[File:GeometryDashMenuTheme.mp3]]
 |fullaudio      = [[File:RandomSong06.mp3]]
 |precededby     = RubRub Origins
 |followedby     = RubRub Legacy
 |previous       =
 |next           =
}}