Template:Ddbeyond: Difference between revisions

From Campaigns
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<onlyinclude>{{#get_web_data:
<includeonly>{{#if:{{{small|}}}
url=https://www.dndbeyond.com/profile/{{{profile}}}/characters/{{{id}}}
|{{ddbeyond/small|name={{{name}}}|race={{{race}}}|class1={{{class1}}}|class2={{{class2}}}|class3={{{class3}}}|class4={{{class4}}}|class5={{{class5}}}|class1llv={{{class1lv}}}|class2lv={{{class2lv}}}|class3lv={{{class3lv}}}|class4lv={{{class4lv}}}|class5lv={{{class5lv}}}|str={{{str}}}|dex={{{dex}}}|con={{{con}}}|int={{{int}}}|wis={{{wis}}}|cha={{{cha}}}|ac={{{ac}}}|hp={{{hp}}}|init={{{init}}}}}
|format=html
|{{ddbeyond/large}}
<!--|regex=/<div class="ct-character-sheet-desktop">(.*)</div>/-->
}}
|data=.ct-character-sheet-desktop
</includeonly>
<!--|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 15:09, 9 November 2021

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