Template:AvatarFor: Difference between revisions
Appearance
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`.",..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{#ifexist:{{{1}}}/Avatar| | {{#ifexist:{{{1}}}/Avatar|:{{{1}}}/Avatar|{{#ifexist:File:{{{1}}}.png|File:{{{1}}}.png}}}}<noinclude> | ||
== Example == | |||
E.g: | |||
<nowiki>{{AvatarFor|Jelly}}</nowiki> | |||
{{AvatarFor|Jelly}} | |||
== Template Data == | |||
<templatedata> | <templatedata> | ||
{ | { |
Revision as of 16:59, 21 January 2025
Example
E.g:
{{AvatarFor|Jelly}}
File:Jelly.png
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`.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | 1 user name | The name of the person. | String | required |