Difference between revisions of "Template:GetUserData"

From Pathfinder Wiki
Line 1: Line 1:
<includeonly>{{#dpl:title=User:{{{user|{{CURRENTUSER}}}}}/Profile|include={UserProfile}:{{{data|Division}}}}}</includeonly><noinclude>
+
<includeonly>{{#vardefine:data|{{#dpl:title=User:{{{user|{{CURRENTUSER}}}}}/Profile|include={UserProfile}:{{{data|Division}}}}}}}
 +
{{#if:{{#var:data}}|{{#var:data}}|{{#popupalert:Please add a UserProfile template to [[User:{{{user|{{CURRENTUSER}}}}}/Profile]], with a {{{data}}} parameter}}}}
 +
</includeonly><noinclude>
 
Fetches profile data from the UserProfile template on the user's User:''username''/Profile page.
 
Fetches profile data from the UserProfile template on the user's User:''username''/Profile page.
  

Revision as of 00:22, 9 April 2021

Fetches profile data from the UserProfile template on the user's User:username/Profile page.

If no user argument is specified, it assumes the current user. If the current user is anonymous, it returns an empty string.

The data argument specifies an argument in the UserProfile template on the user's profile page.

Example

{{GetUserData}} →

Extension:DynamicPageList3 (DPL3), version 3.4.4: Error: No selection criteria found! You must use at least one of the following parameters: category, namespace, titlematch, linksto, uses, createdby, modifiedby, lastmodifiedby, or their 'not' variants


{{GetUserData|user=Jomegat|data=Union}} → Atlantic Union


{{GetUserData|user=Jomegat|data=Club}} → Merrimack Valley


{{GetUserData|user=Jomegat|data=Criminal Record}} → Clean


{{GetUserData|user=DesignerThan|data=Criminal Record}} →