Template:AvatarFor

Revision as of 16:54, 21 January 2025 by Latty (talk | contribs) (Created page with "{{#ifexist:{{{1}}}/Avatar|{{:{{{1}}}/Avatar}}|{{#ifexist:File:{{{1}}}.png|[[File:{{{1}}}.png|link={{{1}}}]]}}<noinclude> <templatedata> { "params": { "1": { "aliases": [ "user", "name" ], "label": "Name", "description": "The name of the person.", "type": "string", "required": true } }, "description": "Helper template to find a user's Avatar. Looks for their `Username/Avatar` subpage first, then falls back to looking for `Username.png`.",...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

{{#ifexist:{{{1}}}/Avatar|{{:{{{1}}}/Avatar}}|

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