Jump to content

Welcome to the βeta launch of Creatorpedia, make your favorite creator shine.

Template talk:Infobox

From Creatorpedia, the creator economy encyclopedia
Revision as of 14:25, 11 April 2026 by Godman Andrew (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Permanently protected Template:Talkheader Template:WikiProject banner shell User:MiszaBot/config Template:Lua sidebar

Collapsing Infoboxes?

I know if this isn't the perfect place to be discussing transclusion, but I've noticed a couple of timeline templates using the infobox template, that have the ability to collapse. Like these:

Template:Paramount Skydance evolution

Template:WildBrain evolution

I'm struggling to incorporate this on a MediaWiki wiki I'm creating. (Template:Paramount evolution - Altcyclopedia) Any idea how to do it? - BiggieSMLZ (talk) 21:30, 4 October 2025 (UTC)

The classes in use in those templates are collapsible and its friend. These classes are aliased locally to mw-collapsible and its friend, which is the standard name. Try those names instead. Izno (talk) 04:52, 5 October 2025 (UTC)
I inserted mw-collapsible in place of collapsed on my template ([https://altcyclopedia.miraheze.org/wiki/Template:Paramount_evolution?action=edit) , but it still had no effect. BiggieSMLZ (talk) 09:59, 5 October 2025 (UTC)

Patch: make |decat=yes prevent categorization from Module:Infobox under Category:Pages using infobox templates with ignored data cells too

Template:Edit template-protected

If you change line #167 in Module:Infobox from <syntaxhighlight lang="wikitext"> if rowArgs.data then </syntaxhighlight>

to

<syntaxhighlight lang="wikitext"> if rowArgs.data and (args.decat ~= 'yes') then </syntaxhighlight>

then |decat=yes will also prevent categorizing because of ignored data cells.

I'd also suggest changing the module to use Module:Yesno since |decat=Yes doesn't work as intended, for example, as I discovered before adding the right parameter to the first example under Template:Infobox/doc#Examples in my local copy of the doc. Tactica (talk) 19:50, 14 October 2025 (UTC)

Template:Done * Pppery * it has begun... 23:40, 12 December 2025 (UTC)

Can the blank rows on child infoboxes be fixed?

(This discussion started at Template talk:Infobox social media personality#Layout when a user reported an infobox with two blank rows. I'm copying over my text from there.)

The blank rows are related to embedding using |child=yes. Almost all of the testcases have a blank line or two, on both desktop and mobile, with this markup:

<syntaxhighlight lang="wikitext" style="overflow: auto"><link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r1316064257"></syntaxhighlight>

One blank line is always created at the beginning of this wrapper template (in-between {{Infobox person}}'s rows and the custom rows for this infobox), and a second is created when embedding this template into another. Both are direct results of |child=yes, which creates a blank row where |title= would be listed. It simply does not suppress this row if the title is left blank. The blank row does NOT occur if you embed using |subbox=yes instead. This issue is actually already mentioned at Template:Infobox#Embedding. A workaround/solution is listed but it would have to be applied everywhere that |child=yes is used. This is something that should be fixed directly at Module:Infobox instead.


Can this possibly be fixed by someone familiar with how this module functions? I've searched through the talk page archives and it seems like this issue may have been fixed in the past. Prefall 21:09, 15 October 2025 (UTC)

The lack of suppression for this row is not shocking. It has to do with how infobox just magically sucks up child infoboxes into its structure. (That hack may somewhen go away, but not anytime soon.)
@Frietjes, if you're around, since you solved some of this the last go around. Izno (talk) 23:53, 16 October 2025 (UTC)
Izno, it's been sometime since I looked at this code. my guess right now is that if we change the code block starting near line 52 to move the categories and templatestyles outside of the cells and to the top of the output this could fix the problem. I will try to find some time to look at it, but I need to brush up on my string processing commands first. Frietjes (talk) 17:05, 20 October 2025 (UTC)
Template:Ping I know you have a ton of other things you are working on, but I just want to voice that I would love to see this fixed... It is causing an issue with basically anything that uses |module= via Module:Template wrapper. For example all the Infoboxes in Category:Templates calling Infobox sportsperson (0) or Category:Templates calling Infobox person (0) have this issue. If I can be helpful in anyway, please ping me! Zackmann (Talk to me/What I been doing) 07:25, 22 October 2025 (UTC)
Template:U, feel free to work on it if you want. the "fixChildBoxes" function is supposed to make the output tidy by making sure the td, th, and tr tags are properly matched, but that might not be working either right now. the two ways I can see making this work are (a) have the generated empty rows styled with "display:none" or (b) detect when a child box is being passed without any content outside of the child box and insert that directly, without having it inside of a table cell. the second option seems nicer since it doesn't have extra blank rows marked as "display:none". Frietjes (talk) 17:12, 22 October 2025 (UTC)
Template:Ping so this may be beyond my talents, but I'll take a stab at it tonight. Zackmann (Talk to me/What I been doing) 17:20, 22 October 2025 (UTC)
Tried anything yet? Cosmo Skerry (talk) 22:22, 23 October 2025 (UTC)
I will confess I have not... I've been stuck on other projects. Template:Smiley Zackmann (Talk to me/What I been doing) 22:26, 23 October 2025 (UTC)

image flip

Is there a way to flip images in an infobox? The image flip template does not seem to work with it. ← Metallurgist (talk) 00:49, 2 December 2025 (UTC)

I'm pretty sure that there was a discussion on this some years ago, the overwhelming consensus being that image flipping (left to right) was not to be encouraged, because it could be seen as misleading; but I can't find it now. That said, our image policies and guidelines are spread about over many pages, and it's often difficult to find even simple things - like the policy on recommended sizes is not on the same page as the policy on captions. --Redrose64 🌹 (talk) 16:48, 2 December 2025 (UTC)

Mystery image appearing at top of InfoBox

The article Nile in English Wikipedia has an infobox, and it displays the image commons:File:Cairo_skyline,_Panoramic_view,_Egypt.jpg at the top. But that image is not mentioend anywhere in the page's markup. Where is the image coming from? And how would one remove it from that InfoBox? Noleander (talk) 02:51, 5 January 2026 (UTC)

Template:Replyto By default, Template:Infobox river pulls an image from Commons based upon the information at the appropriate Wikidata page, which for Nile is d:Q3392, specifically the property d:Q3392#P18. The actual infobox code is <syntaxhighlight lang=wikitext>Script error: No such module "WikidataIB".</syntaxhighlight> which for Nile emits Script error: No such module "WikidataIB".. This may be overridden by filling in the article's infobox with a valid non-blank value for |image=, or suppressed entirely using |suppressfields=image. --Redrose64 🦌 (talk) 11:00, 5 January 2026 (UTC)
Thanks; excellent information. Noleander (talk) 15:30, 5 January 2026 (UTC)
Also replied at Template talk:Infobox river#How hide wikidata photo at top of the InfoBox?. Please avoid cross-posting — Martin (MSGJ · talk) 12:34, 5 January 2026 (UTC)

Autoheaders but off for one element

With {{Infobox radio station}} I am running into an increasing amount of articles (e.g. Chapman Radio) where I want to have city and country show all the time, even if none of the parameters beneath has been specified (e.g. for internet radio stations). The infobox has autoheaders turned on. How do I keep it for the other headers but make the first header always display?

<syntaxhighlight lang=wikitext> | header1 = Template:Ubl

| label2 = Broadcast area | class2 = label | data2 =

| label3 = [[Frequency|FrequencTemplate:Pluralize from text]] | data3 = Template:If empty

| label4 = RDS | data4 =

| label5 = Branding | data5 = </syntaxhighlight> Sammi Brie (she/her · t · c) 04:58, 17 February 2026 (UTC)

Template:Replyto Have you considered setting |area=Internet in the articles concerned? --Redrose64 🌹 (talk) 14:42, 17 February 2026 (UTC)
That's not a one-size-fits-all solution @Redrose64. The internet really isn't an area. There are also stations on DAB I have to deal with, or that have 20 FM frequencies that don't belong in an infobox. Sammi Brie (she/her · t · c) 21:19, 17 February 2026 (UTC)
Why not put those two in new dataTemplate:Var parameters and modify the header. The header doesn't really describe all things in that section. That seems like the simplest and most correct fix. Gonnym (talk) 13:06, 18 February 2026 (UTC)
I agree with Gonnym. You can move the city/country into data1, perhaps with "Location" as label1. Then in header2 you can give a header for Broadcast area, Frequency and RDS. Have a look what I've done in Template:Infobox radio station/sandbox — Martin (MSGJ · talk) 15:02, 18 February 2026 (UTC)
Hmmmmm... That's not a bad idea. I'm thinking about ways that this could be done without changing the formatting. There's no good header for the stuff right under there because it's often fundamentally basic information (that can't be buried in one of the header bins below). Linking your revision because I think I want to do some of my own trial-and-error. Sammi Brie (she/her · t · c) 05:12, 21 February 2026 (UTC)
Another option would be to set them as the |subheader=. Primefac (talk) 08:51, 27 March 2026 (UTC)