wikilife>Vanisaac 小 (→See also:clean up per WP:CAT#T and WP:AWBREQ add template:Sandbox other) |
(没有差异)
|
2020年4月27日 (一) 10:58的版本
{{#ifeq:doc |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:
{{#ifeq:模板|{{subst:NAMESPACE}}||}}
This section is about an event or subject that I thought ended in April 2010. |
{{#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
- {{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.}}