[edit] Debugging tests
[edit] Version using 'in-line' table syntax
Simple syntax, but the 'further results ...' link is broken.
[edit] Version using "intro=" and "outro=" for table syntax
In theory, the "... further results" link SHOULD work for this example! (but it's still buggy).
| Organization |
Country |
City
|
| Adelux |
France |
Asnières sur Seine
|
| Ambler LLC |
USA |
Centerville
|
| Artyvarius |
Portugal |
Lisboa
|
| Bendigo Orienteers Inc |
Australia |
Bendigo
|
| Computational Cognitive Neuroscience Lab |
USA |
Boulder
|
… further results|}
[edit] Version using the new "introtemplate=" and "outrotemplate=" for table syntax
Sweet!
… further results
[edit] Text cut from Step 2
I just don't like to throw anything away:
- Suppose that we want to add links from the above table to the appropriate page in Wikipedia for the country and city of the given organization? There is currently no way to do this with the standard 'format=table' output. To achieve this we need to use 'format=template'.
[edit] Concern
This looks great on the page you put it on, but it has issues when you click on "Further Results..."; since it doesn't pass the table brackets you lose the table formatting and just get the internal row format bits. Is there any way to adjust that behavior at present? - 76.87.73.77 01:28, October 17, 2009 (UTC)
- No. Currently that is a bug in SMW (see above for an attempted workaround). (See the Appendix section of the page). I should find a link to the bug report... --Dan Bolser 16:13, November 19, 2009 (UTC)
- Update, this is now fixed! See the third 'Version' above. --Dan Bolser 13:03, August 17, 2010 (EDT)
[edit] Concern 2: Template Arguments
I have some intro templates that take arguments, so they end up looking like
|intro={{displayQueryTableHeader |titleHeader=Ballparks |dataHeader=State |sort=off }}
in my inline query.
I've had to limit tables lately and saw the problem, which is what brought me here. introtemplate / outrotemplate work great, but it looks I'll need discrete intro templates for every table variation I use.
I tried the obvious in SMW_QP_List.php, namely
- $result .= "{{" . $this->mIntroTemplate . "}}";
+ $result .= $this->mIntroTemplate;
and that almost works, except that my table headers in further results look
like
Project UNIQ4c0b9a8d5d40c6a0-nowiki-00000002-QINU DateUNIQ4c0b9a8d5d40c6a0-
nowiki-00000003-QINU BallparkUNIQ4c0b9a8d5d40c6a0-nowiki-00000004-QINU
instead of
Project Date Ballpark
I'll keep looking for ways around this, but if it's obvious to someone here
please let us know.
Thanks for reading.
--Salquint 02:30, September 22, 2012 (UTC)
[edit] See Enhancement Suggestion 22037
https://bugzilla.wikimedia.org/show_bug.cgi?id=22037 and https://bugzilla.wikimedia.org/show_bug.cgi?id=18911
This is fixed by this enhancement and allows complete customization of tables (formatting wise). I'm awaiting approval for commit.