Jump to content

Topic on Help talk:Extension:Linter

Deryck Chan (talkcontribs)

I've been trying to fix w:yue:Template:選舉資訊 but found that I couldn't delete the nested table tags without breaking the formatting specifications. Any suggestions on how to fix this template? It has hundreds of transclusions and make up a significant proportion of the errors on yue.wp.

SSastry (WMF) (talkcontribs)

Try deleting this line:

{| class="infobox_v2 {{#if:{{{選舉日期|}}}|vevent}}" style="width:22em; font-size:90%; width:{{#expr:{{{代表圖片尺寸|45}}}*{{#if:{{{候選人3|}}}{{{政治聯繫3|}}}|4|3}}}}px;"

I don't think that applies to the pages anyway. Or, have you tried it and find that it breaks something?

Deryck Chan (talkcontribs)

I haven't tried deleting the whole line because I was trying to preserve some of the CSS options on that line, not knowing they would've been ignored by MediaWiki anyway! (I didn't create the template.)

I tried your proposed change and checked a few pages. It seems to be okay. If it breaks anything I'll come back to let you know.