Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Template:User profile/doc"

From Roll20 Wiki

Jump to: navigation, search
m
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
Grants attribution to the author of an API script.
+
{{documentation subpage|override=user profile/doc|User profile}}
 +
Links to a user's Roll20 profile page
  
 
== Parameters ==
 
== Parameters ==
Line 9: Line 10:
 
|-
 
|-
 
| d20userid
 
| d20userid
| The user ID of the script author. This template will then link to that user's profile page.
+
| The user's ID. This template will then link to that user's profile page.
 
|-
 
|-
 
| name
 
| name
Line 24: Line 25:
 
! Output
 
! Output
 
|-
 
|-
| <code><nowiki>{{script author|235259|Brian}}</nowiki></code>
+
| <code><nowiki>{{user profile|235259|Brian}}</nowiki></code>
| {{script author|235259|Brian}}
+
| {{user profile|235259|Brian}}
 
|-
 
|-
| <code><nowiki>{{script author|name=Brian|d20userid=235259}}</nowiki></code>
+
| <code><nowiki>{{user profile|name=Brian|d20userid=235259}}</nowiki></code>
| {{script author|name=Brian|d20userid=235259}}
+
| {{user profile|name=Brian|d20userid=235259}}
 
|-
 
|-
| <code><nowiki>{{script author|235259|name=Brian}}</nowiki></code>
+
| <code><nowiki>{{user profile|235259|name=Brian}}</nowiki></code>
| {{script author|235259|name=Brian}}
+
| {{user profile|235259|name=Brian}}
 
|-
 
|-
| <code><nowiki>{{script author|d20userid=235259|Brian}}</nowiki></code>
+
| <code><nowiki>{{user profile|d20userid=235259|Brian}}</nowiki></code>
| {{script author|d20userid=235259|Brian}}
+
| {{user profile|d20userid=235259|Brian}}
 
|}
 
|}
  
Line 42: Line 43:
 
File:Brian Profile.jpg|Profile URL
 
File:Brian Profile.jpg|Profile URL
 
File:Brian Userpage.jpg|Userpage
 
File:Brian Userpage.jpg|Userpage
</gallery><noinclude>[[Category:Template Documentation]]</noinclude><includeonly>[[Category:API Templates]]</includeonly>
+
</gallery>
 +
<includeonly>
 +
[[Category:API Templates]]
 +
</includeonly>

Latest revision as of 16:28, 31 January 2021

Links to a user's Roll20 profile page

[edit] Parameters

Name Description
d20userid The user's ID. This template will then link to that user's profile page.
name The user's display name.

The parameters can either be named, or else provided without names (with d20userid first when both are provided).

[edit] Usage

Wikitext Output
{{user profile|235259|Brian}} Brian
{{user profile|name=Brian|d20userid=235259}} Brian
{{user profile|235259|name=Brian}} Brian
{{user profile|d20userid=235259|Brian}} Brian

In order to discover a user's ID, you can visit their profile and grab the number from the URL, or visit their userpage (if they have one) and do the same.