模板:Unreferenced section

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

{{#ifeq:{{#if:|left}}|left|}}

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

{{#ifeq:unreferenced section |doc

    | 

{{#ifeq:show |show

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

Usage编辑

{{Unreferenced section|date=11月 2024}}

Only use this template when the section completely lacks references. For sections with some but too few references, use {{Refimprove section}} instead.

This template puts articles in Category:Articles needing additional references or a dated subcategory thereof. If you leave the date off, a bot will add it later. To fill the date automatically, you can use {{subst:Unreferenced section}}.

Sample usage using optional "find" param:

{{Unreferenced section|find=search keyword(s)|date=11月 2024}}

Parameters编辑

  • |{{SAFESUBST:#if:date|date=}} : month and year the section was last checked for references; e.g., |{{SAFESUBST:#if:date|date=}}11月 2024
  • |{{SAFESUBST:#if:small|small=}} : Any value (typically "y", "yes", etc.) will make the template smaller. The template should normally be full-width when it applies to an entire section.
  • |{{SAFESUBST:#if:find|find=}} : any search string. This optional parameter adds a set of links produced by the {{find sources}} template to the output. If omitted, no "find sources" links are displayed.

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:Unreferenced section}}.
|#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:Unreferenced section}}.
|#default=[2]

}}}}

TemplateData for Unreferenced section

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

| template = {{#if:{{#ifeq:Unrefer|sandbox|1}}{{#ifeq:Unreferenced section|doc|1}}||

}} | other | #default = }} <templatedata> { "description": "Use this template only when a section completely lacks references. For sections with some but too few references, use 模板:Refimprove section instead.", "format": "inline", "params": { "date": { "label": "Month and year", "description": "The month and year the tag was placed, such as 'June 2013', but not 'jun13'", "type": "string", "required": false, "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "example": "June 2013", "suggested": true }, "small": { "label": "Small", "description": "Any value (typically \"y\", \"yes\", etc.) will make the template smaller.", "type": "string", "required": false, "autovalue": "y", "example": "y" }, "find": { "label": "Find", "description": "Search string for 'find sources' template. May be one or more words. Leave empty to suppress 'find sources' output.", "type": "string", "required": false, "example": "Austen's early life" } }, "paramOrder": [ "date", "small",

               "find"

] } </templatedata>

See also编辑

{{#if:{{#ifeq:Unrefer|sandbox|1}}{{#ifeq:Unreferenced section|doc|1}}|| }}