模板:Current sport-related

Ph9讨论 | 贡献2020年12月27日 (日) 14:48的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{#ifeq:{{{small}}}|left|}}

50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:current sport-related |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:模板:Current sport-related
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Guidelines编辑

Do not subst.

  • Note that every article on Wikipedia has a General disclaimer indicating that the article contents may not be accurate. As such, this template is redundant.
  • This template is for articles which involve an article about an evolving current sports-related event which is either changing rapidly or about which understanding is rapidly evolving. This is an advisory to readers that the article may be incomplete and subject to change.
  • As an advisory to editors, it may also be used in those occasions that many editors (perhaps a hundred or more) edit an article on the same day.
  • It is not intended to be used to mark an article that merely has recent news articles about the topic; if it were, thousands of articles would have this template.
  • Generally it is expected that this template and its closely related templates will appear on an article for perhaps a day or two, occasionally several days.
  • If you desire that an article be noticed as a topic about or related to a significant current event, see Wikipedia:How the Current events page works.
Check main (article) namespace links

Usage编辑

This template contains 4 optional image parameters:

  • mini, if set "mini=1", creates a smaller version of the template.
  • sport, automatically switches the image to be more specific to replace the football (soccer ball) image. Currently supports: American football, Australian rules football, basketball, baseball, cricket, cycling, golf, hockey, motorsports, netball, Olympics, rugby, tennis, volleyball, boxing, curling, squash, swimming, athletics, lacrosse
  • image, which can switch to an alternate image that is not supported.
  • event, which can change the event to something other than the default sports-related event text.

Images used编辑

Examples编辑

  • {{current sport-related|sport=tennis|2007 Australian Open}}
{{#ifeq:{{{small}}}|left|}}
  • {{current sport-related|sport=tennis|mini=1|2007 Australian Open}}
{{#ifeq:{{{small}}}|left|}}

  • An optional second link provision ({{{2}}}}) can be used to link from a generic page (New England Patriots [TEAM]) to last year and this year's articles as follows by defining the lead-in text parameter {{{second}}} and {{{2}}}} (which is always nested in square-brackets:

{{current sport-related

|sport=American football

|mini=1

|2007 New England Patriots season

|second=For the 2006 season

|2006 New England Patriots season

}}

{{#ifeq:{{{small}}}|left|}}

Parameters编辑

{{#if:|{{#switch:
|={{#ifeq:{{safesubst:#switch: {{{lc}}}
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Current sport-related}}.
|#default=[1]

}}|This is the {{#if:|TemplateData|TemplateData}} documentation for this template used by VisualEditor and other tools; {{#switch:

|={{#ifeq:{{safesubst:#switch: yes
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Current sport-related}}.
|#default=[2]

}}}}

TemplateData for Current sport-related

{{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:模板|模板
   | template
   | other
   }}
 }}

| template = {{#if:{{#ifeq:Current|sandbox|1}}{{#ifeq:Current sport-related|doc|1}}||

}} | other | #default = }} <templatedata> { "params": { "1": { "label": "Name of page", "description": "The title of the page describing the current event", "type": "wiki-page-name", "required": true }, "sport": { "label": "Sport", "description": "Name of the sport referred to", "type": "line" }, "mini": { "label": "Minimise template", "description": "Make small version of template (enter 1 to minify)", "type": "number" }, "image": { "label": "Image name", "description": "File name of an image not supported by the template", "type": "wiki-file-name" }, "2": { "label": "Second related event", "description": "Title of a page describing another page related to the current event", "type": "wiki-page-name" }, "second": { "label": "Introduction to second event", "description": "Words to introduce the second event", "type": "line" } }, "description": "Indicates that the article refers to a current sports event and provides a link to that event." } </templatedata>

See also编辑

{{#if:{{#ifeq:Current|sandbox|1}}{{#ifeq:Current sport-related|doc|1}}|| }}