Template:Ddbeyond: Difference between revisions

From Campaigns
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
url=https://www.dndbeyond.com/profile/{{{profile}}}/characters/{{{id}}}
url=https://www.dndbeyond.com/profile/{{{profile}}}/characters/{{{id}}}
|format=html
|format=html
|regex=/<div class="ct-character-sheet-desktop">(.*)</div>
|regex=/<div class="ct-character-sheet-desktop">(.*)</div>/
|data=
<!--|data=local_variable_name1=external_variable_name1, etc.
<!--|data=local_variable_name1=external_variable_name1, etc.
|filters=external_variable_name1=filter_value1, etc.
|filters=external_variable_name1=filter_value1, etc.

Revision as of 14:21, 9 November 2021

{{#get_web_data: url=https://www.dndbeyond.com/profile/{{{profile}}}/characters/{{{id}}} |format=html

|regex=/

(.*)

/

|data= }}

Template documentation

Inserts a character from D&D Beyond into a wiki page

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
user profileprofile

Name of the D&D Beyond profile that owns the character

Stringrequired
character idid

Id of the character to display

Numberrequired