wikilife>Funandtrvl (update code) |
(没有差异)
|
2020年12月19日 (六) 05:49的版本
{{#ifeq:模板|模板||}}
This article is about an event or subject that may not be current but does not specify the time period. |
{{#ifeq:{{{small}}}|left|}}{{#ifeq:{{ safesubst:#if:
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Time-context}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Time-context}}
}}|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}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Time-context}}
}}|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 |}}}}}}
{{#ifeq:time-context |doc
|
{{#ifeq:show |show
|40px | This is a documentation subpage for 模板:Time-context. It contains usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:模板 |用户 |模板 template page |{{#if:模板 |模板 page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:模板:Time-context | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
40x40px | This template should not be substituted. |
Usage
For use in asking when an event happened.
- This template will categorise tagged articles into Category:Wikipedia articles needing context and Category:Wikipedia introduction cleanup.
- The text of the messagebox may be customized by specifying parameters 1= (instead of section or article) and 2= (instead of that may not be current but does not specify the time period.).
- This template is a self-reference.
Example
{{Time-context|section|that I thought ended in April 2010|date=11月 2024}}
gives:
This section is about an event or subject that I thought ended in April 2010. |
| {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Time-context}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Time-context}}
}}|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}}|1}} | {{ safesubst:#if:|{{{1}}}|模板:Time-context}}
}}|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
- {{Clarify timeframe}}
- {{When}}
{{#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.}}
{{#if:{{#ifeq:Time-co|sandbox|1}}{{#ifeq:Time-context|doc|1}}|| }}