Content deleted Content added
Cobaltcigs (talk | contribs) ok |
→The following seemed too off-topic for the CFD discussion: there's more you can do with JS |
||
Line 57:
</source>
As designed I don't see any robust way to identify and unhide only the description that, based on whatever internal noreplace-logic, is ultimately used. Perhaps the name <code>noreplace</code> could be appended to the span's list of classes, when applicable. Then one could at least use javascript to examine the spans' classes and decide by elimination which one to unhide. ―[[special:contributions/cobaltcigs|cobaltcigs]] 19:50, 4 October 2020 (UTC)
:
: If you're going to use JavaScript then you can access the API and read the value of "Local description" from the "Page information" for each article (there's a link to it in the left margin box called 'tools'). That's where the backend database stores the overriding value supplied by the {{tl|short description}} via the <nowiki>{{SHORTDESC:}}</nowiki> magic word. If you want to understand better about how the 'noreplace' parameter works, you should check out [[phab:T193857]] where we thrashed out the logic of it. --[[User:RexxS|RexxS]] ([[User talk:RexxS|talk]]) 02:02, 5 October 2020 (UTC)
|