Lompat ke isi

Templat:Header artikel tahun: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
k proses
k Bot: Penggantian teks otomatis (-Perancis +Prancis)
 
(14 revisi perantara oleh 3 pengguna tidak ditampilkan)
Baris 1: Baris 1:
<includeonly>'''{{{1|{{CURRENTYEAR}}}}}''' {{#ifeq:{{#expr:{{{1|{{CURRENTYEAR}}}}}>=0}}|1|([[Angka Romawi|{{Roman|{{{1|{{CURRENTYEAR}}}}}|Angka romawi di luar jangkauan}}]])|}}
<noinclude> {{esoteric}}
{{#ifeq: {{#expr:{{{1|{{CURRENTYEAR}}}}}>1582}}|0

Ini catatan dan petunjuk yang hanya akan muncul ketika orang membaca template secara langsung, bila digunakan Anda tidak akan melihat tulisan ini.

Catatan: This template is good enough to use on years after 1929. If you are planning to work on it to fix the issue of Julian display for years 1600 through 1929, it would be nice if you contact me, I might be able to help. [[Pengguna:Baloo Official|<font face="segoe script">Baloo</font>]] • <span style="background-color: Blackl; background-image: -moz-linear-gradient({{#switch:|vertical=top|horizontal=left|#default=left}}, Blackl{{#if:|, {{{4}}} 50%}}, {{{2}}}); background-image: -ms-linear-gradient({{#switch:|vertical=top|horizontal=left|#default=left}}, Blackl{{#if:|, {{{4}}} 50%}}, {{{2}}}); background-image: -o-linear-gradient({{#switch:|vertical=top|horizontal=left|#default=left}}, Blackl{{#if:|, {{{4}}} 50%}}, {{{2}}}); background-image: -webkit-gradient(linear, {{#switch:{{{3}}}|right|bottom=right bottom|#default=left top}}, {{#switch:{{{3}}}|right|top|vertical=left bottom|#default=right top}}, from(Blackl), to({{{2}}}){{#if:|, color-stop(50%, {{{4}}})}}); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; padding:3px; font-weight:bold;">[[Pembicaraan pengguna:Baloo Official|<font face="segoe script">Ngomong</font>]]</span> 28 September 2015 04.58 (UTC)

==Petunjuk==
The purpose of this template is to create a standard, uniform calendar description as the first sentence for all years, at least from 1600 on, with links to the appropriate terms. Currently, it works fine for 1930 and later; the Julian calculations need a bit of work. It's designed to say the year as either being "was" the year if it is before this year, "is" this year if it's the current year, and "will be" the year if it's after this year, e.g. in 2012, years 2011 and before would say "2011 was a common year starting on..." "2012 is the current year, and is a leap year starting on..." "2013 will be a common year starting on..."

Yes, it does know that only century years which are divisible by 400 are leap years.

Suppose that y is the current year. Then for year y+1, it will say "will be a", then in year y+1, it will say "is the current year, and is a", and finally in year y+2, it will say "was a".

==Penggunaan==
'''<nowiki>{{</nowiki>Header artikel tahun|tahun}}''' as the first item in the text of a year, e.g.
'''<nowiki>{{</nowiki>Header artikel tahun|2092}}''' for the article for that year. Note that inserting the year directly as opposed to using <nowiki>{{PAGENAME}}</nowiki> was intentional; I needed to make calculations on the value passed and I wanted to make sure I could do that, plus I couldn't test the template if I used the PAGENAME parameter.
==Catatan untuk editor==
With very limited exceptions, because of bugs in PHP, this will probably not work before 1600. It currently does work perfectly for years after 1929 (1930 and later stopped using Julian Calendars; the Julian calculations need a bit more work). Years before 1582 show Julian and prospective Gregorian. 1582 shows Julian plus warning and prospective Gregorian, 1583 and later, Gregorian with Julian and number of days off for years below 1930, Gregorian only after 1929.
</noinclude><includeonly>'''{{{1}}} ([[Angka Romawi|{{#time:xrY|{{{1}}}-01-01}}]])'''
{{#ifeq: {{#expr:{{{1}}}>1582}}|0
|<!-- Years On or Before 1582 -->
|<!-- Years On or Before 1582 -->
{{#ifeq: {{#expr:{{{1}}}=1582}}|0
{{#ifeq: {{#expr:{{{1|{{CURRENTYEAR}}}}}=1582}}|0
|<!-- Years Before 1582 -->Before 1582, with Julian {{Header artikel tahun Julian day|{{{1}}}}} days difference.
|<!-- Years Before 1582 -->adalah {{Header artikel tahun/zc|{{{1|{{CURRENTYEAR}}}}}}} Mulai awal tahun {{Header artikel tahun/Julian day|{{{1|{{CURRENTYEAR}}}}}}}, yang merupakan kalender dominan pada saat itu.
|<!-- In 1582 -->
|<!-- In 1582 -->
<!--Text for the year 1582 -->On 1582, with Julian {{Header artikel tahun Julian day|{{{1}}}}} days difference. However, this year also saw the beginning of the '''''Gregorian Calendar switch''''', when the [[Papal bull]] known as ''[[Inter gravissimas]]'' introduced the [[Gregorian calendar]], adopted by Spain, Portugal, the [[Polish–Lithuanian Commonwealth]] and most of present-day Italy from the start. In these countries, the year continued as normal until Thursday, [[October 4]]. However, the next day became Friday, [[October 15]] (like a [[common year starting on Friday]]), in those countries (France followed two months later, letting Sunday, [[December 9]] be followed by Monday, [[December 20]]). Other countries continued using the Julian calendar, switching calendars in later years, and the complete conversion of the Gregorian calendar was not entirely done until [[1929]].}}|<!-- Years On or After 1582 -->
<!--Text for the year 1582 -->adalah {{Header artikel tahun/zc|1582}} Dimulai dari {{Header artikel tahun/Julian day|{{{1|{{CURRENTYEAR}}}}}}}, yang sebelumnya merupakan kalender yang diterima secara umum di negara-negara Kristen. Namun, tahun ini memperlihatkan permulaan dari '''''pergantian Kalender Gregorian''''', ketika [[Papal bull]] dikenal sebagai ''[[Inter gravissimas]]'' memperkenalkan [[kalender Gregorian]], yang diadopsi oleh Spanyol, Portugal, [[Persemakmuran Polandia-Lituania]] dan sebagian besar Italia pada masa awal hingga kini. Di negara-negara ini, tahun terus berjalan seperti biasa sampai hari Kamis, [[4 Oktober]]. Namun, berikutnya menjadi hari Jumat, [[15 Oktober]] (seperti [[tahun biasa yang diawali hari Jumat]]), di negara-negara itu (Prancis mulai mengikuti dua bulan kemudian, membiarkan hari Minggu, [[9 Desember]] diikuti oleh hari Senin, [[20 Desember]]). Negara-negara lain terus menggunakan kalender Julian selama beberapa dekade atau, dalam beberapa kasus, berabad-abad.}}|<!-- Years On or After 1582 -->
{{#ifeq: {{#expr:{{{1}}}>1929}}|0
{{#ifeq: {{#expr:{{{1|{{CURRENTYEAR}}}}}>1923}}|0
|<!-- Years 1583 through 1929 -->
|<!-- Years 1583 through 1923 -->
{{#ifeq: {{#expr:{{{1}}}=1929}}|0
{{#ifeq: {{#expr:{{{1|{{CURRENTYEAR}}}}}=1923}}|0
|<!-- Before 1929 -->was {{Header_artikel_tahun_zc|{{{1}}}}}. Note that the Julian day for {{Header artikel tahun Julian day|{{{1}}}}} calendar days difference, which continued to be used from 1582 until the complete conversion of the Gregorian calendar was entirely done in [[1929]].
|<!-- Before 1923 -->adalah {{Header artikel tahun/zc|{{{1|{{CURRENTYEAR}}}}}}} Mulai awal tahun {{Header artikel tahun/Julian day|{{{1|{{CURRENTYEAR}}}}}}}, yang tetap digunakan di sejumlah negara tertentu sampai tahun 1923.
|<!-- 1929 was a [[Common year starting on Tuesday]] -->was {{Header_artikel_tahun_zc|1929}}. Note that the Julian day for {{Header artikel tahun Julian day|{{{1}}}}} days difference, and was the last year in which the Julian calendar continued to be used when complete conversion of the Gregorian calendar was entirely done.
|<!-- 1923 was a [[Common year starting on Monday]] -->adalah {{Header artikel tahun/zc|1923}} Dimulai dari {{Header artikel tahun/Julian day|{{{1|{{CURRENTYEAR}}}}}}}, yang diturunkan pada bulan Februari untuk digunakan hanya oleh gereja-gereja setelah [[Yunani]] mengadopsi kalender Gregorian.}}
|<!-- 1924 and later-->
}}
<!-- Test for past vs present vs future -->{{#ifeq: {{#expr:{{#time:Y}} < {{{1|{{CURRENTYEAR}}}}}}} | 0 | {{#ifeq: {{#expr:{{#time:Y}} > {{{1|{{CURRENTYEAR}}}}}}} | 0 | adalah tahun saat ini, dan | merupakan }} | akan menjadi }} {{Header artikel tahun/zc|{{{1|{{CURRENTYEAR}}}}}}}
|<!-- 1930 and later-->
}}}}</includeonly><noinclude>
<!-- Test for past vs present vs future -->{{#ifeq: {{#expr:{{#time:Y}} < {{{1}}}}} | 0 | {{#ifeq: {{#expr:{{#time:Y}} > {{{1}}}}} | 0 | is the current year, and is | was }} | will be }} {{Header_artikel_tahun_zc|{{{1}}}}}.
{{Documentation}}
}}}}</includeonly>
</noinclude>

Revisi terkini sejak 6 Februari 2019 02.52