|
[Semediawiki-user] inline query with userdefined table
From: Stephan Robotta <robotta@on...> - 2010-03-02 09:51
|
Hi all,
If the user wants to have a different look of the table to display the
results of an inline query how is the best way to do this?
I assume that in any case I need a template that builds the table rows
for each result row. The template looks something like:
|-
|{{{1}}}
|{{{2}}}
|{{{3}}}
|XYZ
|-
At the wiki page I have two possibilities to define table header and
footer.
1. Suround the inline query with the appropriate wiki text:
{| border="1"
!Item
!Firstname
!Surname
!col 4
{{#ask:[[Category:Person]]|?Firstname|?Lastname|format=template|template=fancyTable}}
|}
2. Use the parameter intro and outro:
{{#ask:[[Category:Person]]|?Firstname|?Lastname|format=template|template=fancyTable|
intro={| border="2"
!Item
!Firstname
!Surname
!col 4
|outro=|}
}}
The latter version seems to ignore my border attribute. Do you have
other ideas how to achieve this? Is there any problem with one of the
approaches?
Thank you.
Best regards,
Stephan
|
| Thread | Author | Date |
|---|---|---|
| [Semediawiki-user] inline query with userdefined table | Stephan Robotta <robotta@on...> |