Issue:Including chapter content brings unwated 'ENTERS'
Description: | Including chapter contents with mode=userformat does not allow full control of the table output because chapters contain 'ENTER' characters at the beginning and at the end. |
Extension / Version: | DPL / Most Recent |
Type / Status: | Bug / open |
Problem
Hi,
First thank you for this great extension with all the debugging feature it helped me understood how to personalise it and it's starting to find some very useful applications on my wiki (emuwiki.com). I appreciate the mode=userformat mode which basically enable to do anything.
But...
When we include chapter content, we don't want the ¶ characters located in the chapter content to come and break our table structure. For example, I want to reproduce this piece of code :
{| class="collapsible autocollapse" border="0" style="background:black; color:white" cellspacing="0" border-collapse="collapse" bordercolor="black" |- style="background:black; color:white" !width="425"|{{{Name}}} !width="500"|{{{Description}}} |- align="center" | {{{VService}}} || {{{ExtendedDescription}}} |}
this was the old way that I did things, I now want to replace all the templates variables by chapter contents from independant pages (for integration with inputbox and other reasons...)
problem is, chapter contents in mediawiki always contain a (not visible but present) ¶ at the beginning and at the end of chapter. So even if I remove all the ¶ I can in the listseparators and secseparators values, the best code I can reproduce is :
{| class="collapsible autocollapse" border="0" style="background:black; color:white" cellspacing="0" border-collapse="collapse" bordercolor="black" |- style="background:black; color:white" !width="425"| Name !width="500"| Description |- align="center" | Vservice || ExtendedDescription |}
That doesn't seem to be a big problem, if I knew anything about php I would go into the file but I really don't know anything. It would be nice to have an argument noenterchapter=true that would simply remove the 'ENTER' character at the beginning and at the end of the content when using #include.
Thanks a lot!
Here is the code I use to bring the table in mediawiki :
<DPL> category =Video mode =userformat includepage =#Title,#Short Description,#Video,#Long Description listseparators =,,, secseparators ={| class="collapsible autocollapse" border="0" style="background:black; color:white" cellspacing="0" border-collapse="collapse" bordercolor="black"¶|- style="background:black; color:white"¶!width="425"|,,¶!width="500"|,¶|- align="center"¶,| , ,||,¶|}¶ debug=5 </DPL>