Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:RoundAvatar: Difference between revisions

Template page
LightSwitch (talk | contribs)
Created page with "<onlyinclude><includeonly><div style="display: inline-block; border-radius: 100px; width: {{#iferror:{{#expr:{{{2|100}}} + 1}}|100|{{#ifexpr:{{{2|100}}} > 16|{{#ifexpr:{{{2|10..."
 
LightSwitch (talk | contribs)
No edit summary
Line 1: Line 1:
<onlyinclude><includeonly><div style="display: inline-block; border-radius: 100px; 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; border-radius: 150px; 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>
<noinclude>
==Using==
==Using==
To use it, simply include the template name and the username of the user in the content.
To use it, simply include the template name and the username of the user in the content.
<pre>
<pre>
{{Avatar|Username}}
{{RoundAvatar|Username}}
</pre>
</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:
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>
<pre>
{{Avatar|Username|Size}}
{{RoundAvatar|Username|Size}}
</pre>
</pre>
</noinclude>
</noinclude>

Revision as of 05:03, 11 July 2020


Using

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

{{RoundAvatar|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:

{{RoundAvatar|Username|Size}}
Contents