Module talk:European and national party data/Archive 1: Difference between revisions

Content deleted Content added
Line 335:
:::::::::Yeah, that's a good point. Any recommendation for an entirely empty line? [[User:Julius Schwarz|Julius Schwarz]] ([[User talk:Julius Schwarz|talk]]) 16:44, 6 April 2025 (UTC)
:::::::::I would like to avoid that crashing all the pages where the module is used.. [[User:Julius Schwarz|Julius Schwarz]] ([[User talk:Julius Schwarz|talk]]) 16:44, 6 April 2025 (UTC)
::::::::::You could add a <code>null_row</code> export and then as part of <code>build_tab_data()</code>, test each row for all-nil values. If any whole row is nil, set <code>null_row</code> to some value – boolean <code>true</code>, the row number, an error message, etc. Then, in [[Module:EUPP seats]], look at <code>cfg.null_row</code>. If set do something about it.
::::::::::
::::::::::This idea not tested.
::::::::::—[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 18:00, 6 April 2025 (UTC)