Thread:AyumiFanBoy/@comment-131168-20150202002409/@comment-131168-20150202182717

OK, here's what I've got, mostly like the example above. I haven't written the proper instructions yet, but in Template:Sandbox right now there are the test examples, old version then new version. There are some slight formatting differences. Some are definite improvements, like the headers always being properly centered. Others are less clear cut, like I put the references right next to the numbers rather than having a space between them. That sort of thing is easily changed, though.

OtherChartStart and OtherChartFinish pretty obviously are used to start and finish them each time, here are some notes about OtherChartContent that you can see in use in those above examples:

It would be nice to have it able to detect matching countries between lines and know to make all matching countries share one row-spanning name. BUT since each row is processed separately they don't know anything about each other. So when a new country is being listed, you'll add a few extra things. Something like |country=Japan|rows=2. It doesn't really matter if these are at the beginning or end, since they're given special names like country and rows, order doesn't matter. If you provide a country but not rows, it will assume 1 row.

For the other ones that will be found on every line, it expects them to be in the same order each time--Chart name, then rank. It turns out you'll need to use |ref= before each reference, too--I tried it so it was a nameless one like chart name and rank, but then any URL given with an = sign made it screw up. If there is no reference, just leave that section out.

While I've got you here, I notice a problem with some references. For example, for Morning Musume's latest album you gave a reference to http://www.billboard-japan.com/charts/detail?a=top_albums. However, that always shows the CURRENT chart, so right now Morning Musume is nowhere to be found. If you use the dropdown boxes at top you can choose a particular date, and then hit the button next to them. Even if you just hit it without changing anything, it will take you to a more specific link for the current date. In the case of 14shou, it looks like the proper URL is http://www.billboard-japan.com/charts/detail?a=top_albums&year=2014&month=11&day=10 for instance. I've just changed it for 14shou as well as Kanjuku Berryz.