Template:Infobox creature/internal: Difference between revisions
Jump to navigation
Jump to search
HiddenDragon (talk | contribs) mNo edit summary |
HiddenDragon (talk | contribs) (Removed difficulty params, need another solution) |
||
Line 164: | Line 164: | ||
</group> | </group> | ||
</group> | </group> | ||
</section | </section | ||
<section> | <section> | ||
<label>Explorer</label> | <label>Explorer</label> | ||
Line 285: | Line 284: | ||
</group> | </group> | ||
</section> | </section> | ||
<section> | <section> | ||
<label>Tactician</label> | <label>Tactician</label> | ||
Line 406: | Line 403: | ||
</group> | </group> | ||
</section> | </section> | ||
<section> | <section> | ||
<label>Honour</label> | <label>Honour</label> | ||
Line 527: | Line 522: | ||
</group> | </group> | ||
</section> | </section> | ||
</panel> | </panel> | ||
</infobox></includeonly><noinclude> | </infobox></includeonly><noinclude> |
Revision as of 00:57, 14 July 2024
There is a problem with parsing the infobox
-
0
-
1<title source="name"></title>
-
2<data source="title"></data>
-
3<image source="image"></image>
-
4<data source="full name">
-
5<label>Full Name</label>
-
6</data>
-
7<data source="va">
-
8<label>Voiced by</label>
-
9</data>
-
10<data source="role">
-
11<label>Role</label>
-
12</data>
-
13<data source="faction">
-
14<label>Faction</label>
-
15</data>
-
16<data source="family">
-
17<label>Family</label>
-
18</data>
-
19<data source="hometown">
-
20<label>Hometown</label>
-
21</data>
-
22<group>
-
23<header>Stats</header>
-
24<data source="size">
-
25<label>Size</label>
-
26</data>
-
27<data source="type">
-
28<label>Type</label>
-
29</data>
-
30<data source="race">
-
31<label>Race</label>
-
32</data>
-
33<data source="archetype">
-
34<label>Archetype</label>
-
35</data>
-
36<data source="class">
-
37<label>Class</label>
-
38</data>
-
39<data source="background">
-
40<label>Background</label>
-
41</data>
-
42</group>
-
43<panel>
-
44<section>
-
45<label>Balanced</label>
-
46<group>
-
47<header>Balanced Difficulty Stats</header>
-
48<data source="level">
-
49<label>Level</label>
-
50</data>
-
51<data source="hp">
-
52<label>HP</label>
-
53</data>
-
54<data source="ac">
-
55<label>AC</label>
-
56</data>
-
57<data source="init bonus">
-
58<label>Initiative</label>
-
59</data>
-
60<data source="prof bonus">
-
61<label>Proficiency</label>
-
62</data>
-
63<data source="movement m">
-
64<label>Movement</label>
-
65<format>{{{movement m|0}}} m ({{{movement ft|0}}} ft)</format>
-
66</data>
-
67<data source="weight kg">
-
68<label>Weight</label>
-
69<format>{{{weight kg|0}}} kg ({{{weight lb|0}}} lb)</format>
-
70</data>
-
71<group layout="horizontal">
-
72<header>Ability scores</header>
-
73<data source="str">
-
74<label>STR</label>
-
75<format>{{{str}}}<br/>({{{str mod}}})</format>
-
76</data>
-
77<data source="dex">
-
78<label>DEX</label>
-
79<format>{{{dex}}}<br/>({{{dex mod}}})</format>
-
80</data>
-
81<data source="con">
-
82<label>CON</label>
-
83<format>{{{con}}}<br/>({{{con mod}}})</format>
-
84</data>
-
85<data source="int">
-
86<label>INT</label>
-
87<format>{{{int}}}<br/>({{{int mod}}})</format>
-
88</data>
-
89<data source="wis">
-
90<label>WIS</label>
-
91<format>{{{wis}}}<br/>({{{wis mod}}})</format>
-
92</data>
-
93<data source="cha">
-
94<label>CHA</label>
-
95<format>{{{cha}}}<br/>({{{cha mod}}})</format>
-
96</data>
-
97</group>
-
98<group layout="horizontal">
-
99<header>Saving throws</header>
-
100<!-- We intentionally use the ability scores as the data sources,
-
101so this group won't be rendered if ability scores are missing,
-
102like for inanimate objects -->
-
103<data source="str">
-
104<label>{{#if: {{{str save prof|}}} | '''STR''' | STR }}</label>
-
105<format>{{#if: {{{str save prof|}}} | '''{{{str save}}}''' | {{{str save}}} }}</format>
-
106</data>
-
107<data source="dex">
-
108<label>{{#if: {{{dex save prof|}}} | '''DEX''' | DEX }}</label>
-
109<format>{{#if: {{{dex save prof|}}} | '''{{{dex save}}}''' | {{{dex save}}} }}</format>
-
110</data>
-
111<data source="con">
-
112<label>{{#if: {{{con save prof|}}} | '''CON''' | CON }}</label>
-
113<format>{{#if: {{{con save prof|}}} | '''{{{con save}}}''' | {{{con save}}} }}</format>
-
114</data>
-
115<data source="int">
-
116<label>{{#if: {{{int save prof|}}} | '''INT''' | INT }}</label>
-
117<format>{{#if: {{{int save prof|}}} | '''{{{int save}}}''' | {{{int save}}} }}</format>
-
118</data>
-
119<data source="wis">
-
120<label>{{#if: {{{wis save prof|}}} | '''WIS''' | WIS }}</label>
-
121<format>{{#if: {{{wis save prof|}}} | '''{{{wis save}}}''' | {{{wis save}}} }}</format>
-
122</data>
-
123<data source="cha">
-
124<label>{{#if: {{{cha save prof|}}} | '''CHA''' | CHA }}</label>
-
125<format>{{#if: {{{cha save prof|}}} | '''{{{cha save}}}''' | {{{cha save}}} }}</format>
-
126</data>
-
127</group>
-
128<group>
-
129<header>Resistances <sup>[[Resistances|(info)]]</sup></header>
-
130<data source="resistances" name="resistances">
-
131<format>{{#invoke: ParseList | main | {{{resistances}}} | useTemplate = Parse resistance | style = htmlList }}</format>
-
132</data>
-
133</group>
-
134<group>
-
135<header>Actions</header>
-
136<data source="actions" name="actions">
-
137<format>{{#invoke:
-
138ParseList | main | {{{actions}}}
-
139| useTemplate = Infobox creature/actions query
-
140| style = htmlListNoBullets
-
141}}</format>
-
142</data>
-
143</group>
-
144<group>
-
145<header>Conditions</header>
-
146<data source="conditions" name="conditions">
-
147<format>{{#invoke:
-
148ParseList | main | {{{conditions}}}
-
149| useTemplate = Infobox creature/conditions query
-
150| style = htmlListNoBullets
-
151}}</format>
-
152</data>
-
153</group>
-
154<group>
-
155<header>Features</header>
-
156<data source="passives" name="passives">
-
157<format>{{#invoke:
-
158ParseList | main | {{{passives}}}
-
159| useTemplate = Infobox creature/passives parser
-
160| style = htmlListNoBullets
-
161}}</format>
-
162</data>
-
163</group>
-
164</group>
-
165</section
-
166<section>
-
167<label>Explorer</label>
-
168<group>
-
169<header>Explorer Difficulty Stats ({{{has explorer stats|}}})</header>
-
170<data source="e level">
-
171<label>Level</label>
-
172</data>
-
173<data source="e hp">
-
174<label>HP</label>
-
175</data>
-
176<data source="e ac">
-
177<label>AC</label>
-
178</data>
-
179<data source="e init bonus">
-
180<label>Initiative</label>
-
181</data>
-
182<data source="e prof bonus">
-
183<label>Proficiency</label>
-
184</data>
-
185<data source="e movement m">
-
186<label>Movement</label>
-
187<format>{{{e movement m|0}}} m ({{{e movement ft|0}}} ft)</format>
-
188</data>
-
189<data source="e weight kg">
-
190<label>Weight</label>
-
191<format>{{{e weight kg|0}}} kg ({{{e weight lb|0}}} lb)</format>
-
192</data>
-
193<group layout="horizontal">
-
194<header>Ability scores</header>
-
195<data source="e str">
-
196<label>STR</label>
-
197<format>{{{e str}}}<br/>({{{e str mod}}})</format>
-
198</data>
-
199<data source="e dex">
-
200<label>DEX</label>
-
201<format>{{{e dex}}}<br/>({{{e dex mod}}})</format>
-
202</data>
-
203<data source="e con">
-
204<label>CON</label>
-
205<format>{{{e con}}}<br/>({{{e con mod}}})</format>
-
206</data>
-
207<data source="e int">
-
208<label>INT</label>
-
209<format>{{{e int}}}<br/>({{{e int mod}}})</format>
-
210</data>
-
211<data source="e wis">
-
212<label>WIS</label>
-
213<format>{{{e wis}}}<br/>({{{e wis mod}}})</format>
-
214</data>
-
215<data source="e cha">
-
216<label>CHA</label>
-
217<format>{{{e cha}}}<br/>({{{e cha mod}}})</format>
-
218</data>
-
219</group>
-
220<group layout="horizontal">
-
221<header>Saving throws</header>
-
222<data source="e str">
-
223<label>{{#if: {{{e str save prof|}}} | '''STR''' | STR }}</label>
-
224<format>{{#if: {{{e str save prof|}}} | '''{{{e str save}}}''' | {{{e str save}}} }}</format>
-
225</data>
-
226<data source="e dex">
-
227<label>{{#if: {{{e dex save prof|}}} | '''DEX''' | DEX }}</label>
-
228<format>{{#if: {{{e dex save prof|}}} | '''{{{e dex save}}}''' | {{{e dex save}}} }}</format>
-
229</data>
-
230<data source="e con">
-
231<label>{{#if: {{{e con save prof|}}} | '''CON''' | CON }}</label>
-
232<format>{{#if: {{{e con save prof|}}} | '''{{{e con save}}}''' | {{{e con save}}} }}</format>
-
233</data>
-
234<data source="e int">
-
235<label>{{#if: {{{e int save prof|}}} | '''INT''' | INT }}</label>
-
236<format>{{#if: {{{e int save prof|}}} | '''{{{e int save}}}''' | {{{e int save}}} }}</format>
-
237</data>
-
238<data source="e wis">
-
239<label>{{#if: {{{e wis save prof|}}} | '''WIS''' | WIS }}</label>
-
240<format>{{#if: {{{e wis save prof|}}} | '''{{{e wis save}}}''' | {{{e wis save}}} }}</format>
-
241</data>
-
242<data source="e cha">
-
243<label>{{#if: {{{e cha save prof|}}} | '''CHA''' | CHA }}</label>
-
244<format>{{#if: {{{e cha save prof|}}} | '''{{{e cha save}}}''' | {{{e cha save}}} }}</format>
-
245</data>
-
246</group>
-
247<group>
-
248<header>Resistances <sup>[[Resistances|(info)]]</sup></header>
-
249<data source="e resistances" name="resistances">
-
250<format>{{#invoke: ParseList | main | {{{e resistances}}} | useTemplate = Parse resistance | style = htmlList }}</format>
-
251</data>
-
252</group>
-
253<group>
-
254<header>Actions</header>
-
255<data source="e actions" name="actions">
-
256<format>{{#invoke:
-
257ParseList | main | {{{e actions}}}
-
258| useTemplate = Infobox creature/actions query
-
259| style = htmlListNoBullets
-
260}}</format>
-
261</data>
-
262</group>
-
263<group>
-
264<header>Conditions</header>
-
265<data source="e conditions" name="conditions">
-
266<format>{{#invoke:
-
267ParseList | main | {{{e conditions}}}
-
268| useTemplate = Infobox creature/conditions query
-
269| style = htmlListNoBullets
-
270}}</format>
-
271</data>
-
272</group>
-
273<group>
-
274<header>Features</header>
-
275<data source="e passives" name="passives">
-
276<format>{{#invoke:
-
277ParseList | main | {{{e passives}}}
-
278| useTemplate = Infobox creature/passives parser
-
279| style = htmlListNoBullets
-
280}}</format>
-
281</data>
-
282</group>
-
283</group>
-
284</section>
-
285<section>
-
286<label>Tactician</label>
-
287<group>
-
288<header>Tactician Difficulty Stats</header>
-
289<data source="t level">
-
290<label>Level</label>
-
291</data>
-
292<data source="t hp">
-
293<label>HP</label>
-
294</data>
-
295<data source="t ac">
-
296<label>AC</label>
-
297</data>
-
298<data source="t init bonus">
-
299<label>Initiative</label>
-
300</data>
-
301<data source="t prof bonus">
-
302<label>Proficiency</label>
-
303</data>
-
304<data source="t movement m">
-
305<label>Movement</label>
-
306<format>{{{t movement m|0}}} m ({{{t movement ft|0}}} ft)</format>
-
307</data>
-
308<data source="t weight kg">
-
309<label>Weight</label>
-
310<format>{{{t weight kg|0}}} kg ({{{t weight lb|0}}} lb)</format>
-
311</data>
-
312<group layout="horizontal">
-
313<header>Ability scores</header>
-
314<data source="t str">
-
315<label>STR</label>
-
316<format>{{{t str}}}<br/>({{{t str mod}}})</format>
-
317</data>
-
318<data source="t dex">
-
319<label>DEX</label>
-
320<format>{{{t dex}}}<br/>({{{t dex mod}}})</format>
-
321</data>
-
322<data source="t con">
-
323<label>CON</label>
-
324<format>{{{t con}}}<br/>({{{t con mod}}})</format>
-
325</data>
-
326<data source="t int">
-
327<label>INT</label>
-
328<format>{{{t int}}}<br/>({{{t int mod}}})</format>
-
329</data>
-
330<data source="t wis">
-
331<label>WIS</label>
-
332<format>{{{t wis}}}<br/>({{{t wis mod}}})</format>
-
333</data>
-
334<data source="t cha">
-
335<label>CHA</label>
-
336<format>{{{t cha}}}<br/>({{{t cha mod}}})</format>
-
337</data>
-
338</group>
-
339<group layout="horizontal">
-
340<header>Saving throws</header>
-
341<data source="t str">
-
342<label>{{#if: {{{t str save prof|}}} | '''STR''' | STR }}</label>
-
343<format>{{#if: {{{t str save prof|}}} | '''{{{t str save}}}''' | {{{t str save}}} }}</format>
-
344</data>
-
345<data source="t dex">
-
346<label>{{#if: {{{t dex save prof|}}} | '''DEX''' | DEX }}</label>
-
347<format>{{#if: {{{t dex save prof|}}} | '''{{{t dex save}}}''' | {{{t dex save}}} }}</format>
-
348</data>
-
349<data source="t con">
-
350<label>{{#if: {{{t con save prof|}}} | '''CON''' | CON }}</label>
-
351<format>{{#if: {{{t con save prof|}}} | '''{{{t con save}}}''' | {{{t con save}}} }}</format>
-
352</data>
-
353<data source="t int">
-
354<label>{{#if: {{{t int save prof|}}} | '''INT''' | INT }}</label>
-
355<format>{{#if: {{{t int save prof|}}} | '''{{{t int save}}}''' | {{{t int save}}} }}</format>
-
356</data>
-
357<data source="t wis">
-
358<label>{{#if: {{{t wis save prof|}}} | '''WIS''' | WIS }}</label>
-
359<format>{{#if: {{{t wis save prof|}}} | '''{{{t wis save}}}''' | {{{t wis save}}} }}</format>
-
360</data>
-
361<data source="t cha">
-
362<label>{{#if: {{{t cha save prof|}}} | '''CHA''' | CHA }}</label>
-
363<format>{{#if: {{{t cha save prof|}}} | '''{{{t cha save}}}''' | {{{t cha save}}} }}</format>
-
364</data>
-
365</group>
-
366<group>
-
367<header>Resistances <sup>[[Resistances|(info)]]</sup></header>
-
368<data source="t resistances" name="resistances">
-
369<format>{{#invoke: ParseList | main | {{{t resistances}}} | useTemplate = Parse resistance | style = htmlList }}</format>
-
370</data>
-
371</group>
-
372<group>
-
373<header>Actions</header>
-
374<data source="t actions" name="actions">
-
375<format>{{#invoke:
-
376ParseList | main | {{{t actions}}}
-
377| useTemplate = Infobox creature/actions query
-
378| style = htmlListNoBullets
-
379}}</format>
-
380</data>
-
381</group>
-
382<group>
-
383<header>Conditions</header>
-
384<data source="t conditions" name="conditions">
-
385<format>{{#invoke:
-
386ParseList | main | {{{t conditions}}}
-
387| useTemplate = Infobox creature/conditions query
-
388| style = htmlListNoBullets
-
389}}</format>
-
390</data>
-
391</group>
-
392<group>
-
393<header>Features</header>
-
394<data source="t passives" name="passives">
-
395<format>{{#invoke:
-
396ParseList | main | {{{t passives}}}
-
397| useTemplate = Infobox creature/passives parser
-
398| style = htmlListNoBullets
-
399}}</format>
-
400</data>
-
401</group>
-
402</group>
-
403</section>
-
404<section>
-
405<label>Honour</label>
-
406<group>
-
407<header>Honour Difficulty Stats</header>
-
408<data source="h level">
-
409<label>Level</label>
-
410</data>
-
411<data source="h hp">
-
412<label>HP</label>
-
413</data>
-
414<data source="h ac">
-
415<label>AC</label>
-
416</data>
-
417<data source="h init bonus">
-
418<label>Initiative</label>
-
419</data>
-
420<data source="h prof bonus">
-
421<label>Proficiency</label>
-
422</data>
-
423<data source="h movement m">
-
424<label>Movement</label>
-
425<format>{{{h movement m|0}}} m ({{{h movement ft|0}}} ft)</format>
-
426</data>
-
427<data source="h weight kg">
-
428<label>Weight</label>
-
429<format>{{{h weight kg|0}}} kg ({{{h weight lb|0}}} lb)</format>
-
430</data>
-
431<group layout="horizontal">
-
432<header>Ability scores</header>
-
433<data source="h str">
-
434<label>STR</label>
-
435<format>{{{h str}}}<br/>({{{h str mod}}})</format>
-
436</data>
-
437<data source="h dex">
-
438<label>DEX</label>
-
439<format>{{{h dex}}}<br/>({{{h dex mod}}})</format>
-
440</data>
-
441<data source="h con">
-
442<label>CON</label>
-
443<format>{{{h con}}}<br/>({{{h con mod}}})</format>
-
444</data>
-
445<data source="h int">
-
446<label>INT</label>
-
447<format>{{{h int}}}<br/>({{{h int mod}}})</format>
-
448</data>
-
449<data source="h wis">
-
450<label>WIS</label>
-
451<format>{{{h wis}}}<br/>({{{h wis mod}}})</format>
-
452</data>
-
453<data source="h cha">
-
454<label>CHA</label>
-
455<format>{{{h cha}}}<br/>({{{h cha mod}}})</format>
-
456</data>
-
457</group>
-
458<group layout="horizontal">
-
459<header>Saving throws</header>
-
460<data source="h str">
-
461<label>{{#if: {{{h str save prof|}}} | '''STR''' | STR }}</label>
-
462<format>{{#if: {{{h str save prof|}}} | '''{{{h str save}}}''' | {{{h str save}}} }}</format>
-
463</data>
-
464<data source="h dex">
-
465<label>{{#if: {{{h dex save prof|}}} | '''DEX''' | DEX }}</label>
-
466<format>{{#if: {{{h dex save prof|}}} | '''{{{h dex save}}}''' | {{{h dex save}}} }}</format>
-
467</data>
-
468<data source="h con">
-
469<label>{{#if: {{{h con save prof|}}} | '''CON''' | CON }}</label>
-
470<format>{{#if: {{{h con save prof|}}} | '''{{{h con save}}}''' | {{{h con save}}} }}</format>
-
471</data>
-
472<data source="h int">
-
473<label>{{#if: {{{h int save prof|}}} | '''INT''' | INT }}</label>
-
474<format>{{#if: {{{h int save prof|}}} | '''{{{h int save}}}''' | {{{h int save}}} }}</format>
-
475</data>
-
476<data source="h wis">
-
477<label>{{#if: {{{h wis save prof|}}} | '''WIS''' | WIS }}</label>
-
478<format>{{#if: {{{h wis save prof|}}} | '''{{{h wis save}}}''' | {{{h wis save}}} }}</format>
-
479</data>
-
480<data source="h cha">
-
481<label>{{#if: {{{h cha save prof|}}} | '''CHA''' | CHA }}</label>
-
482<format>{{#if: {{{h cha save prof|}}} | '''{{{h cha save}}}''' | {{{h cha save}}} }}</format>
-
483</data>
-
484</group>
-
485<group>
-
486<header>Resistances <sup>[[Resistances|(info)]]</sup></header>
-
487<data source="h resistances" name="resistances">
-
488<format>{{#invoke: ParseList | main | {{{h resistances}}} | useTemplate = Parse resistance | style = htmlList }}</format>
-
489</data>
-
490</group>
-
491<group>
-
492<header>Actions</header>
-
493<data source="h actions" name="actions">
-
494<format>{{#invoke:
-
495ParseList | main | {{{h actions}}}
-
496| useTemplate = Infobox creature/actions query
-
497| style = htmlListNoBullets
-
498}}</format>
-
499</data>
-
500</group>
-
501<group>
-
502<header>Conditions</header>
-
503<data source="h conditions" name="conditions">
-
504<format>{{#invoke:
-
505ParseList | main | {{{h conditions}}}
-
506| useTemplate = Infobox creature/conditions query
-
507| style = htmlListNoBullets
-
508}}</format>
-
509</data>
-
510</group>
-
511<group>
-
512<header>Features</header>
-
513<data source="h passives" name="passives">
-
514<format>{{#invoke:
-
515ParseList | main | {{{h passives}}}
-
516| useTemplate = Infobox creature/passives parser
-
517| style = htmlListNoBullets
-
518}}</format>
-
519</data>
-
520</group>
-
521</group>
-
522</section>
-
523</panel>
-
524
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.