Module talk:Tabular data: Difference between revisions

Content deleted Content added
Line 22:
:{{ping|Alexis Jazz}} Thanks for the idea! It would certainly be feasible, but if efficiency or tidiness is the primary consideration, then I think it would be even better to refine {{ml|Tabular data|wikitable}} or {{tl|Json2table}} to allow for the desired format on each row or create a separate function that outputs the whole table in list form. Or were you thinking of a use case where each row would come from a different Commons data table? &ndash;&nbsp;[[User:Mxn|Minh <span style="font-variant: small-caps;">Nguyễn</span>]]&nbsp;<sup>[[User talk:Mxn|<span style="display: inline-block;">&#x1f4ac;</span>]]</sup> 10:19, 20 May 2020 (UTC)
::{{ping|Mxn}} I was actually thinking of a case where two (or more) fields from the same row are needed. A template like [https://en.wiktionary.beta.wmflabs.org/wiki/Template:Leesonderzoek this one] has to do two lookups for the same row, only to return a different field each time. This increases the page preview/rendering time and load on the Wikimedia servers. - [[User talk:Alexis Jazz|Alexis Jazz]] 03:11, 21 May 2020 (UTC)
 
:::{{ping|Alexis Jazz}} {{done}}, although I'd expect that large or complex tables or lists would be better served by a custom Lua function that interacts with the tabular data directly, since that also affords more control over formatting and allows lookups to be reused. &ndash;&nbsp;[[User:Mxn|Minh <span style="font-variant: small-caps;">Nguyễn</span>]]&nbsp;<sup>[[User talk:Mxn|<span style="display: inline-block;">&#x1f4ac;</span>]]</sup> 05:14, 21 May 2020 (UTC)