Icons
From semantic-mediawiki.org
This page is in reference to Cindy's contribution 'Smart iconography on your wiki' to SMW Con Fall 2019 It show approaches how to use Icons in your Wiki.
Contents
Icon sources[edit]
- https://en.wikipedia.org/wiki/UTF-8
- https://fontawesome.com/
- https://octicons.github.com/
- https://www.iconfinder.com/
- Material Design Icons
for usage in skins, see Help:Skins
BITPlan's approaches[edit]
UTF-8[edit]
Font Awesome[edit]
Updating Icons[edit]
#!/bin/bash
# WF 2024-08-12
# aided by ChatGPT
# Directory containing SVG files
SVG_DIR="/var/www/fontawesome/svgs/regular"
# MediaWiki page output file
OUTPUT_FILE=/tmp/"icons.wiki"
# Loop through all SVG files in the directory
for f in "$SVG_DIR"/*.svg
do
# Get the basename of the file (without the path and extension)
basename=$(basename "$f" .svg)
# Append the MediaWiki markup to the output file using cat << EOF
cat << EOF >> "$OUTPUT_FILE"
{{Icon
|name=$basename
|style=regular
|size=48
|storemode=subobject
}}
EOF
done
echo "Icon MediaWiki markup now at $OUTPUT_FILE"
Material Design Icons[edit]
- https://google.github.io/material-design-icons/#icon-font-for-the-web
- https://material.io/resources/icons/?style=baseline
- https://stackoverflow.com/a/37626669/1497139
- https://cdn.materialdesignicons.com/1.1.34/
- http://wiki.bitplan.com/index.php/Template:MdiIcon
Bigstock pictures[edit]
Example Icons in this wiki[edit]