Difference between revisions of "Template:Avatar"
(Created page with "<includeonly><!-- -->{{#ifexist:<!-- -->File:Avatar {{{1}}}.jpg|[[File:Avatar {{{1}}}.jpg|100px|link=|alt={{{1}}}|{{{1}}}]]|<!-- -->{{#ifexist:<!-- -->File:Av...") |
m |
||
Line 1: | Line 1: | ||
<includeonly><!-- | <includeonly><!-- | ||
− | -->{{#ifexist:<!-- | + | -->{{#ifeq: {{{1}}}|Vacant|<!-- |
− | + | -->[[File:Avatar Static.jpg|100px|link=|alt={{{1}}}|{{{1}}}]]|<!-- | |
− | + | -->{{#ifexist:<!-- | |
− | + | -->File:Avatar {{{1}}}.jpg|[[File:Avatar {{{1}}}.jpg|100px|link=|alt={{{1}}}|{{{1}}}]]|<!-- | |
− | + | -->{{#ifexist:<!-- | |
− | + | -->File:Avatar {{{1}}}.gif|[[File:Avatar {{{1}}}.gif|100px|link=|alt={{{1}}}|{{{1}}}]]|<!-- | |
− | -->}}<!-- | + | -->[[File:Avatar {{{1}}}.png|100px|link=|alt={{{1}}}|{{{1}}}]]<!-- |
− | --></includeonly><noinclude> | + | -->}}<!-- |
+ | -->}}<!-- | ||
+ | -->}}</includeonly><noinclude> | ||
== Usage == | == Usage == | ||
− | <pre> | + | <pre><nowiki> |
{{Avatar|handle}} | {{Avatar|handle}} | ||
− | </pre> | + | </nowiki></pre> |
== Description == | == Description == | ||
− | This template shows the avatar of a user. The image must be at File:Avatar ''<handle>''. | + | This template shows the avatar of a user. The image must be at File:Avatar ''<handle>''.Extension. Currently supported extension are: jpg, png, gif. If there is no image at that location, a link with the handle is shown, so that the avatar can be uploaded easily. |
'''Note:''' On default the link points to a png, if the image has a different extension, it must be changed in the uploading process. | '''Note:''' On default the link points to a png, if the image has a different extension, it must be changed in the uploading process. | ||
== Examples == | == Examples == | ||
− | <pre>{{Avatar|Eleonore Silvermoon}}</pre> | + | <pre><nowiki>{{Avatar|Eleonore Silvermoon}}</nowiki></pre> |
{{Avatar|Eleonore Silvermoon}} | {{Avatar|Eleonore Silvermoon}} | ||
− | <pre>{{Avatar|No One}}</pre> | + | <pre><nowiki>{{Avatar|No One}}</nowiki></pre> |
{{Avatar|No One}} | {{Avatar|No One}} | ||
+ | |||
+ | <pre><nowiki>{{Avatar|Vacant}}</nowiki></pre> | ||
+ | {{Avatar|Vacant}} | ||
</noinclude> | </noinclude> |
Latest revision as of 12:50, 9 June 2016
Usage
{{Avatar|handle}}
Description
This template shows the avatar of a user. The image must be at File:Avatar <handle>.Extension. Currently supported extension are: jpg, png, gif. If there is no image at that location, a link with the handle is shown, so that the avatar can be uploaded easily.
Note: On default the link points to a png, if the image has a different extension, it must be changed in the uploading process.
Examples
{{Avatar|Eleonore Silvermoon}}
{{Avatar|No One}}
{{Avatar|Vacant}}