Talk:Templates
Kery template and ReplaceText
Now we have Lotte's volume online and @Clemens at the speed of lights provided a template, I'd love to see links from the descriptions to the book. Using regular expressions with the Special Page "Replace Text" should do the trick. Specifically, it should be easy to auto-replace any occurence of
{{Author|Kéry}}, Collections p. n
with {{Author|Kéry}}, Collections p. {{Kery|n}}
.
In practice, one has to reckon with some variation:
{{Author|Kéry}}, Collections p. n
{{Author|Kéry}}, Canonical collections, p. n
{{Author|Kéry}}, Collections, p. n
{{Author|Kéry}}, Collections pp. n
All these expressions should be replaced by "{{Author|Kéry}}, Collections p. {{Kery|n}}
. There also will be page ranges ("pp. 123-134"), but linking the first page of any page range is enough.
@Sophie Stark, can you have a look? Thanks in advance, Christof Rolker (talk) 20:37, 14 November 2023 (CET)
- Done. But I feel like the pinging-function doesn't properly work. I only saw this comment by chance, I didn't get any sort of mail despite having confirmed my mail-address. SStark (talk) 16:09, 15 November 2023 (CET)
- Thanks so much. Oddly, "Recent Changes" reports only some of the changes, and does not report the use of ReplaceText; but that's not important. Also thanks for feedback on pinging, we don't really need it anyhow. (I mainly used it out of habit.) Christof Rolker (talk) 16:21, 15 November 2023 (CET)
- Note to self: For two-digit page numbers the ReplaecText command looks like this "\{\{Author\|Kéry\}\}, Canonical Collections[,|] pp\. ([0-9][0-9])–" to "Kéry, Collections p. {{Kery|$1}". No need to announce changes via Special:RecentChanges but then again, it does no harm. Christof Rolker (talk) 17:31, 15 November 2023 (CET)
- Yes and no. There were a number of decisions I made during the replacement process because I feel like the algorithm behind the evaluation of the regex doesn't work properly (it should be greedy but it isn't). If you want, I can properly document them somewhere (like on my user page). SStark (talk) 17:37, 15 November 2023 (CET)
- thanks but no, too special to be worth a proper documentation. we'll need it less than once a year. Christof Rolker (talk) 12:25, 16 November 2023 (CET)
- Yes and no. There were a number of decisions I made during the replacement process because I feel like the algorithm behind the evaluation of the regex doesn't work properly (it should be greedy but it isn't). If you want, I can properly document them somewhere (like on my user page). SStark (talk) 17:37, 15 November 2023 (CET)
layout issues
There seem to be odd effects of the template on the layout, see Collectio Italica. nothing urgent, but ugly. Christof Rolker (talk) 15:38, 29 April 2024 (CEST)
- Still an issue, see Liber decretorum Dionysii for two more examples Christof Rolker (talk) 17:15, 25 July 2024 (CEST)
- round brackets near the template seem to be part of the progblem Christof Rolker (talk) 17:16, 25 July 2024 (CEST)
- Most likely, yes. But the main issue was that in the template definitions the <code>noinclude</code>-Tag was added after a couple of spaces and newlines. Everything before the <code>noinclude</code> will be included in the template and thus create a new paragraph. I have removed these newlines in some of the templates. Let's see how this changes things. Clemens Radl (talk) 18:01, 25 July 2024 (CEST)
- Thanks, but really don't waste time on it if the problem is not so easy to solve Christof Rolker (talk) 18:08, 25 July 2024 (CEST)
- Perfect! Christof Rolker (talk) 21:03, 25 July 2024 (CEST)
- Most likely, yes. But the main issue was that in the template definitions the <code>noinclude</code>-Tag was added after a couple of spaces and newlines. Everything before the <code>noinclude</code> will be included in the template and thus create a new paragraph. I have removed these newlines in some of the templates. Let's see how this changes things. Clemens Radl (talk) 18:01, 25 July 2024 (CEST)
- round brackets near the template seem to be part of the progblem Christof Rolker (talk) 17:16, 25 July 2024 (CEST)
New template "libraries", change to infoboxes
Thanks to @Sophie Stark we will soon make a change to the infobox "manuscript": all information on the library will be replaced by a link to a separate page on that library. These pages in turn will have infoboxes (for which we need a new template) with information such as city, official name, short name, ISIL, and other identifiers. It may take some time before we actually see this, so there is enough time to discuss any user wishes. atb Christof Rolker (talk) 12:47, 24 October 2024 (CEST)
- Here's a test case what a basic library article could look like: Admont, Stiftsbibliothek. Christof Rolker (talk) 12:48, 24 October 2024 (CEST)