Module talk:Excerpt

(Redirected from Template talk:Transclude selected excerpt/doc)
Latest comment: 8 days ago by Visviva in topic Italic title issue

New tool and grant ideas

edit

Hi guys! Tonight I had an idea for a new tool, called ExcerptHunter (inspired in CitationHunt). It's basically a semi-automatic tool for doing Template:Excerpt#Replacing summary section with excerpt of child article. I wrote a small demo to help explain. First add the following to your common.js:

mw.loader.load('//en.wikipedia.org/wiki/User:Sophivorus/ExcerptHunter.js?action=raw&ctype=text/javascript');

Then visit User:Sophivorus/ExcerptHunter and you should see the interface. Note that clicking Publish doesn't work yet, but I think the interface already conveys the idea. What do you think? The tool could grow in many ways. For example, by allowing users to limit articles to a category or topic of interest, by showing a live preview next to the wikitext, by working in other wikis, etc.

However, this new tool idea, along with some bugs and feature requests that have been piling up, and other ideas I have in mind (such as generalizing Module:Transcluder into a regex-based Module:WikitextParser) all add up to more than I'm able to handle in my volunteer time.

Therefore, I'm thinking on requesting a Rapid Grant to help me develop ExcerptHunter, WikitextParser, as well as any ideas you come up with and generally catching up and giving a boost to everything excerpt-related. What do you think? Would you support such a grant? Would you like more details, or request some specific work to be done? Looking forward to your reply! Kind regards, Sophivorus (talk) 04:28, 3 December 2023 (UTC)Reply

@Certes @Aidan9382 I should also mention that it would be a pleasure and an honor to to present a shared grant with you, in case you're interested!!! Sophivorus (talk) 13:40, 4 December 2023 (UTC)Reply
Please please don't do this in a widespread or semiautomated way, or add tools that make it easier for others to do. The excerpt template is one of the most harmful (reader- and especially author-hostile) changes to Wikipedia in recent years, and its significant proliferation will do dramatic damage to the encyclopedia project. –jacobolus (t) 19:18, 10 December 2023 (UTC)Reply
Well, I guess the silence and concern expressed imply my proposal wouldn't be welcome. Oh well... Sophivorus (talk) 16:54, 18 December 2023 (UTC)Reply
I completely agree with @Jacobolus's comment above. It usually does more harm than good. Clayoquot (talk | contribs) 18:44, 13 May 2024 (UTC)Reply

New Template doc section Incompatibilities

edit

I started a new template doc section, § Incompatibilities, to hold a description (or perhaps a bullet list?) of incompatibilities between Excerpt and other templates, modules, or functions. Please add entries to it that you know of. Thanks, Mathglot (talk) 01:27, 13 June 2024 (UTC)Reply

2 points

edit

first of all, in TemplateData, I believe the default for onlyfreefiles is supposed to be "yes", not "no". Secondly, can anyone help me understand why the template isn't working for me- here' my code: {{excerpt|Calvin Coolidge|only=files|hat=no}} it's not returning any files when the 'only' parameter is set, but it does return files without it. I see the code has support for searching infoboxes, maybe that's bugged? JoeJShmo💌 03:29, 24 July 2024 (UTC)Reply

The default for onlyfreefiles is indeed "yes", so I've corrected the templatedata there. The issue with only=files is that, since the template gets removed by Module:Transcluder, this module then doesn't see any infobox template to search for images in, so it doesn't find them. Not sure of a fix so far. Aidan9382 (talk) 06:57, 24 July 2024 (UTC)Reply
Got it, thanks. do you know another way to extract a specific file from an article? I came up with a longer findinpage+find function that works, save for the fact that I don't know how to use the article itself as the string in the 'find' function. JoeJShmo💌 10:07, 24 July 2024 (UTC)Reply

Template-protected edit request on 27 August 2024 don't excerpt shortcuts

edit
'[Aa]nchor',
+
'[Aa]nchor', '[Ss]hc?', '[Ss]hort', '[Ss]hortcut' '[Ss]horthand', '[Pp]olicy shortcut'

These additional templates are as problematic as {{anchor}}. Excerpting them misinforms because the shortcuts redirect to the original page. Also, {{shortcut}} has a built-in {{anchor}}. The use case is essays like [1]. 142.113.140.146 (talk) 04:54, 27 August 2024 (UTC)Reply

Unlike anchors, those elements are designed to be seen, looks like there is already an option to not show them as was done in the example above. — xaosflux Talk 12:44, 27 August 2024 (UTC)Reply
Yes, I had to set the manual option |templates=-policy shortcut. But Module:Excerpt/config is about defaults, and I claim that there is no use case that wants to show these elements while excerpting. 142.113.140.146 (talk) 15:47, 27 August 2024 (UTC)Reply

Transclude lead excerpt doesn't recognize imagemaps

edit

See User:Queen of Hearts/D#Passports; {{transclude lead excerpt}} fails to show the lead of User:Queen of Hearts/Drafts/List of passports, which begins with an WP:Imagemap. Thanks, Queen of Hearts (talk) 05:25, 7 September 2024 (UTC)Reply

Italic title issue

edit

The blacklist at Module:Excerpt/config currently does not filter out {{Italic}}, which redirects to {{Italic title}}. This led to Criminal law in the United States being italicized because it excerpted Res gestae which (until just now) transcluded {{Italic}}. -- Visviva (talk) 19:28, 15 September 2024 (UTC)Reply