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@mclink.it
"Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius." (Orazio)
Giuseppe,
Thank you for the information. I am "very new" on MediaWiki so some "basic" things may be unknown to me. Do I have to wait for an updated version of the PropertyTable extension from http://www.mediawiki.org/wiki/extension_matrix or I can download your updated version from somewhere else?
Nelson
Computer Sciences Corporation Registered Office: 2100 East Grand Avenue, El Segundo California 90245, USA Registered in USA No: C-489-59
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This is a PRIVATE message. If you are not the intended recipient, please delete without copying and kindly advise us by e-mail of the mistake in delivery. NOTE: Regardless of content, this e-mail shall not operate to bind CSC to any order or other contract unless pursuant to explicit written agreement or government initiative expressly permitting the use of e-mail for such purpose. ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Giuseppe Briotti <g.briotti@mclink .it> To Sent by: mediawiki-l@lists.wikimedia.org mediawiki-l-bounc cc es@lists.wikimedi a.org Subject Re: [Mediawiki-l] Dynamic Tables
11/07/2007 07:18 AM
Please respond to MediaWiki announcements and site admin list <mediawiki-l@list s.wikimedia.org>
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@mclink.it
"Alme Sol, curru nitido diem qui promis et celas aliusque et idem nasceris, possis nihil urbe Roma visere maius." (Orazio)
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org