모듈:Team appearances list/설명문서

위키백과, 우리 모두의 백과사전.

이 모듈은 {{선수단 참가 목록}}을 뒷받침하기 위한 것입니다. 틀 사용법은 틀 문서에 가셔서 설명란을 확인해주세요.

모듈[편집]

모듈:Team appearances list은 특정 국가 선수단의 특정 대회 참가 연도를 일렬로 표시하기 위해 만들어진 {{선수단 참가 목록}}의 작동을 위한 모듈입니다. 각 연도마다 해당 문서로 연결되는 링크가 걸려 있으며, 불참한 대회는 링크가 걸리지 않고 회색으로 표시됩니다.

사용 시 대회 명칭과 국가명을 반드시 밝혀 적어야 합니다. 다만 모듈:Team appearances list/data 문서 적혀있는 대회 정보를 활용할 수 있고, 추가로 해당 국가의 참가여부에 관한 정보를 쓸 수 있습니다.

  • begin_year - 최초 참가 연도부터 표시됩니다.
  • end_year - 마지막 참가 연도까지만 표시됩니다.
  • (연도) - 대회에 불참했던 연도들을 표시할 수 있습니다.

begin_yearend_year가 쓰일 경우, 틀 내의 기본값에 이들 변수값이 적용되어 연도의 범위가 바뀔 수 있습니다.

If a team is defined for a particular competition, any absent years in the templace call are ignored (instead, the absences defined in the data module are used).

모듈:Team appearances list/show은 모듈 테스트에 쓰입니다. It shows the results for all competition/team pairs defined in the data module. The results are displayed at 모듈토론:Team appearances list/show.

Changes should be performed in the sandbox modules, using the following for testing:

오류[편집]

Parameters provided by the template are validated using the following rules.

Always:
    competition   required : non-empty string
    team          required : non-empty string

If competition is defined in data module:
    begin_year    optional : number from 1800 to 2100 inclusive
    end_year      optional : as above (and end_year >= begin_year)
else:
    begin_year    required : as above
    end_year      optional : as above
    interval      required : number from 1 to 30 inclusive

유효하지 않은 parameter는 오류를 보이게 하고 문서를 숨은 분류인 분류:스크립트 오류가 포함된 문서에 배치시킵니다.