Template:Infobox creature/internal: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 73: | Line 73: | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<header>Saving throws</header> | <header>Saving throws</header> | ||
<data source="str | <!-- We intentionally use the ability scores as the data sources, | ||
so this group won't be rendered if ability scores are missing, | |||
like for inanimate objects --> | |||
<data source="str"> | |||
<label>{{#if: {{{str save prof|}}} | '''STR''' | STR }}</label> | <label>{{#if: {{{str save prof|}}} | '''STR''' | STR }}</label> | ||
<format>{{#if: {{{str save prof|}}} | '''{{{str save}}}''' | {{{str save}}} }}</format> | <format>{{#if: {{{str save prof|}}} | '''{{{str save}}}''' | {{{str save}}} }}</format> | ||
</data> | </data> | ||
<data source="dex | <data source="dex"> | ||
<label>{{#if: {{{dex save prof|}}} | '''DEX''' | DEX }}</label> | <label>{{#if: {{{dex save prof|}}} | '''DEX''' | DEX }}</label> | ||
<format>{{#if: {{{dex save prof|}}} | '''{{{dex save}}}''' | {{{dex save}}} }}</format> | <format>{{#if: {{{dex save prof|}}} | '''{{{dex save}}}''' | {{{dex save}}} }}</format> | ||
</data> | </data> | ||
<data source="con | <data source="con"> | ||
<label>{{#if: {{{con save prof|}}} | '''CON''' | CON }}</label> | <label>{{#if: {{{con save prof|}}} | '''CON''' | CON }}</label> | ||
<format>{{#if: {{{con save prof|}}} | '''{{{con save}}}''' | {{{con save}}} }}</format> | <format>{{#if: {{{con save prof|}}} | '''{{{con save}}}''' | {{{con save}}} }}</format> | ||
</data> | </data> | ||
<data source="int | <data source="int"> | ||
<label>{{#if: {{{int save prof|}}} | '''INT''' | INT }}</label> | <label>{{#if: {{{int save prof|}}} | '''INT''' | INT }}</label> | ||
<format>{{#if: {{{int save prof|}}} | '''{{{int save}}}''' | {{{int save}}} }}</format> | <format>{{#if: {{{int save prof|}}} | '''{{{int save}}}''' | {{{int save}}} }}</format> | ||
</data> | </data> | ||
<data source="wis | <data source="wis"> | ||
<label>{{#if: {{{wis save prof|}}} | '''WIS''' | WIS }}</label> | <label>{{#if: {{{wis save prof|}}} | '''WIS''' | WIS }}</label> | ||
<format>{{#if: {{{wis save prof|}}} | '''{{{wis save}}}''' | {{{wis save}}} }}</format> | <format>{{#if: {{{wis save prof|}}} | '''{{{wis save}}}''' | {{{wis save}}} }}</format> | ||
</data> | </data> | ||
<data source="cha | <data source="cha"> | ||
<label>{{#if: {{{cha save prof|}}} | '''CHA''' | CHA }}</label> | <label>{{#if: {{{cha save prof|}}} | '''CHA''' | CHA }}</label> | ||
<format>{{#if: {{{cha save prof|}}} | '''{{{cha save}}}''' | {{{cha save}}} }}</format> | <format>{{#if: {{{cha save prof|}}} | '''{{{cha save}}}''' | {{{cha save}}} }}</format> | ||
Line 159: | Line 162: | ||
<group layout="horizontal"> | <group layout="horizontal"> | ||
<header>Saving throws</header> | <header>Saving throws</header> | ||
<data source="t str | <data source="t str"> | ||
<label>{{#if: {{{t str save prof|}}} | '''STR''' | STR }}</label> | <label>{{#if: {{{t str save prof|}}} | '''STR''' | STR }}</label> | ||
<format>{{#if: {{{t str save prof|}}} | '''{{{t str save}}}''' | {{{t str save}}} }}</format> | <format>{{#if: {{{t str save prof|}}} | '''{{{t str save}}}''' | {{{t str save}}} }}</format> | ||
</data> | </data> | ||
<data source="t dex | <data source="t dex"> | ||
<label>{{#if: {{{t dex save prof|}}} | '''DEX''' | DEX }}</label> | <label>{{#if: {{{t dex save prof|}}} | '''DEX''' | DEX }}</label> | ||
<format>{{#if: {{{t dex save prof|}}} | '''{{{t dex save}}}''' | {{{t dex save}}} }}</format> | <format>{{#if: {{{t dex save prof|}}} | '''{{{t dex save}}}''' | {{{t dex save}}} }}</format> | ||
</data> | </data> | ||
<data source="t con | <data source="t con"> | ||
<label>{{#if: {{{t con save prof|}}} | '''CON''' | CON }}</label> | <label>{{#if: {{{t con save prof|}}} | '''CON''' | CON }}</label> | ||
<format>{{#if: {{{t con save prof|}}} | '''{{{t con save}}}''' | {{{t con save}}} }}</format> | <format>{{#if: {{{t con save prof|}}} | '''{{{t con save}}}''' | {{{t con save}}} }}</format> | ||
</data> | </data> | ||
<data source="t int | <data source="t int"> | ||
<label>{{#if: {{{t int save prof|}}} | '''INT''' | INT }}</label> | <label>{{#if: {{{t int save prof|}}} | '''INT''' | INT }}</label> | ||
<format>{{#if: {{{t int save prof|}}} | '''{{{t int save}}}''' | {{{t int save}}} }}</format> | <format>{{#if: {{{t int save prof|}}} | '''{{{t int save}}}''' | {{{t int save}}} }}</format> | ||
</data> | </data> | ||
<data source="t wis | <data source="t wis"> | ||
<label>{{#if: {{{t wis save prof|}}} | '''WIS''' | WIS }}</label> | <label>{{#if: {{{t wis save prof|}}} | '''WIS''' | WIS }}</label> | ||
<format>{{#if: {{{t wis save prof|}}} | '''{{{t wis save}}}''' | {{{t wis save}}} }}</format> | <format>{{#if: {{{t wis save prof|}}} | '''{{{t wis save}}}''' | {{{t wis save}}} }}</format> | ||
</data> | </data> | ||
<data source="t cha | <data source="t cha"> | ||
<label>{{#if: {{{t cha save prof|}}} | '''CHA''' | CHA }}</label> | <label>{{#if: {{{t cha save prof|}}} | '''CHA''' | CHA }}</label> | ||
<format>{{#if: {{{t cha save prof|}}} | '''{{{t cha save}}}''' | {{{t cha save}}} }}</format> | <format>{{#if: {{{t cha save prof|}}} | '''{{{t cha save}}}''' | {{{t cha save}}} }}</format> |
Revision as of 10:05, 13 April 2024
This is the raw internal infobox template for creatures. It does very little processing on its parameters and expects all the data to be spoon-fed.