Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template talk:Convertbs

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 8 years ago by Miniapolis in topic Couldn't get it to work

Couldn't get it to work

[edit]
Resolved

Thanks for creating this template, but I couldn't get it to work on the Kalka–Shimla railway route map; however, using the

{{#invoke:Routemap|convertbs|<nowiki>

</nowiki>}}

markup at {{Routemap}} worked. All the best, Miniapolis 17:41, 14 March 2018 (UTC)Reply

@Miniapolis: Did you save the page before copying the diagram text out of the page preview? This template should function identically to the longer code in the {{Routemap}} documentation; I created this primarily because I didn't like copying and pasting the conversion code. Jc86035 (talk) 13:52, 23 March 2018 (UTC)Reply
That awful diff happened because I didn't fully understand the instructions at Template:Routemap/doc#Function convertbs at the time. Unfortunately, I don't remember why {{Convertbs}} didn't seem to work; I tried it first, as the simpler option. If you know of any old tables which still need conversion, I can try it again in my sandbox. All the best, Miniapolis 14:10, 23 March 2018 (UTC)Reply
@Miniapolis: Oh, it's probably because you replaced the table code at the start and end with this template's code. I'll add a note about that to the documentation pages. Jc86035 (talk) 14:45, 23 March 2018 (UTC)Reply
It turns out it didn't work with {{BS-table}}. It should work now. Jc86035 (talk) 14:58, 23 March 2018 (UTC)Reply
Thanks a lot; that was probably the problem, and I don't understand template code well enough to have figured it out. All the best, Miniapolis 15:05, 23 March 2018 (UTC)Reply