Difference between revisions of "Issue:Headingmode definition buggy output"

From FollowTheScore
Jump to: navigation, search
 
(6 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
  |Version    = 1.5.0
 
  |Version    = 1.5.0
 
  |Description = Headingmode definition buggy output. The html is wrong for the output, some tags are transformed in html special chars.  
 
  |Description = Headingmode definition buggy output. The html is wrong for the output, some tags are transformed in html special chars.  
  |Status      = open
+
  |Status      = answered
 
}}
 
}}
  
Line 26: Line 26:
 
</DPL>
 
</DPL>
  
Slightly formatted this seems to be perfectly correct:
+
To me this seems to be syntactically correct. Experimenting a little showed the following:
  
<DL>
+
<pre><nowiki><DL><DT>a term</DT><DD>its definition</DD></DL></nowiki></pre>
<DT>[[:Category:African_Union_member_states|African Union member states]]</DT>
+
produces:
<DD><UL><LI>[[Cameroon|Cameroon]]</LI><LI>[[Nigeria|Nigeria]]</LI><LI>[[Somalia|Somalia]]</LI><LI>[[Sudan|Sudan]]</LI></UL></DD>
 
  
<DT>[[:Category:Arab_League|Arab League]]</DT>
+
<DL><DT>a term</DT><DD>its definition</DD></DL>
<DD><UL><LI>[[Somalia|Somalia]]</LI><LI>[[Sudan|Sudan]]</LI></UL></DD>
+
 
</DL>
+
whereas
 +
 
 +
<pre><nowiki><DL><DT>a term<DD>its definition</DL></nowiki></pre>
 +
produces:
 +
 
 +
<DL><DT>a term<DD>its definition</DL>
 +
 
 +
So it seems that I would have to produce syntactically incorrect html code to get it through the wiki parser. Very strange. Would you like to bring that up for mediawiki developers?
 +
 
 +
As an alternative I could generate wiki syntax
 +
<pre><nowiki>;[[:Nigunda]]:its definition</nowiki></pre>
 +
This should also work:
 +
 
 +
;[[:Nigunda]]:its definition
 +
 
 +
You could easily change this in your DPL code (lines 3019..3024) but it would prevent you from using <tt>hlistattr</tt>. Is that relevant for <tt>headingmode=definition</tt>? If not I could make the changes and publish ..
 +
 
 +
Please look at line 2988. DOes it make sense to add DD and DL here ?
 +
 
 +
BTW: Would you like to rejoin the develoment team (which is, sad to say, only me alone at the moment ...) ?
 +
 
 +
:[[User:Gero|Gero]] 19:17, 23 October 2007 (CEST)
 +
 
 +
----
 +
Maybe you want to try "$wgUseTidy = true;". It might help ... [[User:Gero|Gero]] 17:54, 24 November 2007 (CET)

Latest revision as of 18:54, 24 November 2007

Description: Headingmode definition buggy output. The html is wrong for the output, some tags are transformed in html special chars.
Extension / Version: DPL   /   1.5.0
Type / Status: Bug   /   answered

Problem

To reproduce:

<DPL>
category=African Union member states
ordermethod=category,title
headingmode=definition
</DPL>

Reply

Thanks for bringing this up. Adding "debug=5" shows the html code:

{{Extension DPL}}<DL><DT>[[:Category:African_Union_member_states|African Union member states]]</DT><DD><UL><LI>[[Cameroon|Cameroon]]</LI><LI>[[Nigeria|Nigeria]]</LI><LI>[[Somalia|Somalia]]</LI><LI>[[Sudan|Sudan]]</LI></UL></DD></DL>

To me this seems to be syntactically correct. Experimenting a little showed the following:

<DL><DT>a term</DT><DD>its definition</DD></DL>

produces:

a term
its definition

whereas

<DL><DT>a term<DD>its definition</DL>

produces:

a term
its definition

So it seems that I would have to produce syntactically incorrect html code to get it through the wiki parser. Very strange. Would you like to bring that up for mediawiki developers?

As an alternative I could generate wiki syntax

;[[:Nigunda]]:its definition

This should also work:

Nigunda
its definition

You could easily change this in your DPL code (lines 3019..3024) but it would prevent you from using hlistattr. Is that relevant for headingmode=definition? If not I could make the changes and publish ..

Please look at line 2988. DOes it make sense to add DD and DL here ?

BTW: Would you like to rejoin the develoment team (which is, sad to say, only me alone at the moment ...) ?
Gero 19:17, 23 October 2007 (CEST)

Maybe you want to try "$wgUseTidy = true;". It might help ... Gero 17:54, 24 November 2007 (CET)