「使用者:WikiCantona/造年/誌」:各本之異

文出維基大典
刪去的內容 新增的內容
WikiCantona
新文: This is the progress log for Template:造年 project. == Template:YearNav == *<del>buggy on not displaying the year</del> fixed due to <nowiki></noinclude></nowiki> missed in Templa...
(無異)

二〇〇七年九月二二日 (六) 〇〇時三〇分審

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.

Alternative direction

  • [[Template:造年|year|century}} where century in number on apply CenturyConv and subst simply.
  • Or, 1000 year div 100; 100 div 10; and so on... and if div 10 give ... +1