Issue:Table Error while using include and first letter is an "-"

From FollowTheScore
Jump to: navigation, search
Description: There are new lines
Extension / Version: DPL   /   1.6.4
Type / Status: Bug   /   resolved

Problem

I'm using the following code to get a table with some information stored in pages with an template:

<DPL>
  category=Clan
  notnamespace=Kategorie
  notnamespace=MOHAA_Wiki
  includepage={Clan}:Clantag:Mitgliederzahl:Suchen_Member:Gründung:Homepage
  addpagecounter=true
  format=¶{|{{prettytable}} class=sortable width=100% ¶!Clan¶!Clantag ¶!Mitglieder ¶!Suchen Member ¶!Gründung ¶!Homepage ,¶|-¶|[[%PAGE%]] (%COUNT%),,¶|}
  secseparators=¶|
</DPL>

In many cases, the field Clantag (in my template) begins with an "-". In this case, the rendered table will begin a new row instead of showing the correct Clantag beginning with an "-".


Reply

You could use the tablerow command and put a nonbreaking space before the %% at the critical field.

Gero 20:53, 16 January 2008 (CET)
Hi Gero, thanks for your answer, works fine. I'm using now the table and tablerow syntax and put a nowiki-tag around the critical field. --Beatz 11:54, 18 January 2008 (CET)