Template

Avatar

From Dogcraft Wiki

m (Adding template data)
mNo edit summary
Line 4: Line 4:
<nowiki>{{Avatar|William278|120}}</nowiki> generates: {{Avatar|William278|120}}
<nowiki>{{Avatar|William278|120}}</nowiki> generates: {{Avatar|William278|120}}


</noinclude><includeonly><span class="noexcerpt" style="white-space:nowrap; {{#if: {{{block|}}}|display:block; {{#if: {{{float|}}}|float:{{{float|}}};|}} {{#if: {{{margin|}}}|margin:{{{margin|0 .3em}}};|}}|}}">{{#if: {{{uuid|}}}|https://dogcraft.net/img/mc/avatars/{{{uuid}}}?size={{{size|{{{2}}}}}}.png|https://minotar.net/helm/{{{1|char}}}/{{{size|{{{2}}}}}}.png}}</span></includeonly>
</noinclude><includeonly><span class="noexcerpt" style="white-space:nowrap; {{#if: {{{block|}}}|display:block; {{#if: {{{float|}}}|float:{{{float|}}};|}} {{#if: {{{margin|}}}|margin:{{{margin|0 .3em}}};|}}|}}">{{#if: {{{uuid|}}}|https://dogcraft.net/img/mc/avatars/{{{uuid}}}?size={{{size|{{{2}}}}}}?overlay=true.png|https://minotar.net/helm/{{{1|char}}}/{{{size|{{{2}}}}}}.png}}</span></includeonly>
<noinclude>
<noinclude>
<templatedata>
<templatedata>

Revision as of 16:59, 2 January 2021

Example

{{Avatar|William278|120}} generates: 120.png



Adds a image of a user's skin's face with an option to set size.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Username1

The ingame name of the user for whom to get the skin. May be replaced by UUID.

Example
William278
Stringrequired
Size2 size

The size at which to display the avatar. This is a plain number, specifying the width of one side of the square in pixels.

Default
20
Example
20
Numberoptional
Block toggleblock

Optional toggle paramter for block display mode. If it contains anything, it will toggle. Use for image-like display.

Example
"1" or "true" or "xyz"
Booleanoptional
Float (used in block mode)float

Used for specifying an optional float in block display mode.

Example
"left" or "right"
Stringoptional
Margin (used in block mode)margin

Used for specifying an optional margin in block display mode.

Default
0 .3em
Example
0 .3em
Auto value
0 .3em
Stringoptional
UUIDuuid

The mc UUID of the user for whom to get the avatar for. May be the full uuid, or the {{UUID}} template. Can replace the Username parameter.

Example
5dfb0558-e306-44f4-bb9a-f9218d4eb787 or {{UUID|William}}
Stringsuggested
Sizesize 2

The size at which to display the avatar. This is a plain number, specifying the width of one side of the square in pixels.

Default
20
Example
20
Numberrequired
This page was last modified on 2 January 2021, at 16:59. (11 months ago)