File

2021-01-10 15.03.09.png

From Dogcraft Wiki

(Difference between pages)
(A screenshot of the Omega Empire taken by Cyrrel)
 
No edit summary
 
Line 1: Line 1:
== Summary ==
<noinclude>
A screenshot of the Omega Empire taken by Cyrrel
==Player template==
This template adds a head image next to a player's username. Add wherever you refer to a player name. Useful for helping identify players.
===Example===
<nowiki>{{Player|William278}}</nowiki> generates: {{Player|William278}}
===Template Data===
<templatedata>{
"description": "Displays a player head next to a player's username and italicizes the username.",
"params": {
"1": {
"label": "Username",
"description": "Player's in-game name",
"type": "string",
"required": true
},
"2": {
"label": "Display name",
"description": "Name to display. Leave empty by defualt. Use only if the name to display differs from the username. (Useful in case of a username change)",
"type": "string",
"required": false
},
"uuid": {
"label": "UUID",
"description": "Optional field for entering player minecraft UUID. This field does not replace Username, which still controls the name that appears on the page.",
"example": "5dfb0558-e306-44f4-bb9a-f9218d4eb787",
"type": "string"
},
"formerly": {
"label": "Formerly",
"description": "Toggle property for using the \"formerly\" syntax, useful in case of a username change. Requires both Username and Display name to be specified. This property will toggle if it has any content, regardless of what that is.",
"example": "\"1\" or \"true\"",
"type": "boolean"
}
},
"format": "inline",
"paramOrder": [
"1",
"2",
"uuid",
"formerly"
]
}</templatedata></noinclude><includeonly><span style="white-space:nowrap;">{{#if: {{{uuid|}}}|https://dogcraft.net/img/mc/avatars/{{{uuid}}}?size=20.png|{{#ifeq: {{UUID|{{{1}}}}}|Unlinked Account|https://minotar.net/helm/{{{1|char}}}/20.png|https://dogcraft.net/img/mc/avatars/{{UUID|{{{1}}}}}?size=20.png}}}}<nowiki></nowiki>&nbsp;''{{#if: {{{formerly|}}}|{{{1}}} (formerly {{{2}}})|{{#if: {{{2|}}}|{{{2|}}}|{{{1}}}}}}}''</span></includeonly>

Revision as of 23:09, 27 February 2021

Player template

This template adds a head image next to a player's username. Add wherever you refer to a player name. Useful for helping identify players.

Example

{{Player|William278}} generates: 20.png William278

Template Data

Displays a player head next to a player's username and italicizes the username.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Username1

Player's in-game name

Stringrequired
Display name2

Name to display. Leave empty by defualt. Use only if the name to display differs from the username. (Useful in case of a username change)

Stringoptional
UUIDuuid

Optional field for entering player minecraft UUID. This field does not replace Username, which still controls the name that appears on the page.

Example
5dfb0558-e306-44f4-bb9a-f9218d4eb787
Stringoptional
Formerlyformerly

Toggle property for using the "formerly" syntax, useful in case of a username change. Requires both Username and Display name to be specified. This property will toggle if it has any content, regardless of what that is.

Example
"1" or "true"
Booleanoptional

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current21:03, 10 January 2021Thumbnail for version as of 21:03, 10 January 20211,280 × 1,024 (2.88 MB)Cyrel6 (talk | contribs)A screenshot of the Omega Empire taken by Cyrrel

The following page uses this file:

This page was last modified on 27 February 2021, at 23:09. (3 years ago)