![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
I noticed at {{ Kanpur–Phaphund–Tundla section}} that the font size for {{ BSsplit}} renders text at 77% of the default, which is too small for accessibility, per MOS:FONTSIZE. Normally, I would go through the code and adjust the code that makes that text too small, but the module code for this template stacks font size reductions in a way that I was unable to parse. It appears that the stacking is 95% times 85% times 95%, but I could definitely be wrong, and I don't know the best place to fix the problem so that the rest of the template's text remains at the desired sizes. The minimum allowable font size reduction is to 85%. Is anyone here willing to take on this adjustment? Thanks. – Jonesey95 ( talk) 15:23, 16 June 2020 (UTC)
{{
BSsplit}}
is somehow "better" than accessibility considerations. --
Redrose64 🌹 (
talk)
19:45, 16 June 2020 (UTC)normal*0.88*1.07=95%
, resulting in a size of 85.5%. And then the
module was applying a further 90% reduction. On the assumption that styling is intended to be in the .css file as much as possible, I have removed the duplicate 90% reduction, which was presumably an oversight, from the module. There may be other tweaks needed for different bits of text that this module renders. Thanks for the links and clues, all! –
Jonesey95 (
talk)
21:42, 16 June 2020 (UTC)
|
|
Within each row, the text on the left does not have .RMsi or font-size:90% applied by the parent template, and the text on the right does. Jc86035 ( talk) 18:25, 17 June 2020 (UTC)
"Under no circumstances should the resulting font size of any text drop below 85% of the page's default font size (i.e. 11.9 px in Vector skin or 10.8 px in Monobook)."I think that's pretty clear about the pixel values in different skins. It should be apparent to anyone designing a template that if they want two lines of text to fit against an image, they are going to need more than 2 × 11.9px = 23.8px to accommodate them, and they should size their images appropriately. That's the bottom line. -- RexxS ( talk) 17:43, 18 June 2020 (UTC)
Template:Wherry Lines - yes, that was the East Anglian one. -- Redrose64 🌹 ( talk) 20:55, 18 June 2020 (UTC)
<small>...</small>
tags embedded in it, which were making text too small, as was formatting for {{
BSto}} in the module. I have
set BSto's size to "inherit", which may be a little bigger than necessary, but it is no longer too small. Comments, complaints, curses, and adjustments to the templatestyles document are welcome. –
Jonesey95 (
talk)
21:45, 18 June 2020 (UTC)INT
) is really not a representative example, since it has two relatively simple objects whose dimensions are multiples of 100px.tSTR
) and
BL
) both use 40px lines, and
HUB
) uses 20px lines, so the display could be slightly better for such icons at a higher resolution.cdHSTq
) (currently 15px wide) would not be resized correctly by MediaWiki.
Jc86035 (
talk)
23:54, 22 June 2020 (UTC)
Hi! {{ BSsplit}} is producing a slight error when used in the primary column of {{ BS}}. This is demonstrated in the map below:
Example | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Code:
{{BS-map | title = Example | float = center | map = {{BS|ENDEa|First column|Main column|small main column text|Trailing column}} {{BS|STR|{{BSsplit|It works fine in|the first column}}|||}} {{BS|STR||||}} {{BS|STR||{{BSsplit|But doesn't work in|the main column}}||}} {{BS|STR||||}} {{BS|STR|||{{BSsplit|The other text|isn't as big so doesn't break}}|}} {{BS|STR||||}} {{BS|STR||||{{BSsplit|And the final column|doesn't break it either}}}} {{BS|ENDE@F||||}} }}
Thanks, WT79 ( speak to me | editing patterns | what I been doing) 14:20, 17 July 2020 (UTC)
extended details about my computer | |
---|---|
ref for all this: | https://psref.lenovo.com/Detail/ThinkPad/ThinkPad_T440p?M=20AN0076%2B%2B |
Maker: | Lenovo |
Model: | 20AN0076UK |
Computer name: | DESKTOP-4PM2V6T |
Processor: | i5-4300M (2C, 2.6 / 3.3GHz, 3MB, 1600MHz) |
Range: | Thinkpad T440p |
Machine Type: | 20AN |
Graphics: | Intel HD Graphics 4600 |
Memory: | 8GB |
Battery Cells: | 6-cell (56Wh) |
Power Adapter (watt): | 65W |
Hope some of that might help. WT79 ( speak to me | editing patterns | what I been doing) 07:32, 27 July 2020 (UTC)
how do i add an image next to my station? MetroManMelbourne ( talk) 10:22, 25 September 2020 (UTC)
uextKINTa~~{{rwsA|St Marys|S}} [[File:Syd Trains Logo.svg|16px]]
I've created the following Template:Hogsmill River Map. If you go to the page and click on edit, it works fine. Click on the E(dit) icon on the template nav bar and it comes up blank. I've obviously done something stupid but can't work out what. Can some kind soul put me out of my misery? Murgatroyd49 ( talk) 11:16, 28 September 2020 (UTC)
|navbar=
parameter - it must match the template name exactly, case-sensitive. --
Redrose64 🌹 (
talk)
16:47, 28 September 2020 (UTC)
![]() | This
edit request to
Module:Routemap has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Jc86035: please add kilometres as an input option for {{ BScvt}}. Also, it would be nice if proper comma formatting (0,000) was included for numbers greater than 999. Thank you. AlgaeGraphix ( talk) 22:21, 25 August 2020 (UTC)
Disabled request. Once the necessary code has been written and tested, it may be reactivated. — Martin ( MSGJ · talk) 14:25, 9 September 2020 (UTC)
{{
BScvt|1.40}}
produces: 1.40 mi |
2.25 km |
{{
BScvt|1.40|x}}
produces 1.40 km |
0.87 mi |
{{
BScvt|1000}}
produces 1,000 mi |
1,609 km |
1000 mi |
1609 km |
base
function which is completely opaque and which should use a table to pass the optional parameters. I would not use convert—first of all, it was one of the first modules and does not provide access to its internals, and second, it is a lot of overhead for a comma.
Johnuniq (
talk)
05:04, 28 September 2020 (UTC)
|numfmt=
is set to comma (it just needed a local function to call the mw.language :formatNumber method). It seems to work for {{
BScvt/sandbox}} but I'd recommend asking someone more familiar with routemapping to try it out with several edge-cases before thinking of implementing it in the main module.
{{BScvt/sandbox|1000|numfmt=comma}}
→ 1000 mi |
1609 km |
Having {{rint}} and {{BSsplit}} on the left side of the route diagram breaks alignment on mobile view (works fine on Desktop). Example:
{{rint|sanfrancisco|metro}}~~{{BSsplit|{{munis|Market and Main}} /|{{munis|Market and Drumm}}}}~~! !udINTACC\d\udHSTACC~~ ~~{{munis|The Embarcadero and Brannan}}
|
Not sure if this is fixable 132.147.87.52 ( talk) 00:57, 27 June 2021 (UTC)
|align=left
. See the updated version of {{
Muni Heritage}}. It's still not ideal. –
Jonesey95 (
talk)
15:30, 28 June 2021 (UTC)
Text {{BSsplit|{{munis|Market and Main}} /|{{munis|Market and Drumm}}}}~~! !udINTACC\d\udHSTACC~~ ~~{{munis|The Embarcadero and Brannan}}
132.147.87.52 (
talk)
00:45, 29 June 2021 (UTC)
d\\uextACC\\uextSTRc1\uextSTRl+4\uextSTRq\uxtKRZq2+4tu\uextINTACCq\uextdCONTfq~~ ~~ ~~{{SMRT color icon|te}}''{{BSto|[[Thomson–East Coast MRT line]]|to {{mrts|Gardens by the Bay}}}}''{{SMRT code|TE|20}}
Screenshot:
https://ibb.co/9vbCfLx
138.75.157.61 (
talk)
13:18, 18 July 2021 (UTC)align=left
doesn't quite work either, though it is an improvement in that the words just overwrite the line rather than each other: see "to Oxford" at bottom left of {{
Milton Keynes railway map}}. (Using Chrome on Android).--
John Maynard Friedman (
talk)
17:19, 18 July 2021 (UTC)I have just given a new name for this template (when used with Routemap):
Let's see if it takes use or if it is better that the name remains as it is.
ZandDev (
talk)
10:49, 1 September 2021 (UTC)
Document states: Position of the Navbar template. Float to left in the title bar by default; «1» for top-right corner of the map (just under the title bar); «2» for the middle bottom of the map. However for «1», it's appearing on the top-left instead of right. Is the doc wrong, or is that a bug? 2401:7400:C80B:E643:3438:40F6:CECE:CCD5 ( talk) 05:06, 1 March 2023 (UTC)
|navbar pos=1
for upper-right placement or |navbar pos=2
for lower-middle placement. See
Template:Routemap#Embedding_into_infobox for a lower-middle example. –
Jonesey95 (
talk)
06:01, 1 March 2023 (UTC)
|navbar pos=1
Places it on the upper-left instead of upper-right. See
Changi Airport Skytrain infobox as an example.
112.199.236.152 (
talk)
10:32, 1 March 2023 (UTC)
|navbar pos=1
places the navbar on the upper left, and |navbar pos=2
places the navbar at the bottom middle. Someone more familiar with Lua may be able to determine if there are other options. –
Jonesey95 (
talk)
17:27, 1 March 2023 (UTC)
|navbar=
and |navbar pos=
is blank or absent, you get the navbar in the title bar, at the left, as small capitals enclosed in square brackets. When |navbar pos=1
you get the navbar floated at top left below the title bar, as small capitals not enclosed in square brackets; it shares a row with the "Legend" link. When |navbar pos=2
you get the navbar in a row of its own centred at the bottom, as text reading "This diagram: view - talk - edit". Any other values for |navbar pos=
will suppress the navbar, even if |navbar=
is specified and valid. --
Redrose64 🌹 (
talk)
09:10, 2 March 2023 (UTC)
Please see {{ Suez Canal map}}. In the third row, there is text "W" and "E" (for West and East entrance). The "W" is half hidden under the following icon. Can someone move that letter to the left to make it visible? Or, if necessary, completely to the right of its following icon. Thanks. - DePiep ( talk)
Would someone please investigate the new {{ Madurai Metro route diagram}} added by VendhanKovan at Madurai Metro. It is putting that article in the hidden Category:Pages with script errors. Is that because {{ Madurai Metro color}} currently does not exist? Johnuniq ( talk) 02:36, 19 July 2023 (UTC)
![]() | This is an archive of past discussions. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 1 | Archive 2 |
I noticed at {{ Kanpur–Phaphund–Tundla section}} that the font size for {{ BSsplit}} renders text at 77% of the default, which is too small for accessibility, per MOS:FONTSIZE. Normally, I would go through the code and adjust the code that makes that text too small, but the module code for this template stacks font size reductions in a way that I was unable to parse. It appears that the stacking is 95% times 85% times 95%, but I could definitely be wrong, and I don't know the best place to fix the problem so that the rest of the template's text remains at the desired sizes. The minimum allowable font size reduction is to 85%. Is anyone here willing to take on this adjustment? Thanks. – Jonesey95 ( talk) 15:23, 16 June 2020 (UTC)
{{
BSsplit}}
is somehow "better" than accessibility considerations. --
Redrose64 🌹 (
talk)
19:45, 16 June 2020 (UTC)normal*0.88*1.07=95%
, resulting in a size of 85.5%. And then the
module was applying a further 90% reduction. On the assumption that styling is intended to be in the .css file as much as possible, I have removed the duplicate 90% reduction, which was presumably an oversight, from the module. There may be other tweaks needed for different bits of text that this module renders. Thanks for the links and clues, all! –
Jonesey95 (
talk)
21:42, 16 June 2020 (UTC)
|
|
Within each row, the text on the left does not have .RMsi or font-size:90% applied by the parent template, and the text on the right does. Jc86035 ( talk) 18:25, 17 June 2020 (UTC)
"Under no circumstances should the resulting font size of any text drop below 85% of the page's default font size (i.e. 11.9 px in Vector skin or 10.8 px in Monobook)."I think that's pretty clear about the pixel values in different skins. It should be apparent to anyone designing a template that if they want two lines of text to fit against an image, they are going to need more than 2 × 11.9px = 23.8px to accommodate them, and they should size their images appropriately. That's the bottom line. -- RexxS ( talk) 17:43, 18 June 2020 (UTC)
Template:Wherry Lines - yes, that was the East Anglian one. -- Redrose64 🌹 ( talk) 20:55, 18 June 2020 (UTC)
<small>...</small>
tags embedded in it, which were making text too small, as was formatting for {{
BSto}} in the module. I have
set BSto's size to "inherit", which may be a little bigger than necessary, but it is no longer too small. Comments, complaints, curses, and adjustments to the templatestyles document are welcome. –
Jonesey95 (
talk)
21:45, 18 June 2020 (UTC)INT
) is really not a representative example, since it has two relatively simple objects whose dimensions are multiples of 100px.tSTR
) and
BL
) both use 40px lines, and
HUB
) uses 20px lines, so the display could be slightly better for such icons at a higher resolution.cdHSTq
) (currently 15px wide) would not be resized correctly by MediaWiki.
Jc86035 (
talk)
23:54, 22 June 2020 (UTC)
Hi! {{ BSsplit}} is producing a slight error when used in the primary column of {{ BS}}. This is demonstrated in the map below:
Example | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Code:
{{BS-map | title = Example | float = center | map = {{BS|ENDEa|First column|Main column|small main column text|Trailing column}} {{BS|STR|{{BSsplit|It works fine in|the first column}}|||}} {{BS|STR||||}} {{BS|STR||{{BSsplit|But doesn't work in|the main column}}||}} {{BS|STR||||}} {{BS|STR|||{{BSsplit|The other text|isn't as big so doesn't break}}|}} {{BS|STR||||}} {{BS|STR||||{{BSsplit|And the final column|doesn't break it either}}}} {{BS|ENDE@F||||}} }}
Thanks, WT79 ( speak to me | editing patterns | what I been doing) 14:20, 17 July 2020 (UTC)
extended details about my computer | |
---|---|
ref for all this: | https://psref.lenovo.com/Detail/ThinkPad/ThinkPad_T440p?M=20AN0076%2B%2B |
Maker: | Lenovo |
Model: | 20AN0076UK |
Computer name: | DESKTOP-4PM2V6T |
Processor: | i5-4300M (2C, 2.6 / 3.3GHz, 3MB, 1600MHz) |
Range: | Thinkpad T440p |
Machine Type: | 20AN |
Graphics: | Intel HD Graphics 4600 |
Memory: | 8GB |
Battery Cells: | 6-cell (56Wh) |
Power Adapter (watt): | 65W |
Hope some of that might help. WT79 ( speak to me | editing patterns | what I been doing) 07:32, 27 July 2020 (UTC)
how do i add an image next to my station? MetroManMelbourne ( talk) 10:22, 25 September 2020 (UTC)
uextKINTa~~{{rwsA|St Marys|S}} [[File:Syd Trains Logo.svg|16px]]
I've created the following Template:Hogsmill River Map. If you go to the page and click on edit, it works fine. Click on the E(dit) icon on the template nav bar and it comes up blank. I've obviously done something stupid but can't work out what. Can some kind soul put me out of my misery? Murgatroyd49 ( talk) 11:16, 28 September 2020 (UTC)
|navbar=
parameter - it must match the template name exactly, case-sensitive. --
Redrose64 🌹 (
talk)
16:47, 28 September 2020 (UTC)
![]() | This
edit request to
Module:Routemap has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Jc86035: please add kilometres as an input option for {{ BScvt}}. Also, it would be nice if proper comma formatting (0,000) was included for numbers greater than 999. Thank you. AlgaeGraphix ( talk) 22:21, 25 August 2020 (UTC)
Disabled request. Once the necessary code has been written and tested, it may be reactivated. — Martin ( MSGJ · talk) 14:25, 9 September 2020 (UTC)
{{
BScvt|1.40}}
produces: 1.40 mi |
2.25 km |
{{
BScvt|1.40|x}}
produces 1.40 km |
0.87 mi |
{{
BScvt|1000}}
produces 1,000 mi |
1,609 km |
1000 mi |
1609 km |
base
function which is completely opaque and which should use a table to pass the optional parameters. I would not use convert—first of all, it was one of the first modules and does not provide access to its internals, and second, it is a lot of overhead for a comma.
Johnuniq (
talk)
05:04, 28 September 2020 (UTC)
|numfmt=
is set to comma (it just needed a local function to call the mw.language :formatNumber method). It seems to work for {{
BScvt/sandbox}} but I'd recommend asking someone more familiar with routemapping to try it out with several edge-cases before thinking of implementing it in the main module.
{{BScvt/sandbox|1000|numfmt=comma}}
→ 1000 mi |
1609 km |
Having {{rint}} and {{BSsplit}} on the left side of the route diagram breaks alignment on mobile view (works fine on Desktop). Example:
{{rint|sanfrancisco|metro}}~~{{BSsplit|{{munis|Market and Main}} /|{{munis|Market and Drumm}}}}~~! !udINTACC\d\udHSTACC~~ ~~{{munis|The Embarcadero and Brannan}}
|
Not sure if this is fixable 132.147.87.52 ( talk) 00:57, 27 June 2021 (UTC)
|align=left
. See the updated version of {{
Muni Heritage}}. It's still not ideal. –
Jonesey95 (
talk)
15:30, 28 June 2021 (UTC)
Text {{BSsplit|{{munis|Market and Main}} /|{{munis|Market and Drumm}}}}~~! !udINTACC\d\udHSTACC~~ ~~{{munis|The Embarcadero and Brannan}}
132.147.87.52 (
talk)
00:45, 29 June 2021 (UTC)
d\\uextACC\\uextSTRc1\uextSTRl+4\uextSTRq\uxtKRZq2+4tu\uextINTACCq\uextdCONTfq~~ ~~ ~~{{SMRT color icon|te}}''{{BSto|[[Thomson–East Coast MRT line]]|to {{mrts|Gardens by the Bay}}}}''{{SMRT code|TE|20}}
Screenshot:
https://ibb.co/9vbCfLx
138.75.157.61 (
talk)
13:18, 18 July 2021 (UTC)align=left
doesn't quite work either, though it is an improvement in that the words just overwrite the line rather than each other: see "to Oxford" at bottom left of {{
Milton Keynes railway map}}. (Using Chrome on Android).--
John Maynard Friedman (
talk)
17:19, 18 July 2021 (UTC)I have just given a new name for this template (when used with Routemap):
Let's see if it takes use or if it is better that the name remains as it is.
ZandDev (
talk)
10:49, 1 September 2021 (UTC)
Document states: Position of the Navbar template. Float to left in the title bar by default; «1» for top-right corner of the map (just under the title bar); «2» for the middle bottom of the map. However for «1», it's appearing on the top-left instead of right. Is the doc wrong, or is that a bug? 2401:7400:C80B:E643:3438:40F6:CECE:CCD5 ( talk) 05:06, 1 March 2023 (UTC)
|navbar pos=1
for upper-right placement or |navbar pos=2
for lower-middle placement. See
Template:Routemap#Embedding_into_infobox for a lower-middle example. –
Jonesey95 (
talk)
06:01, 1 March 2023 (UTC)
|navbar pos=1
Places it on the upper-left instead of upper-right. See
Changi Airport Skytrain infobox as an example.
112.199.236.152 (
talk)
10:32, 1 March 2023 (UTC)
|navbar pos=1
places the navbar on the upper left, and |navbar pos=2
places the navbar at the bottom middle. Someone more familiar with Lua may be able to determine if there are other options. –
Jonesey95 (
talk)
17:27, 1 March 2023 (UTC)
|navbar=
and |navbar pos=
is blank or absent, you get the navbar in the title bar, at the left, as small capitals enclosed in square brackets. When |navbar pos=1
you get the navbar floated at top left below the title bar, as small capitals not enclosed in square brackets; it shares a row with the "Legend" link. When |navbar pos=2
you get the navbar in a row of its own centred at the bottom, as text reading "This diagram: view - talk - edit". Any other values for |navbar pos=
will suppress the navbar, even if |navbar=
is specified and valid. --
Redrose64 🌹 (
talk)
09:10, 2 March 2023 (UTC)
Please see {{ Suez Canal map}}. In the third row, there is text "W" and "E" (for West and East entrance). The "W" is half hidden under the following icon. Can someone move that letter to the left to make it visible? Or, if necessary, completely to the right of its following icon. Thanks. - DePiep ( talk)
Would someone please investigate the new {{ Madurai Metro route diagram}} added by VendhanKovan at Madurai Metro. It is putting that article in the hidden Category:Pages with script errors. Is that because {{ Madurai Metro color}} currently does not exist? Johnuniq ( talk) 02:36, 19 July 2023 (UTC)