Infobox

edit

The conversation started here, and as it diverged, I prefer to start a new topic.

(By the way, we can have this conversation in French or English.)

As this infobox is designed, you have to define a background image for each infobox type and call it using CSS. The icons are defined in MediaWiki:Common.css:

.entete.divinite {background-image: url("//lagbt.wiwiland.net/images/0/06/Dieu.png");}

In the infobox code, you have a placeholder to add the icon: <div class="entete {{#if:{{{icon|}}}|icon {{{icon|}}}}}">

When used in an article, the infobox looks like this: {{Modèle:Infobox V3/Début |icon = }}. This code won't display any icon, as the field is empty.

But when filled appropriately, with the term defined in CSS (like in {{Modèle:Infobox V3/Début |icon = divinite }}), then the infobox displays the background image defined in MediaWiki:Common.css.

This is case sensitive: divinité or DIVINITE won't work.

Trizek (WMF) (talk) 19:15, 11 July 2023 (UTC)Reply

Thanks! Trizek for your explanation! last question, do you know how to enlarge the icon ?

Bomyy (talk) 16:44, 12 July 2023 (UTC)Reply

CSS. :)
You can define the size for all icons (.entete), or just one icon (by its own class). Trizek (WMF) (talk) 10:57, 13 July 2023 (UTC)Reply
Do you know the method?
font-size ? Bomyy (talk) 11:50, 13 July 2023 (UTC)Reply
As it is a background element, I'd bed on background-size.
I can provide help for mediawiki, but my knowledge of CSS is quite basic. :) I can't help you much there, sorry.
You should use external ressources to learn or improve your knowledge of CSS, like on W3Schools or Mozilla Developer. Trizek (WMF) (talk) 15:58, 17 July 2023 (UTC)Reply
Thank you, Trizek! but I succeeded with a method with software to enlarge the icon, and it's simple! Bomyy (talk) 20:02, 17 July 2023 (UTC)Reply