Only certain icons actually render in the selection. When using the "book" icon it will just create an empty space where the icon should be.
Talk:OOUI/Widgets/Icons, Indicators, and Labels
Hi @Cyberpower678, where are you looking at? In order to load certain icons, you need to also load the corresponding icon pack as mentioned for example in https://www.mediawiki.org/wiki/OOUI/Using_OOUI_in_MediaWiki#PHP
That looks like backend documentation. I'm trying to create a JS gadget and I want to load the book icon, but it doesn't render.
You can add $out->addModuleStyles( [ 'oojs-ui.styles.icons-editing-core' ] );
in your moduleloader-hook to load additional icons.
@Cyberpower678 You need to load related styles via ResourceLoader, e.g. mw.loader.load( [ 'oojs-ui.styles.icons-editing-citation' ] );
for book icon.
What is needed to use the different icons? I can get it to work with icons like "alert" and "add", but if I use "edit" the icon isn't shown. Are there modules that need to be loaded for specific icons? I have loaded all that I could find: oojs-ui-core, oojs-ui-windows, oojs-ui-widgets, oojs-ui-toolbars.
Also, the "remove" icon used in the example doesn't seem to exist any more; it's not on the auto generated page.
I'm confused about the sentence, "The following icons are included in the OOjs UI library:" followed by a very small image-list of icons- is that out-of-date, or does it refer to some nuance that I'm missing? (IANAD).
I'm essentially asking if someone could either elaborate on the detail of that sentence, and/or link to c:OOjs UI icons directly in the #Icons sections (instead of just the #See_also where most people will miss it.). Ping @Volker E. (WMF):. Thanks!
It's very out of date, yes. Probably best to link to https://doc.wikimedia.org/oojs-ui/master/demos/#icons which exists precisely for this purpose. Linking to a category on Commons would be a bad idea given how half of the items there are former or renamed now.