Template:Character: Difference between revisions

78 bytes added ,  18:26, 16 December 2021
m
Remove stat labels / etcetera from search index
m (remove attributes block from search index)
m (Remove stat labels / etcetera from search index)
Line 131: Line 131:
{{#if: {{#pos: {{{hp|~}}}{{{av|~}}}{{{dv|~}}} | ~ }}
{{#if: {{#pos: {{{hp|~}}}{{{av|~}}}{{{dv|~}}} | ~ }}
| <!-- Don't create stat table if HP, AV, or DV are missing -->
| <!-- Don't create stat table if HP, AV, or DV are missing -->
|{{infobox row|class=qud-core-stats|field=
|{{infobox row|class=qud-core-stats navigation-not-searchable|field=
{{Character/CoreStats | hp={{{hp}}}| av={{{av}}}| dv={{{dv}}}}}
{{Character/CoreStats | hp={{{hp}}}| av={{{av}}}| dv={{{dv}}}}}
}} <!-- end infobox row -->
}} <!-- end infobox row -->
}} <!-- end #if -->
}} <!-- end #if -->
{{#if: {{{lv|}}} | {{infobox row|class=qud-character-level|field={{Character/Level | {{{lv}}} }} }} }}
{{#if: {{{lv|}}} | {{infobox row|class=qud-character-level navigation-not-searchable|field={{Character/Level | {{{lv}}} }} }} }}
<!----------------------------------------
<!----------------------------------------


Line 260: Line 260:
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}
{{#if: {{{acid|}}}{{{electric|}}}{{{cold|}}}{{{heat|}}}
| <!-- Only create resistances block if at least one resistance is specified -->
| <!-- Only create resistances block if at least one resistance is specified -->
{{infobox row|class=qud-resistances|field=
{{infobox row|class=qud-resistances navigation-not-searchable|field=
<div class="qud-resistances-wrapper">
<div class="qud-resistances-wrapper">
{{ Character/Resistance |Acid|{{{acid|0}}}}}
{{ Character/Resistance |Acid|{{{acid|0}}}}}