Fix wiki links, make red links red
This commit is contained in:
parent
2678fe5505
commit
1e3c22c159
@ -27,6 +27,9 @@
|
|||||||
color: white;
|
color: white;
|
||||||
text-shadow: 0px 0px 5px black;
|
text-shadow: 0px 0px 5px black;
|
||||||
}
|
}
|
||||||
|
a.new {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
<script src="mapscript.js"> </script>
|
<script src="mapscript.js"> </script>
|
||||||
</body>
|
</body>
|
||||||
|
@ -11,7 +11,7 @@ coords=`echo "$json" | sed -n "s/.*coordinates = {{Co|\([^}]*\).*/\1/p"`
|
|||||||
coord_x=`echo "$coords" | sed -n "s/\([^|]\+\).*/\1/p"`
|
coord_x=`echo "$coords" | sed -n "s/\([^|]\+\).*/\1/p"`
|
||||||
coord_y=`echo "$coords" | sed -n "s/.*|\([^|]\+\).*/\1/p"`
|
coord_y=`echo "$coords" | sed -n "s/.*|\([^|]\+\).*/\1/p"`
|
||||||
|
|
||||||
description=`curl "https://wiki.linux-forks.de/mediawiki/api.php?action=parse&page=$1§ion=0&prop=text&format=json" 2>/dev/null | sed -z -n "s/<\/p><p>//g;s/.*<p>\(.*\)<\/p>.*/\1/p"`
|
description=`curl "https://wiki.linux-forks.de/mediawiki/api.php?action=parse&page=$1§ion=0&prop=text&format=json" 2>/dev/null | sed -z -n "s/<\/p><p>//g;s/.*<p>\(.*\)<\/p>.*/\1/p" | sed s,\"/mediawiki/index.php,\"https://wiki.linux-forks.de/mediawiki/index.php,g`
|
||||||
|
|
||||||
|
|
||||||
if [[ "$coord_x" != "" && "$coord_y" != "" ]]; then
|
if [[ "$coord_x" != "" && "$coord_y" != "" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user