Template:IB-Player: Difference between revisions
Jump to navigation
Jump to search
m Protected "Template:IB-Player": Match protection of Official Wiki counterpart; preserve stronger existing protection ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) |
Use VE-compatible infobox markup with bold labels and normal values; add born and died fields Tag: Reverted |
||
| Line 1: | Line 1: | ||
<infobox> | <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"> | ||
{{#if:{{#pos:{{{image|}}}|[}}|{{{image|}}}|{{#if:{{#pos:{{{image|}}}|<}}|{{{image|}}}|[[File:{{#replace:{{{image|}}}|File:|}}|300px]]}}}} | |||
</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;"> | |||
{{{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;"> | |||
{{{country|}}} | |||
</div></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;">Born</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;">Died</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | |||
{{{died|}}} | |||
</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|Mod status]]</div><div class="pi-data-value pi-font" style="flex:1 1 0;min-width:0;font-weight:normal;"> | |||
{{{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;"> | |||
{{{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;"> | |||
{{{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;"> | |||
{{{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;"> | |||
{{{stats|''[https://gdbrowser.com/search Please search]''}}} | |||
</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;"> | |||
{{{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;"> | |||
{{{twitch|}}} | |||
</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|}}} | |||
</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;"> | |||
{{{other|}}} | |||
</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. | ||
;Notes | |||
:The <code>died</code> parameter is reserved for Michigun; omit it for other players. | |||
;Syntax | ;Syntax | ||
<pre> | <pre> | ||
| Line 51: | Line 39: | ||
|nickname = | |nickname = | ||
|country = | |country = | ||
|born = | |||
|died = (Michigun only) | |||
|modstatus = | |modstatus = | ||
|levels = | |levels = | ||
| Line 68: | Line 58: | ||
|nickname = RubRub, Zhenmuron | |nickname = RubRub, Zhenmuron | ||
|country = {{Flag|se|Sweden}} | |country = {{Flag|se|Sweden}} | ||
|born = 23 February 1987 | |||
|modstatus = Developer | |modstatus = Developer | ||
|levels = 6 | |levels = 6 | ||
| Line 84: | Line 75: | ||
|nickname = RubRub, Zhenmuron | |nickname = RubRub, Zhenmuron | ||
|country = {{Flag|se|Sweden}} | |country = {{Flag|se|Sweden}} | ||
|born = 23 February 1987 | |||
|modstatus = Developer | |modstatus = Developer | ||
|levels = 6 | |levels = 6 | ||
Revision as of 14:55, 11 October 2026
- Description
- This template is an infobox which provides information about a player at a glance.
- Notes
- The
diedparameter is reserved for Michigun; omit it for other players. - Syntax
{{IB-Player
|name = (automatic)
|image =
|nickname =
|country =
|born =
|died = (Michigun only)
|modstatus =
|levels =
|rated =
|creatorpoints =
|stats = (required)
|youtube =
|twitch =
|twitter =
|other =
}}
- Sample & output
{{IB-Player
|name = RobTop
|image = [[File:RobertTopala.png]]
|nickname = RubRub, Zhenmuron
|country = {{Flag|se|Sweden}}
|born = 23 February 1987
|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://twitter.com/robtopgames @RobTopGames]
|other = [https://www.robtopgames.com www.robtopgames.com]
}}
