Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Hist: Difference between revisions

Template page
No edit summary
No edit summary
Line 4: Line 4:
{{#ifeq:{{#expr:{{{period|0}}}+0}}|{{{period|}}}
{{#ifeq:{{#expr:{{{period|0}}}+0}}|{{{period|}}}
| '''Historical''' – This article contains historical information related to the year [[:Category:{{{period}}}|<span title="Click to view related articles from this year">'''{{{period}}}''']].
| '''Historical''' – This article contains historical information related to the year [[:Category:{{{period}}}|<span title="Click to view related articles from this year">'''{{{period}}}''']].
| '''Historical''' – This article contains historical information related to the time period '''<span title="This may span multiple years">{{{period|an unspecified date}}}</span>'''.}}
| '''Historical''' – This article contains historical information related to the time period '''<span title="This may span multiple years">{{#if:{{{period|}}}|{{{period}}}|an unspecified date}}</span>'''.
}}
|}
|}
<includeonly>[[Category:History|{{PAGENAME}}]]</includeonly><noinclude>
 
<includeonly>{{#ifeq:{{NAMESPACE}}|Template||[[Category:History|{{PAGENAME}}]]}}</includeonly>
<noinclude>


==Usage==
==Usage==
<pre>
{{Hist|period=}}</pre>
==Specific Date Range==
<pre>
{{Hist|period=<br>}}</pre>
Use this template to identify the historical scope of an article:
Use this template to identify the historical scope of an article:


Line 20: Line 18:
* Unspecified: {{Hist}} → shows “an unspecified date”
* Unspecified: {{Hist}} → shows “an unspecified date”


==What this template does==
This template distinguishes between:
- A **numeric year** like 2380, which links to <code>Category:2380</code> (if available),
- A **date range** or text string, displayed as a “time period”,
- Or nothing, defaulting to “an unspecified date”.
Tooltips offer added clarity without cluttering the interface.


==Categorization==
==Categorization==
*[[:Category:History]]
Pages transcluding this template are added to [[:Category:History]], but the `Template:Hist` page itself is excluded.
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]
</noinclude>

Revision as of 16:38, 21 June 2025

Historical – This article contains historical information related to the time period an unspecified date.



Usage

Use this template to identify the historical scope of an article:

  • Single year:

Historical – This article contains historical information related to the year 2380.


  • Year range:

Historical – This article contains historical information related to the time period 2380–2390.


  • Unspecified:

Historical – This article contains historical information related to the time period an unspecified date.


→ shows “an unspecified date”

What this template does

This template distinguishes between: - A **numeric year** like 2380, which links to Category:2380 (if available), - A **date range** or text string, displayed as a “time period”, - Or nothing, defaulting to “an unspecified date”.

Tooltips offer added clarity without cluttering the interface.

Categorization

Pages transcluding this template are added to Category:History, but the `Template:Hist` page itself is excluded.