Talk:Official Maps

From Red Eclipse Wiki
Jump to: navigation, search
updated using the following script:


echo '
==Main maps==

<gallery>'
gawk '
    /mainmaps/{
        gsub("\"","")
        for (i=2; i<=NF;i++) {
            sub(".",substr(toupper($i),1,1),$i)
            print "file:"$i".png |[[Map_"$i"|"$i"]]"
        }
    }
' ../config/version.cfg
echo ' </gallery>

==Race maps==
<gallery>'
gawk '
    /racemaps/{
        gsub("\"","")
        for (i=2; i<=NF;i++) {
            sub(".",substr(toupper($i),1,1),$i)
            print "file:"$i".png |[[Map_"$i"|"$i"]]"
        }
    }
' ../config/version.cfg
echo ' </gallery>

==Gladiator maps==
<gallery>'
gawk '
    /gladiatormaps/{
        gsub("\"","")
        for (i=2; i<=NF;i++) {
            sub(".",substr(toupper($i),1,1),$i)
            print "file:"$i".png |[[Map_"$i"|"$i"]]"
        }
    }
' ../config/version.cfg
echo ' </gallery>

==Map lists==
'
gawk '
    /maps/{
        gsub("\"","")
        print ""
        print "==="$1"==="
        for (i=2; i<=NF;i++) {
            sub(".",substr(toupper($i),1,1),$i)
            printf "[[Map_"$i"|"$i"]] "
        }
    }
' ../config/version.cfg