Extension:Page Forms/Input types/Datepicker/ko
입력 유형 datepicker을 사용하면 사용자가 그래픽 달력을 팝업하고 날짜를 선택하도록 할 수 있습니다. 캘린더는 모두 스크립트를 통해 생성되며 페이지를 새로 고치지 않고도 탐색할 수 있습니다. 항상 연도/월/일 식으로 날짜를 반환하므로 속성 값으로 직접 사용할 수 있습니다. You can tweak the appearance of the calendar by changing or overriding the CSS rules of the jQuery library.
The datepicker is somewhat peculiar in that the first day of the week is not set in a configuration variable, but in an internationalized message. This way most wikis should automatically get the right setting depending on the language. If you want to change the default first day of week, instead of changing a configuration variable you need to edit the page MediaWiki:pf-datepicker-firstdayofweek
in your wiki.
예시
[edit]A field that uses a date picker with all parameters set to their default values:
{{{field|foo|input type=datepicker}}}
A field that uses a date picker with specific parameters:
{{{field|foo|input type=datepicker |week start=1 |highlight days of week=0 |disable days of week=6,0 |disable dates=2016/05/01,2016/12/25-2017/01/06 |date format=dd.mm.yy}}}
매개 변수
[edit]매개변수 | 의미/의견 |
---|---|
Standard | |
size | Specifies the width of the text entry. |
maxlength | Specifies the maximum allowed length of the text entry. |
mandatory | |
hidden | |
restricted | |
default | Format: yyyy/mm/dd |
values | The days must be given as comma-separated list of dates or date ranges. The format for days is yyyy/mm/dd, for date ranges use yyyy/mm/dd-yyyy/mm/dd. Spaces are permissable. |
values from category, values from namespace, values from concept, etc. | See parameter values |
class | |
Type-specific | |
date format | The date format string. It is only used for the input field. The date sent back with the form is always of format yyyy/mm/dd, so it can easily be used as value for a property of type Date.
There are two predefined standard date formats available:
To build your own format use the following keys:
|
week start | The first day of the week (0 - Sunday, 1 - Monday, ...) |
first date | the first date that can be chosen (in yyyy/mm/dd format) |
last date | the last date that can be chosen (in yyyy/mm/dd format) |
disable days of week | List of days that cannot be selected (e.g. weekend: 6, 0) |
highlight days of week | List of days that shall appear highlighted (e.g. weekend: 6, 0) |
disable dates | comma-separated list of disabled dates/date ranges (dates in yyyy/mm/dd format, ranges in yyyy/mm/dd-yyyy/mm/dd format) |
highlight dates | comma-separated list of dates/date ranges that shall appear highlighted (dates in yyyy/mm/dd format, ranges in yyyy/mm/dd-yyyy/mm/dd format) |
사용자 설정
[edit]You can change the general appearance and behavior of all the site's datepickers by placing settings in your LocalSettings.php file below the inclusion of Page Forms, e.g.
$wgPageFormsDatePickerSettings['DateFormat'] = 'LONG';
You can find the default settings and their descriptions in the file .../extensions/PageForms/includes/PF_DatePickerSettings.php
.