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

文出維基大典
刪去的內容 新增的內容
WikiCantona
Hillgentleman
***As I said, use <nowiki><includeonly>subst:</includeonly>#ifexpr, <includeonly>subst:</includeonly>switch: , <includeonly>subst:</includeonly>#expr:</nowiki>. ~~~~
第一二行: 第一二行:
* <nowiki>[[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=廿四|}}世紀]]</nowiki>
* <nowiki>[[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=廿四|}}世紀]]</nowiki>
** add <nowiki><includeonly></nowiki>solved some problems and still let part of code shown.
** add <nowiki><includeonly></nowiki>solved some problems and still let part of code shown.
***As I said, use <nowiki><includeonly>subst:</includeonly>#ifexpr, <includeonly>subst:</includeonly>switch: , <includeonly>subst:</includeonly>#expr:</nowiki>. -- :-) [[User:Hillgentleman|Hillgentleman]] | [[User talk:Hillgentleman|書]] , 二〇〇七年〇九月二三日(星期日), 格林尼治標準 二三時一五分一〇秒 二〇〇七年九月二三日 (日) 二三時一五分 (UTC)


===Alternative direction===
===Alternative direction===

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

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.