You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!/bin/bash# WF 2024-08-12# aided by ChatGPT# Directory containing SVG files
SVG_DIR="/var/www/fontawesome/svgs/solid"# MediaWiki page output file
OUTPUT_FILE=/tmp/"icons.wiki"# Initialize a counter
counter=0
# remove file if it exists
rm $OUTPUT_FILE# Loop through all SVG files in the directoryforfin"$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 << EOFecho"{{Icon|name=$basename|style=regular|size=48|storemode=subobject}}">>"$OUTPUT_FILE"# Increment the counter((counter++))# Add a newline after every 25 iconsif(( counter %25==0));thenecho"">>"$OUTPUT_FILE"fidoneecho"Icon MediaWiki markup now at $OUTPUT_FILE"
head $OUTPUT_FILE
The Icons are outdated and that leads to e.g. https://contexts.bitplan.com/index.php/Template:Icon not displaying correctly
The text was updated successfully, but these errors were encountered: