Template:IB-Player: Difference between revisions
Jump to navigation
Jump to search
Use VE-compatible infobox markup with bold labels and normal values; add born and died fields Tag: Reverted |
Restore VisualEditor-compatible player infobox while preserving translated labels and all parameters |
||
| (6 intermediate revisions by 2 users not shown) | |||
| 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>{{#if:{{{image|}}}|<div class="pi-item pi-image"> | <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>{{#if:{{{image|}}}|<div class="pi-item pi-image"> | ||
{{# | {{#invoke:Expanded infobox image|render|{{{image|}}}|width=300}} | ||
</div>}}{{#if:{{{nickname|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="nickname" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">Other names</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div>}}{{#if:{{{born|}}}{{{died|}}}{{{nickname|}}}{{{country|}}}{{{modstatus|}}}|<div class="pi-item pi-header pi-secondary-background" style="text-align:center;font-weight:bold;padding:.75rem;"><span data-gd-infobox-label="Information">Information</span></div>{{#if:{{{born|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="born" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Born">Born</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{born|}}} | |||
</div></div>}}{{#if:{{{died|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="died" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Died">Died</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | |||
{{{died|}}} | |||
</div></div>}}{{#if:{{{nickname|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="nickname" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Other names">Other names</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | |||
{{{nickname|}}} | {{{nickname|}}} | ||
</div></div>}}{{#if:{{{country|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="country" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">Country</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}{{#if:{{{country|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="country" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Country">Country</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{country|}}} | {{{country|}}} | ||
</div></div>}}{{#if:{{{ | </div></div>}}{{#if:{{{modstatus|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="modstatus" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">[[Moderators|<span data-gd-infobox-label="Mod status">Mod status</span>]]</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{modstatus|}}} | {{{modstatus|}}} | ||
</div></div>}}{{#if:{{{levels|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="levels" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">Uploaded levels</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}}}{{#if:{{{levels|}}}{{{rated|}}}{{{creatorpoints|}}}{{{stats|''[https://gdbrowser.com/search <span data-gd-infobox-label="Please search">Please search</span>]''}}}|<div class="pi-item pi-header pi-secondary-background" style="text-align:center;font-weight:bold;padding:.75rem;"><span data-gd-infobox-label="Statistics">Statistics</span></div>{{#if:{{{levels|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="levels" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Uploaded levels">Uploaded levels</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{levels|}}} | {{{levels|}}} | ||
</div></div>}}{{#if:{{{rated|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="rated" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">Rated levels</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}{{#if:{{{rated|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="rated" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Rated levels">Rated levels</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{rated|}}} | {{{rated|}}} | ||
</div></div>}}{{#if:{{{creatorpoints|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="creatorpoints" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">Creator points</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}{{#if:{{{creatorpoints|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="creatorpoints" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Creator points">Creator points</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{creatorpoints|}}} | {{{creatorpoints|}}} | ||
</div></div>}}{{#if:{{{stats|''[https://gdbrowser.com/search Please search]''}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="stats" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">GD stats</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}{{#if:{{{stats|''[https://gdbrowser.com/search <span data-gd-infobox-label="Please search">Please search</span>]''}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="stats" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="GD stats">GD stats</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{stats|''[https://gdbrowser.com/search Please search]''}}} | {{{stats|''[https://gdbrowser.com/search <span data-gd-infobox-label="Please search">Please search</span>]''}}} | ||
</div></div>}}{{#if:{{{youtube|}}}{{{twitch|}}}{{{twitter|}}}{{{other|}}}|<div class="pi-item pi-header pi-secondary-background" style="text-align:center;font-weight:bold;padding:.75rem;">Social media</div>{{#if:{{{youtube|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="youtube" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span style="white-space:nowrap;">YouTube [[File:GDYouTube.png|24px|link=]]</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}}}{{#if:{{{youtube|}}}{{{twitch|}}}{{{twitter|}}}{{{other|}}}|<div class="pi-item pi-header pi-secondary-background" style="text-align:center;font-weight:bold;padding:.75rem;"><span data-gd-infobox-label="Social media">Social media</span></div>{{#if:{{{youtube|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="youtube" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span style="white-space:nowrap;">YouTube [[File:GDYouTube.png|24px|link=]]</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{youtube|}}} | {{{youtube|}}} | ||
</div></div>}}{{#if:{{{twitch|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="twitch" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span style="white-space:nowrap;">Twitch [[File:GDTwitch.png|24px|link=]]</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}{{#if:{{{twitch|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="twitch" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span style="white-space:nowrap;">Twitch [[File:GDTwitch.png|24px|link=]]</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
| Line 25: | Line 25: | ||
</div></div>}}{{#if:{{{twitter|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="twitter" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span style="white-space:nowrap;">Twitter [[File:GDTwitter.png|24px|link=]]</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}{{#if:{{{twitter|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="twitter" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span style="white-space:nowrap;">Twitter [[File:GDTwitter.png|24px|link=]]</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{twitter|}}} | {{{twitter|}}} | ||
</div></div>}}{{#if:{{{other|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="other" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;">Other</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | </div></div>}}{{#if:{{{other|}}}|<div class="pi-item pi-data pi-item-spacing pi-border-color" data-source="other" style="display:flex;align-items:center;gap:1rem;"><div class="pi-data-label pi-secondary-font" style="flex:0 0 33%;width:33%;font-weight:bold;"><span data-gd-infobox-label="Other">Other</span></div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | ||
{{{other|}}} | {{{other|}}} | ||
</div></div>}}}}</div><noinclude> | </div></div>}}}}</div><noinclude> | ||
;Description | ;Description | ||
:This template is an infobox which provides information about a player at a glance. | :This template is an infobox which provides information about a player at a glance. | ||
;Syntax | ;Syntax | ||
<pre> | <pre> | ||
| Line 37: | Line 35: | ||
|name = (automatic) | |name = (automatic) | ||
|image = | |image = | ||
|born = | |||
|died = | |||
|nickname = | |nickname = | ||
|country = | |country = | ||
|modstatus = | |modstatus = | ||
|levels = | |levels = | ||
| Line 55: | Line 53: | ||
{{IB-Player | {{IB-Player | ||
|name = RobTop | |name = RobTop | ||
|image = | |image = RobertTopala.png | ||
|born = {{Birth date and age|1987|2|23}} | |||
|nickname = RubRub, Zhenmuron | |nickname = RubRub, Zhenmuron | ||
|country = {{Flag|se|Sweden}} | |country = {{Flag|se|Sweden}} | ||
|modstatus = Developer | |modstatus = Developer | ||
|levels = 6 | |levels = 6 | ||
| Line 66: | Line 64: | ||
|youtube = [https://www.youtube.com/channel/UCz_yk8mDSAnxJq0ar66L4sw RobTopGames] | |youtube = [https://www.youtube.com/channel/UCz_yk8mDSAnxJq0ar66L4sw RobTopGames] | ||
|twitch = [https://www.twitch.tv/directory/category/geometry-dash Geometry Dash] | |twitch = [https://www.twitch.tv/directory/category/geometry-dash Geometry Dash] | ||
|twitter = [https:// | |twitter = [https://x.com/robtopgames @RobTopGames] | ||
|other = [https://www.robtopgames.com www.robtopgames.com] | |other = [https://www.robtopgames.com www.robtopgames.com] | ||
}} | }} | ||
| Line 72: | Line 70: | ||
{{IB-Player | {{IB-Player | ||
|name = RobTop | |name = RobTop | ||
|image = | |image = RobertTopala.png | ||
|born = {{Birth date and age|1987|2|23}} | |||
|nickname = RubRub, Zhenmuron | |nickname = RubRub, Zhenmuron | ||
|country = {{Flag|se|Sweden}} | |country = {{Flag|se|Sweden}} | ||
|modstatus = Developer | |modstatus = Developer | ||
|levels = 6 | |levels = 6 | ||
| Line 83: | Line 81: | ||
|youtube = [https://www.youtube.com/channel/UCz_yk8mDSAnxJq0ar66L4sw RobTopGames] | |youtube = [https://www.youtube.com/channel/UCz_yk8mDSAnxJq0ar66L4sw RobTopGames] | ||
|twitch = [https://www.twitch.tv/directory/category/geometry-dash Geometry Dash] | |twitch = [https://www.twitch.tv/directory/category/geometry-dash Geometry Dash] | ||
|twitter = [https:// | |twitter = [https://x.com/robtopgames @RobTopGames] | ||
|other = [https://www.robtopgames.com www.robtopgames.com] | |other = [https://www.robtopgames.com www.robtopgames.com] | ||
}} | }} | ||
</pre> | </pre> | ||
[[Category:Container templates]]</noinclude> | [[Category:Container templates]] | ||
</noinclude> | |||
Latest revision as of 20:52, 14 October 2026
- Description
- This template is an infobox which provides information about a player at a glance.
- Syntax
{{IB-Player
|name = (automatic)
|image =
|born =
|died =
|nickname =
|country =
|modstatus =
|levels =
|rated =
|creatorpoints =
|stats = (required)
|youtube =
|twitch =
|twitter =
|other =
}}
- Sample & output
{{IB-Player
|name = RobTop
|image = RobertTopala.png
|born = {{Birth date and age|1987|2|23}}
|nickname = RubRub, Zhenmuron
|country = {{Flag|se|Sweden}}
|modstatus = Developer
|levels = 6
|rated = 1
|creatorpoints = 1
|stats = [https://gdbrowser.com/u/RobTop RobTop]
|youtube = [https://www.youtube.com/channel/UCz_yk8mDSAnxJq0ar66L4sw RobTopGames]
|twitch = [https://www.twitch.tv/directory/category/geometry-dash Geometry Dash]
|twitter = [https://x.com/robtopgames @RobTopGames]
|other = [https://www.robtopgames.com www.robtopgames.com]
}}