[Mediawiki-l] Dynamic Tables

Giuseppe Briotti g.briotti at mclink.it
Wed Nov 7 12:18:29 UTC 2007


Sorry Nelson :-)

The PropertyTable is a MediaWiki Extension, so I assume
that it is easy to find. The link is:

http://www.mediawiki.org/wiki/Extension_talk:PropertyTable

The original extension code works in order to create a 
dynamic table based on key=value pairs. I made some 
modifications to the code, in order to obtain dynamic 
table like one in this page on my wiki:

http://www.usnb.it/wiki/index.php?title=Ameba_Gigante#La_Scheda

This was achieved using the following syntax (note the @title key):

<properties>
@title=Qualità
Abilità=12
Coraggio=7
Classe=15
@title=Dati Fisici
Resistenza=10
Velocità=0,25
En. Vitale=40
Costituzione=20
@title=Combattimento
Attacco=12
Parata=0
@title=Armamento
Impatto=1D6+3
Protezione=0
</properties>

I'm testing this modification widely on my wiki and it
seems to work fine. I write a message on Fernando Correia
(the original author) for code publishing.

An enhancement could be a simple parameter to set the 
class of table tag attribute for CSS, but it seems not so 
difficult.

Bye

Giuseppe Briotti


--

Giuseppe Briotti
g.briotti at mclink.it

"Alme Sol, curru nitido diem qui 
promis et celas aliusque et idem 
nasceris, possis nihil urbe Roma 
visere maius."
                        (Orazio)







More information about the MediaWiki-l mailing list