模板:Time-context/doc

< 模板:Time-context
wikilife>Vanisaac2020年4月27日 (一) 10:58的版本 →‎See alsoclean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

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

Usage

For use in asking when an event happened.

Example

{{Time-context|section|that I thought ended in April 2010|date=11月 2024}} gives:

{{#ifeq:模板|{{subst:NAMESPACE}}||}}

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

 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Time-context/doc}}|1}}
 | {{ safesubst:#if:|{{{1}}}|模板:Time-context/doc}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}

|{{#if:
 |{{#ifexist:Category:Wikipedia articles needing context from 
   ||}}
 |[[Category:{{#if:
              ||Wikipedia articles needing context}}]]}}{{#if:All Wikipedia articles needing context
     |}}}}}}{{#ifeq:{{ safesubst:#if:  
 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Time-context/doc}}|1}}
 | {{ safesubst:#if:|{{{1}}}|模板:Time-context/doc}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:yes|yes|0|1}}

|{{#if:
 |{{#ifexist:Category:Wikipedia introduction cleanup from 
   ||}}
 |[[Category:{{#if:
              ||Wikipedia introduction cleanup}}]]}}{{#if:All pages needing cleanup
     |}}}}}}

See also

{{#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.}}