MediaWiki talk:ExtractFirst.xsl

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Note[edit]

Just thought i'd mention what this does. This allows scripts on other websites to access the first definition of a word on wiktionary (perhaps for use in a pop up after hovering). For example http://en.wiktionary.org/w/api.php?action=parse&prop=text&page=word&format=xml&xslt=MediaWiki:extractFirst.xsl (replace word with your favourite word). Cheers. Bawolff 04:48, 26 September 2009 (UTC)[reply]

What magic is this??? —Suzukaze-c 00:43, 6 June 2018 (UTC)[reply]
This is awesome. Does anything currently use this stylesheet in conjunction with action=parse? I hurriedly copied this stylesheet over to vi:MediaWiki:ExtractFirst.xsl the moment I saw it; now I'm eager to see it in action somewhere. :^D – Minh Nguyễn 💬 04:47, 28 June 2018 (UTC)[reply]

Protected edit request on 02 January 2017[edit]

Please change:

<p style="display:none" />

to:

<p style="display:none"></p>

This is to correct the invalid self-closing 'p' tag. See also Category:Pages using invalid self-closed HTML tags. Thank you, Xaosflux (talk) 23:57, 2 January 2017 (UTC)[reply]

This was done on 00:03, 3 January 2017‎ by DTLHS. Anomalocaris (talk) 23:42, 5 June 2018 (UTC)[reply]

Protected edit request on 18 June 2018[edit]

DTLHS or others: This template has 2 misnested tags of <i>, probably coded as ''. I believe the culprits are in the string:

'').replace(/

in two locations that both look like

'').replace(/<ul>[\s\S]*?<\/ul>/g, ''

but I do not understand this well enough to say any more about it. —Anomalocaris (talk) 01:56, 18 June 2018 (UTC)[reply]

Those should be empty strings... —Suzukaze-c 04:57, 28 June 2018 (UTC)[reply]