Difference between revisions of "Talk:Resultsheaderwithcolumns"
From FollowTheScore
(reply) |
|||
| Line 1: | Line 1: | ||
Any reason why <tt>columns</tt> doesn't work right when used in a template? -—[[User:Eep²|Eep²]] 13:40, 2 February 2010 (UTC) | Any reason why <tt>columns</tt> doesn't work right when used in a template? -—[[User:Eep²|Eep²]] 13:40, 2 February 2010 (UTC) | ||
| − | Probably yes ;-) | + | :Probably yes ;-) The question might be: is it "bug or feature"? What problem are you exactly talking of? [[User:Gero|Gero]] 18:03, 2 February 2010 (UTC) |
| − | The question might be: is it "bug or feature"? What problem are you exactly talking of? [[User:Gero|Gero]] 18:03, 2 February 2010 (UTC) | + | |
| + | ::Well, you know how DPL can be called as a tag (<tt><nowiki><dpl>...</dpl></nowiki></tt>) or as a template (<tt><nowiki>{{#dpl:...}}</nowiki></tt>)? Well, using <tt>columns</tt> inside the DPL template causes the wiki table markup to show but fails to render as a table: | ||
| + | {{#dpl: | ||
| + | resultsheader = %PAGES% pages:\n | ||
| + | |category=African_Country | ||
| + | |columns=3 | ||
| + | }} | ||
| + | |||
| + | Which, for some reason, renders like this on my wiki:<pre><nowiki>{| | ||
| + | |||
| + | | | ||
| + | |||
| + | * Entry | ||
| + | * Entry | ||
| + | * Entry | ||
| + | |||
| + | |valign=top| | ||
| + | |||
| + | * Entry | ||
| + | * Entry | ||
| + | * Entry | ||
| + | |||
| + | |valign=top| | ||
| + | |||
| + | * Entry | ||
| + | * Entry | ||
| + | |||
| + | |valign=top| | ||
| + | |||
| + | |}</nowiki></pre> | ||
| + | But I haven't upgraded in a while so that might be the problem. -—[[User:Eep²|Eep²]] 03:37, 3 February 2010 (UTC) | ||
Revision as of 04:37, 3 February 2010
Any reason why columns doesn't work right when used in a template? -—Eep² 13:40, 2 February 2010 (UTC)
- Probably yes ;-) The question might be: is it "bug or feature"? What problem are you exactly talking of? Gero 18:03, 2 February 2010 (UTC)
- Well, you know how DPL can be called as a tag (<dpl>...</dpl>) or as a template ({{#dpl:...}})? Well, using columns inside the DPL template causes the wiki table markup to show but fails to render as a table:
7 pages:
{|
|
* Entry
* Entry
* Entry
|valign=top|
* Entry
* Entry
* Entry
|valign=top|
* Entry
* Entry
|valign=top|
|}
But I haven't upgraded in a while so that might be the problem. -—Eep² 03:37, 3 February 2010 (UTC)