Template:AvatarFor: Difference between revisions

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|{{:{{{1}}}/Avatar}}|{{#ifexist:File:{{{1}}}.png|[[File:{{{1}}}.png|link={{{1}}}]]}}<noinclude>
{{#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>
{
{