format=array within an table template

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

format=array within an table template

Ralf Hagenbuck-2
I have a query (A) with formt=template template=RP_Objekt and within the RP_Objekt template another query (B) with format =array. I hoped to build a table output, where some date come from a different entity within the wiki.

Query A is embeddet within a table and looks like that


{|
!colspan="3"|Daten der Rechnungsposition
!colspan="1"|Daten des Rechnungsobjektes
!colspan="6"|Daten des AKS-Objektes
|-
!1 Rechnungsposition
!2 Haushaltsstelle
!3 gehört zu AKS
!4 Geschäftspartner
!5 Klartext
!6 Datum Beginn der Abschreibung
!7 Dauer der Abschreibung
!8 Anschaffungs- /Herstellungskosten (Brutto)
!9 VgstNr gewählt
!10 Erläuterungen Anlagenbuchhaltung
|-
{{#ask: [[Ist Rechnungsposition::wahr]]
|?Haushaltsstelle UstNr
|?Gehört zu AKS#
|?RPID#
|format=template
|template=RP_Objekte
|limit=2000
|link=none
|mainlabel=RP
|intro='''<big>Liste der Beschaffungsvorgänge (Haushaltsstellen mit AKS-Objektdaten)</big>'''
}}
|}


Query B build the row of the table like:


{{!}} [[{{{1|}}}]]
{{!}} {{{2|}}}
{{!}} [[{{{3|}}}]]
{{!}}{{#show:{{{4|}}}|?Geschäftspartner}}
{{!}}
{{#ask:[[{{{3|}}}]]
|?Klartext
|?Datum Beginn der Abschreibung
|?Dauer der Abschreibung
|?Anschaffungs- /Herstellungskosten (Brutto)
|?VgstNr gewählt
|?Erläuterungen Anlagenbuchhaltung
|format=array
|pagetitle=hide
|headers=hide
|propsep=<br>{{!}} %nbsp;
}}
{{!}}-


At least this gives back all the data I like but it does not format a table from within the 5th column and on. Instead it simply includes the data as pure text in cell 5of each line like that:


Durchflussmengenmessung

| 1 Mai 2016

| 10

| 4.879,6 €

| 4.22 01

|


I found format=array much more elegent than incuding several {{#show:{{{3|}}}|? ThisOrThatThing}} into the template, (wich works like in line 4, but it feels much slower).


Is it possible to complete a table like that?
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Semediawiki-user mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/semediawiki-user
Loading...