#Portable Infobox captions not working

4 messages · Page 1 of 1 (latest)

wild apex
#

I tried to implement the caption-tag in a portable infobox template, but it tells me that said tag is not implemented. Is there another extensions I need to enable or what seems to be the problem? The template works fine without the caption-tag. Sorry if this may seem like a stupid question 😅

next plover
#

<caption> needs to be inside a <image> tag (ie between opening and closing tag for image), but you close the image right away, thus you have it after. Look at the examples provided on https://community.fandom.com/wiki/Help:Infoboxes/Tags#caption

Community Central

Portable infoboxes include a wide variety of tags and options that you can use to make the infobox display how you want. Below we have listed all the standard tags, with sample wikitext and output...

wild apex
#

thank you, it worked! on another note, is it possible to add dynamic content to infobox headers? (i.e. to also give them data when placing the infobox like the other things) <header source="data"/> doesn't seem to work

next plover
#

No, source is not a valid attribute for <header>
That said, you could try and put the parameter call directly in the header text (ie. something like <header>{{{title}}}</header>, if your parameter is name is title, otherwise ofc swap it with your actual parameter name), never tried it myself like that, so no idea if it would work or not

If that still doesn't work, you next option, that will work is to just swap the header tag to a navigation tag, and do it there, as I described above (ie. <navigation>{{{title}}}</navigation>). It may require some extra CSS to make it look proper, but it will work for sure. Navigation tag is basically the fallback tag, if nothing else works, as it accepts any normal wikitext. Yeah no idea why it is called navigation tbh, but it is a nice tag to have as an option when all else fails