[Mediawiki-l] Align tables

Martin S shieldfire at gmail.com
Sat Aug 16 07:22:41 UTC 2008


I am trying to align a table with variable lengths of #ask output.

{|
!'''Articles'''
!'''Recipes'''
|-
|width="300" valign="top"|
{{#ask:[[Category:Long article]] [[ArticleRelatedCategory::Snow cream]]
|Default=No articles found so far
|format=broadtable
}}
||
{{#ask:[[Category:Recipe]] [[RecipeCategorySub::Snow Cream]]
|?RecipeDate=Known since
|?RecipeSource=Published in/by
|format=broadtable
}}
|}

The first column get much fewer results than the second. Turning the columns
around (so that articles is the second one) is more logical but then
valign="top" doesn't produce aligned columns. Is there a way of aligning the
second column? Adding "valign="top"| " to the second column (after "||")
only produces the text valign="op" without doing any aligning.

-- 
Regards,

Martin S


More information about the MediaWiki-l mailing list