The official discord link if you wish to join the discord: https://discord.gg/j5RKwCvAFu

The background art comes from Cherylann1960.

Template:Avatar: Difference between revisions

From The Codex
PlozAlcachaz
PlozAlcachaz (talk | contribs) (Created page with "<onlyinclude><includeonly><div style="display: inline-block; width: {{#iferror:{{#expr:{{{2|100}}} + 1}}|100|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|100}}} > 150|150|{{{2|10...")
 
PlozBot
PlozBot (talk | contribs) (Protected "Template:Avatar": Protection against possible vandalism ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
m
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude><includeonly><div style="display: inline-block; width: {{#iferror:{{#expr:{{{2|100}}} + 1}}|100|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|100}}} > 150|150|{{{2|100}}}}}|16}}}}px; height: {{#iferror:{{#expr:{{{2|100}}} + 1}}|100|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|100}}} > 150|150|{{{2|100}}}}}|16}}}}px; line-height: {{#iferror:{{#expr:{{{2|100}}} + 1}}|99|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|100}}} > 150|149|{{#expr:{{{2|100}}} - 1}}}}|15}}}}px;vertical-align: middle;" class="UserAvatarFetch"><span class="avi-thisUsername" style="display: none;">{{{1|}}}</span><span class="avi-thisSize" style="display: none;">{{{2|}}}</span></div></includeonly></onlyinclude>
<onlyinclude><includeonly><div style="display: inline-block; width: {{#iferror:{{#expr:{{{2|100}}} + 1}}|100|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|100}}} > 150|150|{{{2|100}}}}}|16}}}}px; height: {{#iferror:{{#expr:{{{2|100}}} + 1}}|100|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|100}}} > 150|150|{{{2|100}}}}}|16}}}}px; line-height: {{#iferror:{{#expr:{{{2|100}}} + 1}}|99|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|100}}} > 150|149|{{#expr:{{{2|100}}} - 1}}}}|15}}}}px;vertical-align: middle;" class="UserAvatarFetch"><span class="avi-thisUsername" style="display: none;">{{{1|}}}</span><span class="avi-thisSize" style="display: none;">{{{2|}}}</span></div></includeonly></onlyinclude>
<noinclude>
==Using==
To use it, simply include the template name and the username of the user in the content.
<pre>
{{Avatar|Username}}
</pre>
You can also change the size of the avatar (minimum size: 16 x 16px, maximum: 150 x 150px, default: 100 x 100px), (leave the px out) like so:
<pre>
{{Avatar|Username|Size}}
</pre>
Example:
<pre>
{{Avatar|Andrey Andrey|50}}
</pre>
Results in the following:
{{Avatar|GiverOfThePeace|50}}


<noinclude>[[Category:Templates]]{{documentation}}
Original script page — [[w:c:dev:User Avatar Finder]]
<!--This template is taken from the Steven Universe Wiki-->
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 18:40, 1 April 2021


Using

To use it, simply include the template name and the username of the user in the content.

{{Avatar|Username}}

You can also change the size of the avatar (minimum size: 16 x 16px, maximum: 150 x 150px, default: 100 x 100px), (leave the px out) like so:

{{Avatar|Username|Size}}

Example:

{{Avatar|Andrey Andrey|50}}

Results in the following:

Original script page — w:c:dev:User Avatar Finder