No edit summary Tag: Manual revert |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
|cache seconds=60 | |cache seconds=60 | ||
|suppress error=true | |suppress error=true | ||
}}<div class="home-card rank-card rank__{{{Background|{{#switch:{{{Rank}}}|staff=Staff|Founder=Staff|Owner=Staff|Admin=Staff|Developer=Staff|Dev=Staff|Moderator=Staff|Mod=Staff|Support=Staff|player=Pebble|{{{Rank|Pebble}}}}}}}}"> | }}<div class="home-card rank-card rank__{{{Background|{{#switch:{{{Rank}}}|staff=Staff|Founder=Staff|Owner=Staff|Admin=Staff|Developer=Staff|Dev=Staff|Moderator=Staff|Mod=Staff|Support=Staff|player=Pebble|{{{Rank|Pebble}}}}}}}}"><div class="rank-card__image">{{DynImage|https://visage.surgeplay.com/bust/{{{UUID|{{#external_value:useruuid|ec561538-f3fd-461d-aff5-086b22154bce}}}}}.png}}</div> | ||
<div class="rank-card__image">{{DynImage|https://visage.surgeplay.com/bust/{{{UUID|{{#external_value:useruuid|ec561538-f3fd-461d-aff5-086b22154bce}}}}}.png}}</div> | |||
<div class="button-container__spacebetween"> | <div class="button-container__spacebetween"> | ||
<div class="home-card__info"><span class="rank-card__name">{{{Name|Steve}}}</span><br><span class="rank-card__price">{{{Rank|Pebble}}}</span></div> | <div class="home-card__info"><span class="rank-card__name">{{{Name|Steve}}}</span><br><span class="rank-card__price">{{{Rank|Pebble}}}</span></div> | ||
<div class="home-card__links"><div class="home-link__button viewdetails-button">{{#switch:{{{ShowProfile|true}}}| true = [[User:{{{Profile|{{{Name| | <div class="home-card__links"><div class="home-link__button viewdetails-button">{{#switch:{{{ShowProfile|true}}}| true = [[User:{{{Profile|{{{Name|Steve}}}}}}|Visit profile]]|false = }}</div></div> | ||
</div> | </div> | ||
</div> | </div> | ||
<templatestyles src="Template:Rank/styles.css"/><!-- For preview only --><templatestyles src="Template:Home/shared/styles.css" /><noinclude>{{/doc}}</noinclude> | <templatestyles src="Template:Rank/styles.css"/><!-- For preview only --><templatestyles src="Template:Home/shared/styles.css" /><noinclude>{{/doc}}</noinclude> |
Latest revision as of 18:27, 23 May 2024
{{Player}} is a template for displaying a graphical card that represents a member of the server. Given a name and rank, it will generate a card with the appropriate image and profile link.
Displays a card of the given player with an auto-generated image, rank data, and profile link.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | Name | The Minecraft name of the user
| String | required |
UUID | UUID | The UUID of the player. This value is automatically determined from the Name value. You only need to set this manually if the username differs from the skin you want to display.
| String | optional |
Rank | Rank | The rank of the user in-game. This is used to display the correct background for the user.
| String | required |
Profile Link | Profile | The username of the user on the site. This field is not required if the "Name" parameter matches their username on the site.
| User | optional |
Show Profile | ShowProfile | Controls whether or not to show a link to the user's site profile. Overrides all other options. Accepts true or false as inputs.
| Boolean | optional |
Hidden functions
The template has an additional override parameter:
- Background
- When set, this parameter controls which background should display, regardless of the given value for Rank.