请输入您要查询的百科知识:

 

词条 Module:Team appearances list/doc
释义

  1. Modules

  2. Errors

{{Module rating|r}}

This module implements {{tl|Team appearances list}}. Check there for usage documentation.

Modules

{{#invoke:convert/tester|compare|team}}

Team appearances list is invoked by {{tl|Team appearances list}} to display a horizontal list showing the years a specified team participated in a specified competition. Each year of attendance is wikilinked to a corresponding article, while years the team did not compete (absences) are shown as disabled.

The names of the competition and team must be specified. Optionally, information for a competition can be defined in Team appearances list/data, and team information can be included:

  • begin_year – The first year to be shown.
  • end_year – The last year to be shown.
  • Years the team did not attend the competition.

If begin_year or end_year are defined for a team, they set default values that can be overridden with parameters in the template.

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 is used for testing. 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:

  • {{tl|Team appearances list/sandbox}} – Uses the sandbox main and data modules.
  • Team appearances list/show – Results for all competition/team pairs defined in the sandbox data module.

Errors

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

Always:    competition   required : non-empty string    team          required : non-empty stringIf 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

An invalid parameter causes an error to be displayed and places the page in the hidden category Category:Pages with script errors.

{{#ifeq:{{SUBPAGENAME}}|sandbox||

}}

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/9/20 12:37:16