Jump to content

Topic on Extension talk:Scribunto

HTML tags displayed for some Wikipedia Infoboxes

3
2001:4998:EFFD:508:F18E:7BCF:AB56:F7ED (talkcontribs)

I'm trying to set up MediaWiki 1.28 loaded with one of January dumps from Wikipedia.

Some Infoboxes are displaying as I would expect, just like on Wikipedia, but some are cusing HTML tags to appear before the article content.

As an example for the Samacá article the Infoxbox looks more or less correct but there is '

' before the article text. As best I can determine by comparing with the same Wikipedia page's HTML these tags are either missing or rendered in the wrong place within the Infobox HTML.

I don't appear to have an Lua errors in $wgScribuntoEngineConf['luastandalone']['errorFile'] is there anywhere else I should look or anything else I can do debug this?

Thanks!

Mr. Stradivarius (talkcontribs)

It looks like en:Template:Infobox settlement is just producing braindead output on en:Samacá. When I use en:Special:ExpandTemplates to find the wikitext that the template produces on that article, I get the following (indented for clarity):

<table class="infobox geography vcard" style="width:22em;width:23em">
    <tr>
        <th colspan="2" style="text-align:center;font-size:125%;font-weight:bold;font-size:1.25em; white-space:nowrap"><span class="fn org">Samacá</span>
    <tr>
        <td colspan="2" style="text-align:center;background-color:#cddeff; font-weight:bold;">
            <span class="category">[[Municipalities of Colombia|Municipality]] and town</span>
        </td>
    </tr>
    </th></tr>
    -- snip --
</table>

So this is problem in the template, not a problem on your end. If I remember rightly, the English Wikipedia is still using HTML Tidy to sanitise bad HTML in wikitext like this, which may explain the discrepancy between the HTML generated on Wikipedia and the HTML generated from your MediaWiki installation.

There is a plan to stop using HTML Tidy in the near future, which will mean templates like this one will break and give the volunteer template coders a good incentive to actually fix them. In the meantime you can leave a message (or an edit request) on the talk pages of any templates that need to be fixed.

2001:4998:EFFD:508:F18E:7BCF:AB56:F7ED (talkcontribs)

Looks like my problem, thank you!

Reply to "HTML tags displayed for some Wikipedia Infoboxes"