Template talk:Property documentation

URL to purge the cache of all pages using this template

Click once on this link after changes affecting multiple elements, such as one of the template categorization schemes:

https://www.wikidata.org/w/api.php?action=purge&titles=Module:Property_documentation&forcerecursivelinkupdate=1

Use sparingly; this operation requires at least 15 minutes to complete.

"Items with the most statements" query edit

@Infovarius: The Items with the most statements of this property query actually returns the items with the most unique values for a property instead of the items with the most statements. For example, Spain national association football team (Q42267) has 280 ranking (P1352) statements but only 18 unique values. I suggest replacing wdt: with p: in the query's code to operate on statements not values. —Dexxor (talk) 09:06, 30 June 2022 (UTC)Reply

Suggestion edit

Hi,

Wouldn't it be a good idea to add a link to wdrc.toolforge.org ?

Cheers, VIGNERON en résidence (talk) 13:34, 20 September 2022 (UTC)Reply

Pinging top 10 editor of this template: @Docu, Laddo, Ricordisamoa, Zolo, MichaelSchoenitzer, Razr Nation:. What do you think? Cheers, VIGNERON (talk) 10:55, 17 December 2022 (UTC)Reply

Multiple format as a regular expression (P1793) edit

If the item has multiple format constraint (Q21502404) with qualifier format as a regular expression (P1793), then such expressions should be concatenated using a vertical bar "|". Currently they are concatenated without any separator character. Horcrux (talk) 09:47, 28 November 2023 (UTC)Reply

No, they shouldn’t. The vertical bar means alternation (disjunction), i.e. either of the two parts should match. Two constraints, however, mean that both parts should match (conjunction). There’s no expression for conjunction in regex, so the only solution is to list all regexes separately, for example using a wikitext list. P.S. It always helps to cite the page on which you ran into the problem instead of letting others go through your contributions and guess what’s in your mind.Tacsipacsi (talk) 13:19, 29 November 2023 (UTC)Reply
@Tacsipacsi: Actually nobody forced you to "guess what was in my mind", you could even have asked me for clarifications ;-). I thought a specific example was not necessary because I believe this issue was occurring in each instance of the described scenario (which was easily queryable). Thanks, however, for the correction about the vertical bar, I was clearly wrong.
Anyway, the problem seems to have been fixed, but I can't spot the exact change that was made. Do you? Did you fix it? --Horcrux (talk) 11:09, 2 February 2024 (UTC)Reply
@Horcrux: Actually nobody forced you to "guess what was in my mind", you could even have asked me for clarifications ;-) – then I’ve had to wait two months to even understand the problem. Remember that this is asynchronous communication, and every time someone asks back, considerable time passes by (likely at least a day, but as seen here, sometimes even months).
I thought a specific example was not necessary because I believe this issue was occurring in each instance of the described scenario (which was easily queryable). – a specific example always helps, to make sure that we’re speaking about the exact same thing. And, actually, I don’t think the query came into my mind (although I can’t say for sure two months later) – and, probably, it didn’t come into many other people’s minds either.
Anyway, the problem seems to have been fixed – I don’t think so. I still see https?://.+^(?!https?:\/\/schema\.gov\.it\/lodview\/controlled-vocabulary\/).* on Property talk:P2888, which is the concatenation of https?://.+ and ^(?!https?:\/\/schema\.gov\.it\/lodview\/controlled-vocabulary\/).*. —Tacsipacsi (talk) 09:49, 4 February 2024 (UTC)Reply
Oh, right I misread the "Allowed values" field. So let's wait for someone to fix this. --Horcrux (talk) 12:33, 4 February 2024 (UTC)Reply

Type constraint with relation instance or subclass of (Q30208840) edit

Please check out this thread. Horcrux (talk) 12:08, 2 February 2024 (UTC)Reply

Return to "Property documentation" page.