Template:Short description/lowercasecheck/doc: Difference between revisions

From HBDWiki
Jump to navigation Jump to search
(articles ony)
 
m (1 revision imported)
 
(No difference)

Latest revision as of 20:20, 22 January 2024

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Template:Short description/lowercasecheck
                  | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

This template is intended for use inside {{Short description}}. It checks to see if an article's short description starts with a lower-case letter. If it does, then it checks the first word against a whitelist of permitted lower-case words like "c.", "iMac", and "none". If the first word is not on the whitelist, {{#ifeq:{{#titleparts:Short description/lowercasecheck/doc|1}}|Stub types for deletion |Cat:Pages with lower-case short description | Category:Pages with lower-case short description{{#ifeq:{{safesubst:#switch: no

|no
|n
|f
|false
|off
|0        = 
|         = 
|¬        = 
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes

}}|yes| {{#ifexpr:0>={{#expr:0+1}}|}}( 0 ){{#ifexpr:0>={{#expr:0+1}}|}}}}}} is applied to the article on which the lower-case short description exists.

Usage

This template should not be used directly in articles. It should be transcluded only in {{Short description}}.