Jump to content

Template:Wn/si/මූලාශ්‍රය/uc?

From Wikimedia Incubator

This template checks a string to determine whether it is problematically all upper-case.

භාවිතය

[edit source]

Pass as first unnamed parameter the string to be checked. Optionally, pass as second unnamed parameter a string officially designated as acceptable. Result is non-blank if a problem is detected, blank if no problem is detected.

උදාහරණ

[edit source]
code result comment
{{Wn/si/|Foobar}} {{Template:OBJECTPAGENAME|Foobar}} string isn't all upper-case
{{Wn/si/|鄭治祖}} {{Template:OBJECTPAGENAME|鄭治祖}} string is both upper- and lower-case
{{Wn/si/|FOOBAR|FOOBAR}} {{Template:OBJECTPAGENAME|FOOBAR|FOOBAR}} string is officially designated as acceptable
{{Wn/si/|FOOBAR}} {{Template:OBJECTPAGENAME|FOOBAR}} string is problematic

Internals

[edit source]

This template is meant to apply to the author parameter to {{Wn/si/source}}, to determine whether it ought to be delegated to {{Wn/si/source/ucauthor}} for special attention. Any of three conditions mean there's no problem: if the string is altered by shifting it to all-upper case; if the string is not altered by shifting it to all-lower-case; or if the string is identical to the second unnamed parameter, which is meant to have been manually checked and determined to be appropriate.
https://incubator.wikimedia.org/wiki/Template:Wn/si/%E0%B6%B8%E0%B7%96%E0%B6%BD%E0%B7%8F%E0%B7%81%E0%B7%8A%E2%80%8D%E0%B6%BB%E0%B6%BA/uc%3F
incubator.wikimedia.org
CC-MAIN-2024-38
56478
application/http; msgtype=response
sha1:5ZVZC7QA2HZQJ55LSIIF5XW76B5EIXPH
<urn:uuid:7359c926-28ea-4fee-862c-60531d3e9be3>
2024-09-12T03:45:32Z
208.80.154.224
text/html
sha1:2WCSRIJPGOUMIU4NHFSKOAD5NINDWRTH
<urn:uuid:f5be234d-d567-45db-8d08-441c75653343>
https://incubator.wikimedia.org/wiki/Template:Wn/si/%E0%B6%B8%E0%B7%96%E0%B6%BD%E0%B7%8F%E0%B7%81%E0%B7%8A%E2%80%8D%E0%B6%BB%E0%B6%BA/uc%3F
response
<urn:uuid:a0c16716-b438-4ec5-9bf1-268958dc927a>
isPartOf: CC-MAIN-2024-38
publisher: Common Crawl
description: Wide crawl of the web for September 2024
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-37
software: Apache Nutch 1.20 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.5-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: https://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/