Templat:Title year
Penampilan
Halaman ini punya templat digunakan pada anggaran 197,000 laman. Untuk mengelakkan gangguan besar-besaran dan muatan pelayan , sebarang perubahan sepatutnya diuji pada templat punya subhalaman kotak pasir atau laman uji kaji, atau pada sublaman pengguna anda. Perubahan yang sudah diuji boleh ditambah pada laman ini dalam suntingan tunggal. Pertimbang untuk membincang perubahan pada laman perbincangan sebelum melaksanakannya. |
Templat ini menggunakan Lua: |
Penggunaan
[sunting sumber]{{Title year|match|nomatch|page=}}
or
{{Title year|match=|nomatch=|page=}}
TemplateData
[sunting sumber]Berikut ialah pendokumenan TemplateData untuk templat ini yang digunakan oleh VisualEditor dan alatan-alatan lain
TemplateData untuk Title year
Extracts a 3- or 4-digit year from the current page title. All parameters are optional.
Parameter | Keterangan | Jenis | Status | |
---|---|---|---|---|
Match Instance | 1 match | If multiple 3- or 4-digit numbers are found, this specifies which match to return, where the first match is match= 1. If a negative number is specified then a match is returned counting from the last match. Hence match = -1 is the same as requesting the last match. Defaults to 1.
| Angka | pilihan |
No match text | 2 nomatch | If no 3- or 4-digit year is found, output the "nomatch" value. Defaults to blank. | Rentetan | pilihan |
Override page title | page | Specified a page title to use other than the current page. If left blank, the template will use the title of the current page
| Nama laman | pilihan |
Lihat juga
[sunting sumber]- Templat:Title monthname
- Templat:Title year range
- Templat:Title decade
- Templat:Title century
- Templat:Century name from decade or year
Pendokumenan di atas ditransklusikan daripada Templat:Title year/doc. (sunting | sejarah) Para penyunting boleh membuat percubaan di laman kotak pasir (cipta | cermin) dan kes ujian (cipta) templat ini. Sila letakkan kategori di sublaman /doc. Sublaman templat ini. |