Extension talk:PropertyTable

Latest comment: 16 years ago by Briotti in topic Questions

Feedback

edit

Questions

edit

Is this working on 1.19.x

edit

Anyone knows?

More cells in a table

edit

Is it possible to somehow get more than two cells in a table, without using different titles?.. I'm looking for something like:

Cell1Cell2Cell3

--Jesper 12:49, 15 January 2008 (UTC)


Use in templates

edit

Is it possible to call your extension from a template. I've tried it and it just prints out the variable call, not the value.

I'm working on this. --Fernando Correia 11:49, 28 June 2007 (UTC)Reply

More complex tables

edit

Is it somehow possible to have more complex tables created using this syntax? I'm not worried about styling, but rather having 3 or 4 columns, merging cells, etc. Thanks -- 199.173.224.21

I've considered that but initially I decided against it. It seems to me that the value of this extension lies in the simplicity of the syntax. If we add too many options that would complicate the sintax and we would soon have a complex syntax similar to the native MediaWiki table markup or to HTML table tags. But if anyone can suggest syntax improvements that would keep it simple and add more features, feel free to do so. --Fernando Correia 10:40, 21 February 2007 (UTC)Reply

This seems a good extension! It is possible to have a little more? Say, using the key=value syntax for me could be useful to have the table on more than 2 column... as example:

Section 1Section 2
key1value1key4value4
key2value2key5value5
key3value3

with following syntax (the @title is of course just a proposal):

<properties>
@title=section 1
key1=value1
key2=value2
key3=value3
@title=section 2
key4=value4
key5=value5
</properties>

--Briotti 08:37, 25 October 2007 (UTC)Reply

I've seen your code... I'll try to implement this feature and I'll send you the code for approval... --Briotti 09:19, 25 October 2007 (UTC)Reply
Done! It works... you can see it in action at http://www.usnb.it/wiki/index.php?title=Ameba_Gigante#La_Scheda
the tag is
<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>
As you can see, now it is possible to declare several blocks of two columns with key-value pairs --Briotti 00:15, 27 October 2007 (UTC)Reply
This feature is implemented in Extension:PropertyTable2 --GB 11:43, 30 January 2008 (UTC)Reply

Feature requests

edit

Bugs

edit
edit

If I put a link that has an = sign anywhere in it as the right column entry, that entire row will be missing from the table. As soon as I remove the = sign, it works again.

Message key should be lowercase (fixed)

edit

For me it first did not work, but it does now, after I created "MediaWiki:PropertyTable tag" with "properties".--Patrick 18:38, 9 February 2007 (UTC)Reply

That's strange. I didn't have to create it and it was supposed to be created automatically. What version of MediaWiki are you using? --Fernando Correia 19:49, 9 February 2007 (UTC)Reply

1.9.0rc2.--Patrick 23:22, 9 February 2007 (UTC)Reply

I was thinking maybe it has something to do with languages. I think something is missing in my setup instructions or in the software, but I don't know the behavior of these message settings yet. I provided a message for "en". What is your wiki's default language? And your user's language preference? --Fernando Correia 01:00, 10 February 2007 (UTC)Reply

Both English. I think I found it: message keys should start with lowercase, i.e. "propertyTable_tag", because function "get" in MessageCache.php applies lcfirst to it.--Patrick 13:25, 10 February 2007 (UTC)Reply

Thanks a lot! I will fix it. --Fernando Correia 18:53, 10 February 2007 (UTC)Reply
Version 1.0.1 should fix it. Thanks for the feedback. --Fernando Correia 11:16, 12 February 2007 (UTC)Reply

G'day, when I have zero ie "0" in a field the table row does not appear so <properties> sda=1 sdb=2 sdc=0 </properties>

would not generate the sdc=0 row. I used .0 to make it appear

Contributors

edit

Source code contributors:

Version history

edit

1.0.0

edit

Release date: 2007-02-09

  • Initial release.

1.0.1

edit

Release date: 2007-02-12

  • BUGFIX: message key should be lowercase.

1.0.2

edit

Release date: 2007-02-26

  • FEATURE: Polish translation by user with IP 83.31.211.157.

1.1.0

edit

Release date: 2007-06-26

  • FEATURE: Automatic numbering.

1.2.0

edit

Release date: 2007-07-25

  • FEATURE: Parser function.
  • FEATURE: Automatic increment using letters.
Return to "PropertyTable" page.