Template:Ddbeyond: Difference between revisions

From Campaigns
Jump to navigation Jump to search
Created page with "<onlyinclude>{{#get_web_data:}}</onlyinclude> {{documentation}}"
 
No edit summary
Line 1: Line 1:
<onlyinclude>{{#get_web_data:}}</onlyinclude>
<onlyinclude>{{#get_web_data:
url=https://www.dndbeyond.com/profile/{{{profile}}}/characters/{{{id}}}
|format=html
|regex=/<div class="ct-character-sheet-desktop">(.*)</div>
<!--|data=local_variable_name1=external_variable_name1, etc.
|filters=external_variable_name1=filter_value1, etc.
|start line=start from this line (one-based), may be negative, may be in percents
|end line=end at this line (one-based), may be negative, may be in percents
|header lines=include so many lines at the beginning anyway
|footer lines=include so many lines at the end anyway
|use xpath
|default xmnlns prefix=use this namespace prefix where there is none
|use jsonpath
|json offset=number of characters
|allow trailing commas
|post data=additional data
|cache seconds=number of seconds
|use stale cache
|suppress error-->
}}</onlyinclude>
{{documentation}}
{{documentation}}

Revision as of 14:20, 9 November 2021

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

|regex=/

(.*)

}}

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