Jump to content

Template:AvatarFor: Difference between revisions

From Joepedia
No edit summary
No edit summary
Line 1: Line 1:
{{#ifexist:{{{1}}}/Avatar|:{{{1}}}/Avatar|{{#ifexist:File:{{{1}}}.png|File:{{{1}}}.png}}}}<noinclude>
{{#ifexist:{{{1}}}/Avatar|{{:{{{1}}}/Avatar}}|{{#ifexist:File:{{{1}}}.png|[[File:{{{1}}}.png|link={{{1}}}]]}}}}<noinclude>
== Example ==
== Example ==
E.g:  
E.g:  

Revision as of 17:00, 21 January 2025

Example

E.g:

 {{AvatarFor|Jelly}}

Template Data

Helper template to find a user's Avatar. Looks for their `Username/Avatar` subpage first, then falls back to looking for `Username.png`.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Name1 user name

The name of the person.

Stringrequired