We are [b]considering[/b] adding a [i]lua-pgc[I] library with common LUA functions that any script can use. As a proof of concept I implemented [code]PGC_GeocacheTypeIcon(type)[/code] today (not available in production). It would return html to show a [i]geocache type icon[/i], with proper title and such.
I am looking for suggestions for other very common functions that are identical between many scripts, that we could adopt into such library. I am thinking we could make a list here.
[list]
[*] GeocacheTypeIcon(type)
[*] GeocacheSizeIcon(size)
[/list]
We are also looking into creating css rules to help with styling. With two reasons.
[list=1]
[*] Make it easier to style html output.
[*] Make the output look more unified between the scripts.
[/list]
The idea is here to be able to do things like [code]
...
[/code] to get a "green" back background for example. The goal is that no challenge checker scripts should rely on css rules used by the site itself since they might not persist over updates of the site.
Some suggestions I thought of. Other suggestions are welcome.
[list]
[*] Coloring text.
[*] Coloring background.
[*] Bordered table.
[*] Smaller text.
[*] Monospaced text.
[*] Striped tables.
[/list]
The more data we have before a release, the better naming conventions we can start with.