Template:Historical

From KitwarePublic
Revision as of 19:15, 20 March 2018 by Matt.mccormick (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search
Template documentation[view] [edit] [history] [purge]

{{#ifeq:historical |doc

    | 

{{#ifeq:show |show

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

Usage

  • To include a shortcut, pass a parameter: {{{{#ifeq:historical|historical|historical|Historical}}{{#if:WP:SHORT||WP:SHORT|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}.
  • To provide a last updated date, use the named parameter "last", i.e. {{{{#ifeq:historical|historical|historical|Historical}}{{#if:last=1 January 2000||last=1 January 2000|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}
  • To provide a briefer form of the text, use {{{{#ifeq:historical|historical|historical|Historical}}{{#if:brief=yes||brief=yes|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}
  • For a former policy, use {{{{#ifeq:historical|historical|historical|Historical}}{{#if:type=policy||type=policy|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}
  • For a former guideline, use {{{{#ifeq:historical|historical|historical|Historical}}{{#if:type=guideline||type=guideline|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}
  • For a page closed down by explicit community consensus, use {{{{#ifeq:historical|historical|historical|Historical}}{{#if:type=woundup||type=woundup|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}
  • To provide an explanatory comment, use {{{{#ifeq:historical|historical|historical|Historical}}{{#if:comment=explanatory text here||comment=explanatory text here|}}{{#if:||{{{3}}}|}}{{#if:||{{{4}}}|}}{{#if:||{{{5}}}|}}{{#if:||{{{6}}}|}}{{#if:||{{{7}}}|}}{{#if:||{{{8}}}|}}}}
  • Pages using this template will be placed into Category:Inactive project pages unless the parameter category=no is given: {{{{#if:Historical|Historical| tlc|...}}{{#ifeq:x|| |{{{2}}} | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}} (user and user talk pages are not categorized).
  • For related Wikipedia header templates, see Template messages/Wikipedia namespace.
  • Please note that this template is not appropriate for portals, which exist for the purpose of informing readers on a given topic and, as such, can never truly be "inactive".
  • It is also not appropriate for inactive WikiProjects which are dealt with according to the WikiProject Council/Guide; these should be tagged with {{{{#if:WikiProject status

| WikiProject status | tlp|... }}{{#ifeq:Defunct|Defunct| |Defunct }}{{#ifeq:x|| |{{{3}}} }}{{#ifeq:x|| |{{{4}}} }}{{#ifeq:x|| |{{{5}}} }}{{#ifeq:x|| |{{{6}}} }}{{#ifeq:x|| |{{{7}}} }}{{#ifeq:x|| |{{{8}}} }}{{#ifeq:x|| |{{{9}}} }}}} or {{{{#if:WikiProject status | WikiProject status | tlp|... }}{{#ifeq:Inactive|Inactive| |Inactive }}{{#ifeq:x|| |{{{3}}} }}{{#ifeq:x|| |{{{4}}} }}{{#ifeq:x|| |{{{5}}} }}{{#ifeq:x|| |{{{6}}} }}{{#ifeq:x|| |{{{7}}} }}{{#ifeq:x|| |{{{8}}} }}{{#ifeq:x|| |{{{9}}} }}}}.

Adding shortcuts

  • In addition, a shortcut can be added to this template by using the following syntax:
{{{{#if:Historical|Historical| tlc|...}}{{#ifeq:SHORTCUT|SHORTCUT| |SHORTCUT | }}{{#ifeq:x|| |{{{3}}} | }}{{#ifeq:x|| |{{{4}}} | }}{{#ifeq:x|| |{{{5}}} | }}{{#ifeq:x|| |{{{6}}} | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}
  • Up to 5 shortcuts can be added to this template in this fashion:
{{{{#if:Historical|Historical| tlc|...}}{{#ifeq:SHORTCUT1|SHORTCUT1| |SHORTCUT1 | }}{{#ifeq:SHORTCUT2|SHORTCUT2| |SHORTCUT2 | }}{{#ifeq:SHORTCUT3|SHORTCUT3| |SHORTCUT3 | }}{{#ifeq:SHORTCUT4|SHORTCUT4| |SHORTCUT4 | }}{{#ifeq:SHORTCUT5|SHORTCUT5| |SHORTCUT5 | }}{{#ifeq:x|| |{{{7}}} | }}{{#ifeq:x|| |{{{8}}} | }}{{#ifeq:x|| |{{{9}}} | }}}}

See also