恪別𡧲版𢯢𢷮𧵑「板㑄:Đầu đề/năm」
交面
Keepout2010 (討論 | 㨂𢵰) 造張𡤔𢭲內容「<!-- === NHẬP CÁI NÀY VÀO BẢN MẪU CON === 1 = năm không in = nếu 1, không in năm trong tựa đề (ví dụ, không năm) không thể…」 |
Keepout2010 (討論 | 㨂𢵰) n 𠊝替文本-「Thể loại:」成「體類:」 |
||
| 𣳔15: | 𣳔15: | ||
-->{{#ifeq:{{là số|{{{year|{{{năm|{{{1|}}}}}}}}} }}|1 | -->{{#ifeq:{{là số|{{{year|{{{năm|{{{1|}}}}}}}}} }}|1 | ||
|<!-- YES IT IS A NUMBER: perform as normal (nb: have to include years with digits below 4) -->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}{{#ifeq:{{{nocat|}}}|1||[[ | |<!-- YES IT IS A NUMBER: perform as normal (nb: have to include years with digits below 4) -->{{#ifeq:{{{noprint|}}}|1|| ({{{year|{{{1|}}}}}}) }}{{#ifeq:{{{nocat|}}}|1||[[體類:Tác phẩm {{{year|{{{năm|{{{1|}}}}}}}}}]]}} | ||
|<!-- NO IT IS NOT A NUMBER: more if statements and switches to select the right thing. | |<!-- NO IT IS NOT A NUMBER: more if statements and switches to select the right thing. | ||
First, add temporary tracking category (unless nocat is true) -->{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | First, add temporary tracking category (unless nocat is true) -->{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm có năm không phải số]]}}<!-- | ||
Now some checks to determine the type on non-numeric input: | Now some checks to determine the type on non-numeric input: | ||
-->{{#ifeq:{{{year|{{{năm|{{{1|}}}}}}}}|? | -->{{#ifeq:{{{year|{{{năm|{{{1|}}}}}}}}|? | ||
|{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| (không rõ) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | |{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| (không rõ) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm không rõ năm]]}} | ||
|<!--ELSE check if the input "unknown" | |<!--ELSE check if the input "unknown" | ||
-->{{#ifeq:{{{year|{{{năm|{{{1|}}}}}}}}}|không rõ | -->{{#ifeq:{{{year|{{{năm|{{{1|}}}}}}}}}|không rõ | ||
|{{#ifeq:{{{noprint|}}}|1|| (không rõ) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | |{{#ifeq:{{{noprint|}}}|1|| (không rõ) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm không rõ năm]]}} | ||
|<!--ELSE check if the input is a decade | |<!--ELSE check if the input is a decade | ||
-->{{#ifeq:{{là thập niên|{{{year|{{{năm|{{{1|}}}}}}}}}|function=3}}|1 | -->{{#ifeq:{{là thập niên|{{{year|{{{năm|{{{1|}}}}}}}}}|function=3}}|1 | ||
|{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | |{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm {{{year|{{{năm|{{{1|}}}}}}}}}]][[體類:Tác phẩm không chắc chắn năm xuất bản]]}} | ||
|<!--ELSE check if the input is a century | |<!--ELSE check if the input is a century | ||
-->{{#ifeq:{{là thế kỷ|{{{year|{{{năm|{{{1|}}}}}}}}}|function=3}}|1 | -->{{#ifeq:{{là thế kỷ|{{{year|{{{năm|{{{1|}}}}}}}}}|function=3}}|1 | ||
|{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | |{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm {{{year|{{{năm|{{{1|}}}}}}}}}]][[體類:Tác phẩm không chắc chắn năm xuất bản]]}} | ||
|<!--ELSE check if the input is Before Common Era (BCE) | |<!--ELSE check if the input is Before Common Era (BCE) | ||
-->{{#ifeq:{{là năm|{{{year|{{{năm|{{{1|}}}}}}}}}|function=3}}|1 | -->{{#ifeq:{{là năm|{{{year|{{{năm|{{{1|}}}}}}}}}|function=3}}|1 | ||
|{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | |{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm {{{year|{{{năm|{{{1|}}}}}}}}}]]}} | ||
|<!--ELSE check more complicated 2-part inputs | |<!--ELSE check more complicated 2-part inputs | ||
| 𣳔53: | 𣳔53: | ||
}} | }} | ||
|1 | |1 | ||
|{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| (khoảng {{#titleparts:{{{year|{{{năm|{{{1|}}}}}}}}}|1|2}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | |{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| (khoảng {{#titleparts:{{{year|{{{năm|{{{1|}}}}}}}}}|1|2}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm {{là năm|nhập={{#titleparts:{{{year|{{{1|}}}}}}|1|2}}|hàm=1}}]][[體類:Tác phẩm không chắc chắn năm xuất bản]]}}<!-- ie. use the corresponding decade-based category for sorting this work with a "circa"-style date --> | ||
|<!-- ELSE | |<!-- ELSE | ||
-->{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{#titleparts:{{{year|{{{năm|{{{1|}}}}}}}}}|1|1}}{{#titleparts:{{{year|{{{năm|{{{1|}}}}}}}}}|1|2}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | -->{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{#titleparts:{{{year|{{{năm|{{{1|}}}}}}}}}|1|1}}{{#titleparts:{{{year|{{{năm|{{{1|}}}}}}}}}|1|2}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm không nhận dạng được năm]][[體類:Tác phẩm không ghi năm]]}}<!-- a "circa"-style date with a non-year 2nd part get categorised as unrecognised and undated --> | ||
}}<!-- end ifeq isyear titleparts (2nd part) --> | }}<!-- end ifeq isyear titleparts (2nd part) --> | ||
| #default = <!-- ELSE | | #default = <!-- ELSE | ||
-->{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | -->{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm không nhận dạng được năm]][[體類:Tác phẩm không ghi năm]]}}<!-- if a multi-part date but no matches, categorise as unrecognised and undated --> | ||
}}<!-- end switch titleparts (1st part) --> | }}<!-- end switch titleparts (1st part) --> | ||
|<!-- ELSE | |<!-- ELSE | ||
-->{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | -->{{#ifeq:{{{noprint|{{{không in|}}}}}}|1|| ({{{year|{{{năm|{{{1|}}}}}}}}}) }}{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm không nhận dạng được năm]][[體類:Tác phẩm không ghi năm]]}}<!-- if the input is STILL not recognised, categorise it as unrecognised and undated --> | ||
}}<!-- end if titleparts --> | }}<!-- end if titleparts --> | ||
}}<!-- end ifeq year BCE --> | }}<!-- end ifeq year BCE --> | ||
| 𣳔72: | 𣳔72: | ||
}}<!-- end ifeq ? --> | }}<!-- end ifeq ? --> | ||
}}<!-- end ifeq isnumber --> | }}<!-- end ifeq isnumber --> | ||
|{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[ | |{{#ifeq:{{{nocat|{{{không thể loại|}}}}}}|1||[[體類:Tác phẩm không ghi năm]]}} | ||
}}<!-- if value in parameter {{{year|{{{năm|{{{1}}}}}}}}} --> | }}<!-- if value in parameter {{{year|{{{năm|{{{1}}}}}}}}} --> | ||
}}<!-- if SUBJECTSPACE --> | }}<!-- if SUBJECTSPACE --> | ||
<noinclude>[[ | <noinclude>[[體類:Bản mẫu đầu đề]]</noinclude> | ||