Template:Jct is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
This is the talk page for discussing Jct and anything related to its purposes and tasks. |
|
This template does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||
|
To-do list for Template:Jct:
|
This page has archives. Sections older than 90 days may be automatically archived by Lowercase sigmabot III when more than 1 section is present. |
lang-?? templates
edit{{jct|country=ISR|Route|232}}
→ [[File:ISR-HW-232.svg|x24px|link=|alt=]] [[Route 232 (Israel)|Route 232]]
→ Route 232
The {{lang-??}}
templates are going away. It is not clear to me where this template uses {{lang-??}}
templates but it is clear that some of them do. Apparently this is invocation specific. Try this experiment:
- edit Template:Jct § Examples
- click Show preview
- open the 'Templates used in this preview' dropdown
- notice that there are no
{{lang-??}}
templates listed nor is Module:Lang and its submodules.
Compare that result with the result you get when you:
- edit Template talk:Jct § lang-?? templates
- click Show preview
- open the 'Templates used in this preview' dropdown
- notice that both of
{{lang-ar}}
and{{lang-he}}
templates along with Module:Lang and its submodules.
It is not obvious to me why those two templates are transcluded because there is no Arabic or Hebrew text in the template call and none in its output as you can see above. So why transclude these templates?
Where ever the fix needs to be made, the fix may be as simple as changing {{lang-ar|...}}
and {{lang-ar|...}}
to {{langx|ar|...}}
and {{langx|he|...}}
.
I noticed this because Monkbot/task 20 keeps a log of pages that it skips. So far, after processing 80k-ish pages, only the Israeli highways seem to transclude {{lang-??}}
templates. Of course there may be more; at this writing there are ~470,000 pages listed in Category:Pages using Lang-xx templates.
—Trappist the monk (talk) 14:31, 25 October 2024 (UTC)
- I've updated Module:Road data/strings/ISR. -- WOSlinker (talk) 15:35, 25 October 2024 (UTC)
- Thanks. Are you sure that this part of line 27 is correct?
frame:expandTemplate{ title = 'langx', args = {"he","طريق السريع 3"}}
- Shouldn't the language tag be
ar
? - —Trappist the monk (talk) 16:29, 25 October 2024 (UTC)
- I undid your similar edit at Module:Road_data/strings/SRB because
{{lang-sr-Latn}}
and{{lang-sr-Cyrl}}
use|label=
with custom values.{{langx}}
does not know about custom labels so rejects thesr-Latn
andsr-Cyrl
language tags. Those uses in ~/strings/SRB might be rewritten to specify the script in a separate parameter. For example, line 23 (and other similar lines) might be rewritten like this:SRB.E.translation = frame:expandTemplate{ title = 'langx', args = {'sr', ['script'] = 'Latn', "Evropski put E%route%"}} .. "<br>" .. frame:expandTemplate{ title = 'langx', args = {'sr', ['script'] = 'Cyrl', "Европски пут Е%route%"}}
- The above is not tested but should produce substrings that look like these:
{{langx|sr|script=Latn|Evropski put E%route%}}
[Evropski put E%route%] <span style="color:#d33">Error: {{Langx}}: invalid parameter: |script= ([[:Category:Lang and lang-xx template errors|help]])</span>
→ [Evropski put E%route%] Error: {{Langx}}: invalid parameter: |script= (help){{langx|sr|script=Cyrl|Европски пут Е%route%}}
[Европски пут Е%route%] <span style="color:#d33">Error: {{Langx}}: invalid parameter: |script= ([[:Category:Lang and lang-xx template errors|help]])</span>
→ [Европски пут Е%route%] Error: {{Langx}}: invalid parameter: |script= (help)
- —Trappist the monk (talk) 17:09, 25 October 2024 (UTC)
- I've fixed the mistake I made on line 27. -- WOSlinker (talk) 18:23, 25 October 2024 (UTC)
- Thanks. Are you sure that this part of line 27 is correct?