Module talk:Tabular data: Difference between revisions

Content deleted Content added
No edit summary
Multiple fields: new section
Line 4:
 
:: hot dog! thanks for the link :) and the illustrative attempt here too, good practice to parse. <span style="color:#666">&ndash;&nbsp;[[User:Sj|SJ]][[User Talk:Sj|<span style="color:#f90;">&nbsp;+</span>]]</span> 00:26, 11 May 2020 (UTC)
 
== Multiple fields ==
 
{{ping|Mxn}} what would be nice (and significantly help performance in some cases) is the ability to get multiple fields. Like how [[Module:Covid19Data]] is called on [[User:EProdromou (WMF)/COVID-19 case data]] as <nowiki>{{#invoke:Covid19Data|regionTable|CA|QC|<tr><td> %s</td><td> %s</td><td> %s</td><td> %s</td></tr>}}.
 
For example:
{{#invoke:Tabular data|lookup
|search_column=model
|search_value=XYZ
|output_column=brand,year
|format=<li> The XYZ was made by [[%s]] and released in [[%s]].
|Example.tab}}</nowiki>
 
Not sure how difficult this would be. - [[User talk:Alexis Jazz|Alexis Jazz]] 06:11, 19 May 2020 (UTC)