Template:Short description/lowercasecheck: Difference between revisions
m (Changed protection settings for "Template:Short description/lowercasecheck": 4 million transclusions, through Template:Short description (WP:HRT) ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))) |
m (1 revision imported) |
(No difference)
|
Latest revision as of 20:20, 22 January 2024
{{#ifeq:0|1 |{{#switch:String Module Error: Target string is empty |c. |gTLD |iMac |iOS |iOS, |iPad |iPhone |iTunes |macOS |none |pH |pH-dependent= |#default={{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template| | main | other }} }}
| main = [[Category:Pages with lower-case short description|Template:Trim]] | other | #default = }}Template:Testcases other}} | }}
Warning | This template is used on approximately 5,720,000 pages, or roughly 3125683% of all pages. To avoid major disruption and server load, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them. |
{{#ifeq:lowercasecheck |doc
|
{{#ifeq:show |show
|File:Edit-copy green.svg | Template:Strong for Template:Terminate sentence It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Template:Short description | [[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|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}}.
{{#if:{{#ifeq:lowerca|sandbox|1}}{{#ifeq:lowercasecheck|doc|1}}||
}}