模板:Context/doc

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

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

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

{{#if:||{{#ifeq:Context/doc|Context|}}}}

Usage

Place {{Context|date=11月 2024}} at the top of an article of which you believe does not identify itself sufficiently to readers unfamiliar with its subject.

The word "article" may be replaced with "section", "list", etc. For example: {{Context|section|date=11月 2024}} will produce

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

While the |{{SAFESUBST:#if:reason|reason=}} parameter can be added to almost any template to provide an in-wikitext rationale for the template (e.g., a sentence on what the concerns are) that is usually visible only to editors, the |{{SAFESUBST:#if:details|details=}} parameter can be used to make the template display a (short!) indication of the contextual information that is needed. E.g., using |{{SAFESUBST:#if:details|details=}}date range this organization was operating changes "... by providing more context for the reader." to "... by providing more context for the reader, especially: date range this organization was operating."

TemplateData

<templatedata> { "params": { "1": { "label": "What does this banner apply to?", "description": "section, list, etc.", "example": "section", "type": "string", "default": "article", "suggested": true }, "details": { "label": "Additional detail", "description": "contextual specifics that are needed", "example": "date range this organization was in operation", "type": "string", "default": "[blank]", "suggested": true }, "date": { "label": "Month and year", "description": "The month and year that this template was placed", "example": "April 2017", "type": "date", "suggested": true,

                       "autovalue": "{{SUBST:CURRENTMONTHNAME}} {{SUBST:CURRENTYEAR}}"

} }, "description": "Banner for the top of an article (or section) of which you believe does not identify the context sufficiently to readers unfamiliar with the subject.", "format": "inline" } </templatedata>

Notes

Redirects

See also

  • {{db-context}} – when an article has so insufficient context that it is impossible to identify the subject, it may be eligible for speedy deletion under WP:A1
  • {{Context inline}} – inline template for a general context problem
  • {{Non sequitur}} – inline template for namedropping the relevance of which is unclear
  • {{Importance section}} – inline template for material of questionable relevance
  • {{Technical}} – message box template for section or article that is written in a too-technical manner

{{#ifeq:模板|Template|* This template contains a self-reference (it refers to Wikipedia in its contents).

  • This template should not be substituted. Bots rely on the transcluded form for dating and categorisation.}}