Jump to content

User talk:A Chinese ID

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Welcome

[edit]

Hello, A Chinese user, and Welcome to Wikipedia!

Thank you for your contributions to this free encyclopedia. If you decide that you need help, check out Getting Help below, ask at the help desk, or place {{Help me}} on your talk page and ask your question there. Please remember to sign your name on talk pages by clicking or by typing four tildes (~~~~); this will automatically produce your username and the date. Also, please do your best to always fill in the edit summary field. Below are some useful links to help you get started. Happy editing! Steven (Editor) (talk) 01:21, 25 January 2021 (UTC)[reply]

Getting started
Finding your way around
Editing articles
Getting help
How you can help

Baoji–Chengdu railway

[edit]

In your edit of 11:19, 23 November 2024 (UTC) of Baoji–Chengdu railway, you introduced | native_name = {{Infobox Chinese}} within {{Infobox railway}}. The result looks good, but unfortunately it leaves a missing end tag and stripped tag for <span>...</span>. If that doesn't mean anything to you, please see WP:Linter. It may seem OK, but even "low priority" lint errors can cause unforeseen problems and it's best to eliminate them. I tried to fix it in several ways, none of which are satisfactory. First, Template:Infobox Chinese offers suggestions on how to get it to work. Under §Optional flags it says to use |child=yes to use this template inside another infobox. That didn't fix the missing end tag and stripped tag. In §Usage inside other infoboxes, it says to use this infobox with the outer infobox's |data= parameter. That won't work because {{Infobox railway}} doesn't have a |data= parameter. I tried it with |module=, with and without |child=yes. This didn't cause errors, but also didn't display anything. So I went to Special:WhatLinksHere/Template:Infobox Chinese to see how other pages do it. There are over 20,000 pages that use this template, and I checked a few, including Taiwan High Speed Rail and Kuala Lumpur International Airport, and both of those put {{Infobox Chinese}} just below the main infobox rather than embedding it. That would work here, but you want the native name to display near the top of the infobox, not completely below it. John Woo embeds {{Infobox Chinese}} using module=, but that doesn't display within {{Infobox railway}}. Perhaps Jonesey95 has some ideas. I can't figure it out. —Anomalocaris (talk) 20:07, 29 November 2024 (UTC)[reply]

Anomalocaris, you almost had it. The parameter for embedding a child template here was |embedded=. I have added |module= as an alias, and it works well. – Jonesey95 (talk) 20:18, 29 November 2024 (UTC)[reply]
Jonesey95: OK, editing Template:Infobox rail line to accept |module= as a alias of |embedded= solves the problem in the way I expected ... I wonder how many other infoboxes need to be modified to accept |module= as a alias of |embedded=. Anyway, A Chinese ID, thank you for bringing in {{Infobox Chinese}} to Baoji–Chengdu railway's infobox. The problem is fixed, and we hope you will continue to make useful contributions to Wikipedia! —Anomalocaris (talk) 20:28, 29 November 2024 (UTC)[reply]
Anomalocaris and Jonesey95, thanks for your instant fixes. So is it OK to use |child= or |embedded= for child template in the infobox later on? --🀄︎ U·T·C 03:14, 30 November 2024 (UTC)[reply]