Template talk:Infobox swimming pool
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | |||||||||||||||
|
This template was considered for deletion on 1 October 2013. The result of the discussion was "no consensus". |
Creation
editThis template has been created as part of a collaboration on Category:Lidos, your suggestions for corrections or improvements are welcome.—Speedoguy (talk) 09:53, 16 November 2009 (UTC)
Comments - Did you use the Template:Infobox meta-template?
editJust wondering why the text is so large? Did you use the Template:Infobox meta-template to create this infobox? It will ensure standard layout and styling across infoboxes on WP - i.e. standard text size, left-aligned labels and data etc. Yboy83 (talk) 10:34, 16 November 2009 (UTC)
- Thanks for the tip, I was basing the style on {{Infobox Sports Centre}}, but I'll re-work it and adopt the meta-template classes as the text size is a poor layout for the article.—Speedoguy (talk) 11:04, 16 November 2009 (UTC)
- Reworked, the style is now similar to {{Infobox_artist}} and consequently takes up rather less space on the page.—Speedoguy (talk) 11:41, 16 November 2009 (UTC)
Problems with blank fields
editNot a show stopper but a niggle -- I've had difficulty with the script properly handling blank fields. Where a parameter is declared (such as image_width=) but with no data, the entire line needs to be deleted before the parameter is treated as undefined. I guess this is because it is treated as an empty string rather than a null value. Anyone want to tip me how to get an #if statement to handle this more neatly?—Speedoguy (talk) 13:21, 17 November 2009 (UTC)
- Got a work-around by using {{str len}}, so to check pool_name and use the article name if unset or the parameter is not entered:
{{#ifexpr:{{str len|{{{pool_name|x}}} }}>2|{{{pool_name}}}|{{PAGENAME}} }}
. If someone has a less clumsy solution I'd be glad to know about it.—Speedoguy (talk) 13:46, 17 November 2009 (UTC)
- You could try {{#if:{{{pool_name|}}}|X|Y}} where X is done if pool_name is set to something and Y if not set. You can leave out Y if there is no action when the value is not present. Keith D (talk) 20:21, 23 November 2009 (UTC)
- Thanks, a much neater solution.—Speedoguy (talk) 08:24, 24 November 2009 (UTC)
Delete
editThis template should get deleted, it is nonsense. --5.43.74.120 (talk) 11:44, 24 January 2022 (UTC)
Same as templates for infoboxes for airport, factory, hospital, observatory, restaurant, school, shopping mall, station; artwork, fishery, pier, pipeline, power transmission line (probably), roller coaster (probably), room, transmitter, tunnel, water ride should be deleted. --5.43.74.120 (talk) 11:56, 24 January 2022 (UTC)