Talk:Use the ask template format to create tabular output

From Semantic MediaWiki Community Wiki
Jump to: navigation, search

Debugging tests[edit]

Version using 'in-line' table syntax[edit]

Simple syntax, but the 'further results ...' link is broken.

… further results
Organization Country City
Adelux France Asnières sur Seine
Ambler LLC USA Centerville
Aoxomoxoa UK Cobham
Architecture South Africa Cape Town
Artyvarius Portugal Lisboa

Version using "intro=" and "outro=" for table syntax[edit]

In theory, the "... further results" link SHOULD work for this example! (but it's still buggy).

… further results|}

Version using the new "introtemplate=" and "outrotemplate=" for table syntax[edit]

Sweet!


Organization Country City
Adelux France Asnières sur Seine
Ambler LLC USA Centerville
Aoxomoxoa UK Cobham
Architecture South Africa Cape Town
Artyvarius Portugal Lisboa
Organization Country City
Adelux France Asnières sur Seine
Ambler LLC USA Centerville
Aoxomoxoa UK Cobham
Architecture South Africa Cape Town
Artyvarius Portugal Lisboa
… further results

Text cut from Step 2[edit]

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'.

Concern[edit]

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)

Concern 2: Template Arguments[edit]

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)

See Enhancement Suggestion 22037[edit]

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.

An ISO Certification[edit]

ISO Certification Consultants, ISO Certification Consultants Dubai uae Abu Dhabi, ISO 9001, ISO 27001, ISO 20000, ISO 14001, OHSAS 18001,ISO 17025, HACCP, ISO 22000, ISO 50001, EnMS, ISO Training Services, Management System Certification, ISO Consultant Dubai, ISO Certification Services in Dubai, ISO Consultants in Abu Dhabi, ISO Consultants in UAE, ISO 9001 Certification in Dubai, ISO Certification in Abu Dhabi, ISO Training Dubai, ISO 9001 Consultants in UAE, ISO 50001 Consultants in UAE, ISO 27001 Consultants in UAE, ISO 20000 Consultants in Dubai, ISO 22301 Certification in Dubai, ISO Certification Consultants in UAE, ISO 17025 Consultants UAE

KAYZED Consultants: Assuring best of Quality Management System, Quality Assurance Services, and Food Safety Systems