Difference between revisions of "Issue:Article Titles/content added as sub bullets"

From FollowTheScore
Jump to: navigation, search
(adding sub bullet problem when bringing in information from an imported heading contains a bulleted list)
 
 
(4 intermediate revisions by 2 users not shown)
Line 3: Line 3:
 
  |Extension  = DPL  
 
  |Extension  = DPL  
 
  |Version    = 1.7.4
 
  |Version    = 1.7.4
  |Description = When bringing information from a particular heading that contains a bulleted list, the next article in the DPL list may appear as a sub-bullet (it looks like content to the previous article).
+
  |Description = When bringing information from a heading that contains a bulleted list that is cut off by a character limit, the next article in the DPL list appears as a sub-bullet (it looks like content to the previous article) since the <ul> element is not closed
  |Status      = open
+
  |Status      = closed
 
}}
 
}}
  
 
== Problem ==
 
== Problem ==
Your text goes here ..
+
calling DPL like this:
  
 +
<nowiki>
 +
<dpl>
 +
ordermethod=firstedit
 +
order=descending
 +
category=test
 +
notnamespace=Template | Category
 +
nottitlematch=%_test
 +
noresultsheader = Sorry, no results yet
 +
includepage= #Description[500 ...more]
 +
addpagecounter=true
 +
</dpl>
 +
</nowiki>
  
 +
and get output like this sometimes:
 +
*[[Test_article1]] ‎(41 views)
 +
** some info
 +
** further info [[...more]]
 +
** [[Test_article2]] ‎(40 views)
  
 
== Reply ==
 
== Reply ==
 +
 +
I am afraid this is not easy to fix. Cutting wiki text at an arbitrary point is not a simple task because it may contain open tags which will spoil the resulting document when the cut text is pasted into a larger document (i.e. the DPL result). Therefore DPL tries a simple heuristic approach to find the last 'balanced tag' and cuts the wiki text at that point instead of at the exact character limit count. If the original wiki text contains complicated nested tag structures this approach may fail and lead to the effect you describe.
 +
 +
If you upload an example document to this wiki which demonstrates the effect I may be able to imptove the heuristic a little. If you can improve the heuristic yourself I will adopt the change to the next DPL version.
 +
 +
[[User:Gero|Gero]] 07:07, 22 April 2009 (UTC)

Latest revision as of 11:56, 3 July 2009

Description: When bringing information from a heading that contains a bulleted list that is cut off by a character limit, the next article in the DPL list appears as a sub-bullet (it looks like content to the previous article) since the
    element is not closed
Extension / Version: DPL   /   1.7.4
Type / Status: Bug   /   closed

Problem

calling DPL like this:

<dpl> ordermethod=firstedit order=descending category=test notnamespace=Template | Category nottitlematch=%_test noresultsheader = Sorry, no results yet includepage= #Description[500 ...more] addpagecounter=true </dpl>

and get output like this sometimes:

Reply

I am afraid this is not easy to fix. Cutting wiki text at an arbitrary point is not a simple task because it may contain open tags which will spoil the resulting document when the cut text is pasted into a larger document (i.e. the DPL result). Therefore DPL tries a simple heuristic approach to find the last 'balanced tag' and cuts the wiki text at that point instead of at the exact character limit count. If the original wiki text contains complicated nested tag structures this approach may fail and lead to the effect you describe.

If you upload an example document to this wiki which demonstrates the effect I may be able to imptove the heuristic a little. If you can improve the heuristic yourself I will adopt the change to the next DPL version.

Gero 07:07, 22 April 2009 (UTC)