Template talk:Infobox rail line: Difference between revisions

From Wikipedia, the free encyclopedia

Content deleted Content added


 

Line 56: Line 56:

== Suggested edit ==

== Suggested edit ==

I would like to add a <code>signaling</code> parameter to complement the <code>signalling</code> parameter to differentiate between British English and American English spellings. –[[User:Dream out loud|<span style=”font-variant: small-caps”>Dream&nbsp;out&nbsp;loud</span>]]&nbsp;<small>([[User talk:Dream out loud|talk]])</small> 20:56, 11 December 2025 (UTC)

I would like to add a <code>signaling</code> parameter to complement the <code>signalling</code> parameter to differentiate between British English and American English spellings. –[[User:Dream out loud|<span style=”font-variant: small-caps”>Dream&nbsp;out&nbsp;loud</span>]]&nbsp;<small>([[User talk:Dream out loud|talk]])</small> 20:56, 11 December 2025 (UTC)

:{{done}}. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 16:00, 12 December 2025 (UTC)


Latest revision as of 16:00, 12 December 2025

I dont know how to code it but someone please add cost in the template under the owner section and auto turn whatever amount into dollars. Thanks :] Faisalisonline2 (talk) 07:44, 6 June 2025 (UTC)[reply]

There are approximately 800 pages that don’t have short descriptions but use the rail line infobox. Short descriptions could be generated from the infobox (documentation). One option is “Rail line in {{locale}}”. Brigandeur (talk) 19:46, 12 June 2025 (UTC)[reply]

I looked at {{Infobox political party}} as an example and it tests the value of {{Has short description}} to prevent overriding a local value. That seems reasonable. There’s no guarantee that locale is set, though it should be, so “Rail line in {{locale}}”, with “Rail line” as a fallback, would work. Mackensen (talk) 20:16, 12 June 2025 (UTC)[reply]

According to the above documentation, specifying |2=noreplace in the Infobox’s short description allows a short description specified in the article to take precedence. Brigandeur (talk) 20:34, 12 June 2025 (UTC)[reply]

Description of suggested change:
Generate short description from this Infobox. I added the following checks:

  1. There is no short description already in the article.
  2. The article is in the main namespace.
  3. The Infobox is in the lead.

I used the snazzy Type in location module which cleans up the locale parameter before using it, and falls back to “Rail line” if locale is empty or missing.

Testing is not straightforward, so before adding the namespace check, I copied a couple of pages to my user namespace and used the sandbox version there.

Diff:
See my changes in Template:Infobox_rail_line/sandbox

Brigandeur (talk) 00:58, 16 June 2025 (UTC)[reply]

@Brigandeur:  Done. Est. 2021 (talk · contribs) 09:42, 18 June 2025 (UTC)[reply]

Change label31 = Commenced to label31 = Work begun. This would be less ambiguous, as its not clear to readers what exactly “Commenced” means. It could be interpreted to mean when the line opened. This change would put this infobox in line with Template:Infobox tunnel, which uses “Work begun”. Steelkamp (talk) 01:32, 14 August 2025 (UTC)[reply]

 Not done for now: please establish a consensus for this alteration before using the {{Edit template-protected}} template. – Jonesey95 (talk) 13:19, 14 August 2025 (UTC)[reply]

I would like to add a signaling parameter to complement the signalling parameter to differentiate between British English and American English spellings. –Dream out loud (talk) 20:56, 11 December 2025 (UTC)[reply]

 Done. – Jonesey95 (talk) 16:00, 12 December 2025 (UTC)[reply]

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top