用戶:WikiCantona/造年/誌

文出維基大典
跳至導覽 跳至搜尋

This is the progress log for Template:造年 project.

Template:YearNav[]

  • buggy on not displaying the year fixed due to </noinclude> missed in Template:CalBcDate, later removed the noinclude section entirely.
  • the {{{2}}} parts not working... should be fixed.

Template:造年[]

    • the century part incomplete.
  • Problem on century name: 一八世紀、二一世紀 --> 十八世紀、廿一世紀
  • subst:CenturyConv, get this
  • [[Category:{{#switch:{{CalcBcDate| {{#ifexpr: 1164 > 0 | {{#expr: ((1164 - 0.9) / 100 - 0.5 round 0) + 1 }} | {{#expr: ((1164 + 0.9) / 100 + 0.5 round 0) - 1 }} }} | 0 }}|0=〇|1=一|2=二|3=三|4=四|5=五|6=六|7=七|8=八|9=九|10=十|11=十一|12=十二|13=十三|14=十四|15=十五|16=十六|17=十七|18=十八|19=十九|20=二十|21=廿一|22=廿二|23=廿三|24=廿四|}}世紀]]
    • add <includeonly>solved some problems and still let part of code shown.
      • As I said, use <includeonly>subst:</includeonly>#ifexpr, <includeonly>subst:</includeonly>switch: , <includeonly>subst:</includeonly>#expr:. -- :-) Hillgentleman | , 二〇〇七年〇九月二三日(星期日), 格林尼治標準 二三時一五分一〇秒 二〇〇七年九月二三日 (日) 二三時一五分 (UTC)

Alternative direction[]

  • [[Template:造年|year|century]] where century in number on apply CenturyConv and subst simply.
  • Or, year {{{1}}} div 100 --> 0.1 - 0.99 -> 1 century ; 1 - 1.99 -> 2 century ; 10 - 10.99 -> 11 century and so on and then switch number into CHINESE.