Something with a link to Foo to test MediaWiki:Common.less mix-ins from Codex https://doc.wikimedia.org/codex/latest/components/mixins/link.html
{
"name": "icons.json",
"callback": "MediaWiki\\ResourceLoader\\CodexModule::getIcons",
"callbackParam": [
// List the icons your module needs here, e.g.:
"cdxIconArrowNext",
"cdxIconBold",
"cdxIconTrash"
]
}
cdxIconLogoCC cdxIconLogoCodex cdxIconLogoMediaWiki cdxIconLogoMetaWiki cdxIconLogoWikibooks cdxIconLogoWikidata cdxIconLogoWikifunctions cdxIconLogoWikimedia cdxIconLogoWikimediaCommons cdxIconLogoWikimediaDiscovery cdxIconLogoWikinews cdxIconLogoWikipedia cdxIconLogoWikiquote cdxIconLogoWikisource cdxIconLogoWikispecies cdxIconLogoWikiversity
CSS-only icons[edit]
from https://doc.wikimedia.org/codex/latest/using-codex/developing.html#css-only-icons
This:
<html> <!-- Standalone icon. --> <span class="my-icon-class--map-pin"></span> <button class="cdx-button cdx-button--action-destructive"> <!-- Icon inside a button. --> <span class="my-icon-class--trash"></span> Delete </button> </html>
produces:
However, this example is not working.
Code
Map pin