模板:External links

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

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

{{#ifeq:external links |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:模板:External links
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}
{{#if:||{{#ifeq:External links|External links|}}}}

When to use编辑

Add this to the top of the External links section whenever:

  • There are too many links for this article. (Most editors object to more than about eight or sometimes ten links, but the best number for a given article depends on the specific circumstances, and may range from zero to more than a dozen.)
  • One or more of the links present (regardless of number) are inappropriate for any reason.

If there are external links within the body of an article (which is almost always inappropriate), this tag should be placed at the top of the article instead.

Please consider fixing the problem yourself, rather than using this tag to ask someone else to do it. Don't forget to remove this template when the concerns appear to have been resolved.

Usage编辑

Use:

{{External links|date=11月 2024}} or
{{External links|section|date=11月 2024}} to apply to a single section

This template will categorize tagged articles into Category:Wikipedia external links cleanup and Category:Wikipedia spam cleanup.

If this is a perennial problem, consider using {{Prone to spam}} on the talk page or substituting {{No more links}} in the external links section.

TemplateData编辑

{{#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:External links}}.
|#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:External links}}.
|#default=[2]

}}}}

TemplateData for External links

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

| template = {{#if:{{#ifeq:Externa|sandbox|1}}{{#ifeq:External links|doc|1}}||

}} | other | #default = }} <templatedata> {

   "description": "Use this cleanup template to indicate that an article's use of external links may not follow Wikipedia's policies or guidelines.",

"format": "inline", "params": { "date": { "label": "Month and year", "description": "The month and year that the template was placed (in full). \"{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}\" inserts the current month and year automatically.", "type": "line", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "example": "January 2013", "suggested": true }, "1": { "label": "Affected area", "description": "Text to replace the word \"article\", usually \"section\".", "type": "line", "autovalue": "section", "example": "section" } }, "paramOrder": [ "date", "1" ] } </templatedata>

See also编辑

{{#if:{{#ifeq:Externa|sandbox|1}}{{#ifeq:External links|doc|1}}|| }}