FANDOM


  • Hey AFB, I don't know if you know about the Oricon templates like Template:OriconWeek? If so and you choose not to use them that's cool, but I (being biased) like them and since you do so many sales updates I thought I might try to sell you on them. They haven't caught on around here much, but I use them a fair amount on the non-English wikis.

    A few advantages are that it's shorter, simpler, and easier to copy to other wikis. Shorter thanks to parts that get repeated per table or per line being part of the template. Simpler because formatting things like making sales show up under the rank in a smaller font are automatic, as is bolding of #1 ranks. Easier to copy internationally because each wiki it's set up at can have a different set of standard column headings or ways to format numbers, so this table and this table look exactly the same behind the scenes.

    Original method versus template method to create the same output:

    {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse;" cellpadding="2" border="1"
    |- style="background:#efefef"
    !Mon!!Tue!!Wed!!Thu!!Fri!!Sat!!Sun!!Week Rank!!Sales
    |- align="center"
    | -|| 6|| 11|| 7|| 6|| 5|| 2<br /><small>2,707</small>|| 5||28,051
    |- style="text-align:center;"
    | 39|| -|| -|| -|| -|| -|| -|| 88||1,156
    |- style="text-align:center;"
    | -|| -|| -|| -|| -|| -|| -|| 179||321
    |}
    
    {{OriconStart}}
    {{OriconWeek|-,6,11,7,6,5,2/2707,5/28051}}
    {{OriconWeek|39,-,-,-,-,-,-,88/1156}}
    {{OriconWeek|-,-,-,-,-,-,-,179/321}}
    {{OriconFinish}}
    

    I know there are ways it could be improved--like I currently don't have a very good way of dealing with numbers that account for two weeks other than making those weeks use Template:OriconNote though I want to improve that. If there are other things you think could be improved, I'm open to them.

      Loading editor
    • hey thats pretty cool (actually i heard u mention this awhile ago but since templates arn't really my thing i didn't really bother looking into it *sorry xD*) but i do like it and i'll start using it i'll change ANGERME page to this code sometime today oh and for the other chart positions where i update billboard japan chart and other one's do u have any idea on how to do those i mostly copy and paste so i'm not that sure on how to do it xD?

        Loading editor
    • ... okay so i switched the oricon tamplate to that one and i chaged the numbers that were one the example u gave me. i changed them to default (x, x,x, and -,-,-)and this is wat i got 

      Mon Tue Wed Thu Fri Sat Sun Week Rank Sales

      Script error Script error Script error

      do u know how to fix this or if im doing something wrong xD?
        Loading editor
    • I ran into that problem yesterday. As things are now, x in the sales area kill it. When it sees a /, it grabs what's on either side as separate parts--but I specifically told it what it was looking for on the right side was a series of digits--so it sees x and is like "... what digits!?" I'll see if I can change that--it should probably be easy, but sometimes what looks like an easy change causes unanticipated issues elsewhere.

      About ANGERME pages, I haven't bothered to do so but if you want you could actually just follow the link at the bottom to the non-English versions of the page and find the code there. I've also done Minimoni, Petitmoni, and Tanpopo--but the Tanpopo pages are new enough they're only on the Japanese wiki and the English pages don't yet have links to them.

      I haven't done anything with the other charts, so I'm less sure of how much improvement I could bring to the process. For something like what you've currently got on the Berrz album page

      {| border="2" cellpadding="2" style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse;"
      |- style="background:#efefef"
      | '''Country'''
      |
      ::::: '''Chart'''
      | '''Highest<br />Position'''
      |-
      | rowspan="2" |Japan
      | Billboard Japan Top Albums
      | align="center" |8 <ref>http://www.billboard-japan.com/charts/detail?a=top_albums</ref>
      |- 
      | TOWER RECORDS Japan <small><br />(Shibuya store General albums)</small>
      | align="center" |4 <ref>http://tower.jp/chart/7/2015/01/20150119-20150125</ref>
      |}

      I could imagine making it work with something like

      {{OtherChartStart}}
      {{OtherChartContent|2 Japan|Billboard Japan Top Albums|8|http://www.billboard-japan.com/charts/detail?a=top_albums}}
      {{OtherChartContent|.|TOWER RECORDS Japan<br><small>(Shibuya store General albums</small>|4|http://tower.jp/chart/7/2015/01/20150119-20150125}}
      {{OtherChartFinish}}
      

      though I'm not sure how big of an improvement that really is beyond making setting up the table and columns to begin with easier.

        Loading editor
    • OK, I think I've got it now so x is kosher for sales. Well, strings in general--if it detects it wasn't given a number it just leaves it alone. However, still don't include commas, because it can conflict with the commas used to split the daily (and weekly) sections.

      {{OriconStart}}
      {{OriconWeek|-,x,x,x,x,x,x,-/xxxxx}}
      {{OriconWeek|-,x,x,x,x,High/Lots,Low/Not so much,1/A million or something}}
      {{OriconFinish}}
      Mon Tue Wed Thu Fri Sat Sun Week Rank Sales
      - x x x x x x - xxxxx
      - x x x x High
      Lots
      Low
      Not so much
      1 A million or something
        Loading editor
    • ok its working fine now:

      Mon Tue Wed Thu Fri Sat Sun Week Rank Sales
      - x x x x x x - xx,xxx
      - x x x x x x - x,xxx
      - x x x x x x - x,xxx
      - x x x x x x - x,xxx

      personally im liking it the coding is a lot simpler for this one xD

      if u manage to get one for the other chart position monthly and yearly ranking chart or the music video ranking just let me know and i'll add them :)!!

        Loading editor
    • I can do them, it's just a matter of how to do them. Since I think you're the one doing the most with them right now it makes sense it should be in a way agreeable to you. What do you make of that "OtherChart" example from a bit above, is there something you'd particularly like different or something I'm forgetting to take into account from not looking at enough example tables?

        Loading editor
    • i like the example of the other chart positions its simple which i like, unlike the one i've been using right now took me awhile to used to it xD (dealing with codes is not my thing xD)

      as long as their simple and easy to use then i'm okay with it :)

        Loading editor
    • 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.

        Loading editor
    • nice the only thing i'm concern about is that is looks a little bit messy (on source mode) but i know i know its because of the reference link but i don't think that we can anything about that right?

      well unless we don't add the reference but i think that out of the question xD

        Loading editor
    • Yeah, not a lot that can be done with big messy URLs. Probably it would be harmless to include a space between the sections unlike what I did in my examples, to make it a bit more readable.

      Country Chart Highest
      Position
      Japan Billboard Japan Top Albums 8[1]
      Japan Billboard Japan Top Albums 8[2]

      Yeah, these rows turn out the same.

      {{OtherChartContent|country=Japan|rows=1|Billboard Japan Top Albums|8|ref=http://www.billboard-japan.com/charts/detail?a=top_albums&year=2014&month=11&day=10}}
      {{OtherChartContent |country=Japan |rows=1 |Billboard Japan Top Albums |8 |ref=http://www.billboard-japan.com/charts/detail?a=top_albums&year=2014&month=11&day=10}}


      Cite error: <ref> tags exist, but no <references/> tag was found
        Loading editor
    • ya i was thinking about that to. something like this and as long it works fine which i think it does right?

      {{OtherChartContent|country=Japan|rows=1|Billboard Japan Top Albums|8|ref=http://www.billboard-japan.com/charts/detail?a=top_albums&year=2014&month=11&day=10}}


      {{OtherChartContent |country=Japan |rows=1 |Billboard Japan Top Albums |8 |ref=http://www.billboard-japan.com/charts/detail?a=top_albums&year=2014&month=11&day=10}}

        Loading editor
    • Yeah, templates are pretty friendly with how things are arranged. I mean, this works equally, it just doesn't look as compact:

      {{OtherChartContent
      |country=Japan
      |rows=1
      |Billboard Japan Top Albums
      |8
      |ref=http://www.billboard-japan.com/charts/detail?a=top_albums&year=2014&month=11&day=10
      }}

        Loading editor
    • yes i love that one :)

      is it ready to use now?

        Loading editor
    • I think so, just tell me if it starts doing something weird.

        Loading editor
    • just tried it and it give me this xD

      |- | rowspan="1" |Japan | Billboard Japan Top Albums

      | align="center" | 8 [1]

        Loading editor
    • Paste in here what you were trying to put on a page so I can check it out and test fixes on it if needed.

        Loading editor
    • Oh, tip, if you want to paste a bit of template code or otherwise show what the source looks like without processing it, you can put it between <pre> and </pre> tags.

        Loading editor
    • 
      {{OtherChartContent
      
      |country=Japan
      
      |rows=1
      
      |Billboard Japan Top Albums
      
      |8
      
      |ref=http://www.billboard-japan.com/charts/detail?a=top_albums&year=2014&month=11&day=10
      
      }}
      
      


      thats the one im using right now


      i was looking at the one we have right now and i kinda like it except for this part.

      
      {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse;" border="1" cellpadding="3"
      
      |- style="background:#efefef"
      
      | '''Country'''
      
      |
      
      ::::: '''Chart'''
      
      | '''Position'''
      
      
        Loading editor
    • is the anyway to switch that part to {{OtherChartContent 

      maybe something like this?

      
      | rowspan="6" |Japan
      
      | Billboard Japan Hot 100
      
      | align="center" |TBA
      
      |-
      
      | Billboard Japan Hot Singles Sales
      
      | align="center" |TBA
      
      |-
      
      | Tokyo FM Countdown
      
      | align="center" |TBA
      
      |-
      
      | Countdown TV (TBS)
      
      | align="center" |TBA
      
      |}
      

      with {{OtherChartContent being on the top.

      idk i find it neat this way. can it be done this way?

        Loading editor
    • What you pasted first works, but you still need the {{OtherChartStart}} and {{OtherChartFinish}} around it. They're the beginning and end parts of the table that never change.

      Country Chart Highest
      Position
      Japan Billboard Japan Top Albums 8[1]

      What you have in the second blue section is basically what's in OtherChartStart, so it is possible to use that without OtherChartContent.


      Cite error: <ref> tags exist, but no <references/> tag was found
        Loading editor
    • Just adding OtherChartStart and another |- to what you put above,

      {{OtherChartStart}}
      |-
      | rowspan="6" |Japan
      | Billboard Japan Hot 100
      | align="center" |TBA
      |-
      | Billboard Japan Hot Singles Sales
      | align="center" |TBA
      |-
      | Tokyo FM Countdown
      | align="center" |TBA
      |-
      | Countdown TV (TBS)
      | align="center" |TBA
      |}

      makes

      Country Chart Highest
      Position
      Japan Billboard Japan Hot 100 TBA
      Billboard Japan Hot Singles Sales TBA
      Tokyo FM Countdown TBA
      Countdown TV (TBS) TBA

      Though notice since you made the rowspan part too many rows, the bottom of that column looks open.

        Loading editor
    • yes pasted it on Taiki Bansei page and its looking great :)

        Loading editor
    • Just to note, I checked to see if it was possible to set the whole right column to be centered so you wouldn't need to specify | align="center" again and again--but it doesn't seem that's a standard option. Entire table, entire row, or single cell are it.

        Loading editor
    • ....

        Loading editor
    • im confused xD?

        Loading editor
    • Basically, you have to keep telling it to center each rank, because there isn't a better way. :)

        Loading editor
    • oh ok xD

        Loading editor
    • hey i was just checking the oricon tamplete chart and tested it out and when u type in  ( , ) it goes right to the next cell or row.. well the next little box in line xD not sure how to explain it ;D. anyways meaning that we can only put the daily rank in and not the day sales although for ANGERME and ju=ju thats now much of a problem since they dont always get in the top 3 but for c-ute and mm that will be kind of an issue so i was thinking that if we could the same thing we did with the other chart position chart by just switching this part:

      
      ===[[Oricon]] Chart Positions===
      
      {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse;" border="1" cellpadding="2"
      
      |- style="background:#efefef"
      
      !Mon!!Tue!!Wed!!Thu!!Fri!!Sat!!Sun!!Week Rank!!Sales
      
      |- align="center"
      
      


      to how it currently is in the new one OriconStart or OriconChartPositions (it doesn't matter which one it is i like both :))

      and leave the rest like this:


      
      |- style="text-align:center;"
      
      | -|| -|| -|| -|| -|| -|| -|| -||-
      
      |- style="text-align:center;"
      
      | -|| -|| -|| -|| -|| -|| -|| -||-
      
      |- style="text-align:center;"
      
      | -|| -|| -|| -|| -|| -|| -|| -||-
      
      
        Loading editor
    • anyways sorry to make u do this but since this one of few things i do here i'm getting a little picky xD

        Loading editor
    • and i really did love the changes you've made to the ocrion chart and the other one i never liked the codeing at the beginning xD

        Loading editor
    • They do LOOK like 24,424, they're just not entered in that way. It's another thing that's international-friendly--if for another language another character should be used, or the numbers should be formatted in some other way, that's done automatically.

      But if you really want, as with the other one the {{OriconStart}} template alone contains the table start / column headings and can be used without the others.

        Loading editor
    • ok never mind i went and the codeing from x,x,x,x to || -||- || -||- and it worked that surprised me xD but since i have u here i want to ask if u could this part from the oricon monthly and yearly chart:


      
      {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse;" border="1" cellpadding="2"
      
      |- style="background:#efefef"
      
      




      and changed them to:

      MonthlyRank and YearlyRank??

      and while im ad it could u the same thing the Music Video Section and change it to MusicVideoRanking and sorry sorry for bugging u so much on this and for making u read all this ;D

        Loading editor
    • Have you ever made a template before? I say not because I couldn't do what you're asking easily enough, but that it's easy enough I think you could do it and you'd have one more skill under your belt. :) For what you're wanting to do, which is just have it save a little piece of wikicode that you can use again and again, it's really simple. Just go to Template:MonthlyChart or Template:YearlyChart or whatever you want to call it with Template: at the beginning. Choose to create it as you would with any other page. Paste in the part from above, save it. That's it, now you can use {{MonthlyChart}} or {{YearlyChart}} or whatever you called it and it will be there.

      Templates only really get more complicated than any other page once you start having it do different things based on additional parameters, like the infoboxes.

        Loading editor
    • oh yes thank you that easily alright now i got one more skill under my belt xD thanks once again :)

        Loading editor
    • ok spoke to soon...

      so i did as u told and got the Template:MonthlyChart i added the code that i wanted to add but then i added the rest of the code to the tamplate and went to check it out but i couldn't edit it and then i tooked it out and added to the source mode and got this on the visual..:


      
      !Year !Month !Month Rank !Sales |- style="text-align:center;" |2015 |November |TBA |xx,xxx |}
      
      


      then i went to check out the one u showed yesterday for reference but that one made less sense to me.. help plz ;D?

        Loading editor
    • OK, here's what the monthly chart on the Berryz Kanjuku page looks like

      {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse;" border="1" cellpadding="2"
      |- style="background:#efefef"
      !Year
      !Month
      !Month Rank
      !Sales
      |- style="text-align:center;"
      |2015
      |January
      |TBA
      |xx,xxx
      |}

      Before I go on, I'll make one change. The only non-header row is set to be centered. Presumably this would be the case for all rows, so we can just make the entire table centered rather than specifying it per row.


      {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse; text-align:center;" border="1" cellpadding="2"
      |- style="background:#efefef"
      !Year
      !Month
      !Month Rank
      !Sales
      |-
      |2015
      |January
      |TBA
      |xx,xxx
      |}

      OK, that taken care of, we can split it into two parts. Here's the part that represents the table being set up and the column headers.

      {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse; text-align:center;" border="1" cellpadding="2"
      |- style="background:#efefef"
      !Year
      !Month
      !Month Rank
      !Sales

      And here's the rest of the table.

      |-
      |2015
      |January
      |TBA
      |xx,xxx
      |}

      The first part is what gets copied into Template:MonthlyChart. Then we can leave that part out on a page and just use {{MonthlyChart}} along with the rest of the table.

      {{MonthlyChart}}
      |-
      |2015
      |January
      |TBA
      |xx,xxx
      |}

      which makes

      Year Month Month Rank Sales
      2015 January TBA xx,xxx
        Loading editor
    • ok i understand now ;D

      but the other thing i also pointed out was when i switch to visual mode it shows me this: !Year, !Month, !Month Rank, and !Sales and a green symbol or mark. i was wondering if it could be done like the members info box tamplate where when u switch to visual mode it stays hidden and doesn't show anything else that is a part of it and when u switch to source mode u can edit it?

      hope u understood wat i just said ;D?

        Loading editor
    • I think I understand, but I never use the visual editor so I'm afraid I'm not sure what makes them different in that regard.

        Loading editor
    • that the codeing it has

      ===Oricon===
      {{OriconStart}} |- style="text-align:center;" | x|| x|| x|| x|| x|| x|| x||-||xx,xxx |- style="text-align:center;" | x|| x|| x|| x|| x|| x|| x||-||x,xxx |- style="text-align:center;" | x|| x|| x|| x|| x|| x|| x||-||xxx |- style="text-align:center;" | x|| x|| x|| x|| x|| x|| x||-||xxx {{OriconFinish}}
      
      ;Monthly Ranking
      {{MonthlyChart}} |- |2015 |January |TBA |xx,xxx |}
      
      ;Yearly Rankings
      {| style="margin: 1em; border: 1px #aaa solid; border-collapse: collapse;" border="1" cellpadding="2"
      |- style="background:#efefef"
      !Year
      !Year Rank
      !Sales
      |- style="text-align:center;"
      |2015
      |TBA
      |TBA
      |}
      '''Total Reported Sales:''' TBA
      
      
        Loading editor
    • i switched the codeing a little for the oricon weekly chart because i couldn't add the daily sales in that one..

        Loading editor
    • Daily sales do work fine the all-template way, see Mystery Night! / Eighteen Emotion#Oricon Charts for example.

      I'm taking a quick look at Taiki Bansei page with the visual editor, but nothing looks unusual to me.

        Loading editor
    • Hey AFB, not sure if you noticed this, but from the template talk a bit above: I was editing Template:MonthlyChart and you were editing Template:MonthlyRank, so if something isn't coming out exactly as expected using one instead of the other might be the reason.

        Loading editor
    • oh ok xD (ya tamplates arn't my thing ;D but i still wanna learn how to do them ;P)

      i'm on my way out now so i'll chack thatc later xD!!

        Loading editor
    • A FANDOM user
        Loading editor
Give Kudos to this message
You've given this message Kudos!
See who gave Kudos to this message
Community content is available under CC-BY-SA unless otherwise noted.