Current version of the script css

Jump to navigation Jump to search

Current version of the script css

I posted something User_talk:Atelaes#Update_Sense_IDs. Can you send me the latest version of what's there currently? I really don't understand the css thing and where it is. Also, please mail me, if you want to be on the list (although I think we might move to a place within Wiktionary soon for discussion) SebastianHellmann 07:59, 17 September 2010 (UTC)

SebastianHellmann07:59, 17 September 2010

I added li.senseid:target {background-color:#DEF} to Mediawiki:Common.css (the head css file, which is loaded for everyone), and changed {{senseid}} to <li class='senseid' id='{{language|{{{1}}}}}-{{{2}}}'>​, which Mediawiki apparently takes as overriding the existing <li>, thus having the same effect as what was previously at User:Atelaes/highlightSense.js.

Yair rand (talk)17:36, 17 September 2010

ok, good, maybe we can extend it so it shows the link directly to copy and paste it:

  1. One of two possible conformers...

There is no way, that you can see the Anchor, unless you go to the source. This would work, but the problem will be the XXX:

[{{fullurl: {{FULLPAGENAME}} }}#{{{1}}}-{{{2}}} XXX]

Do you have any ideas? I created the same template in German [1] It was easy there, as they use numbers:

{{sinnid|3|en|cyclohexane}} One of two possible ...

produces:

[3] One of two possible
SebastianHellmann10:33, 30 September 2010

You might want to see User:Yair rand/editor.js (currently experimental), testable through WT:PREFS (click "Add expandable editing options side box next to definitions" near the bottom). It adds an expandable menu to the left of each definition including some editing options, a way to add or modify senseids, and "Link here" and "What links here" (which does nothing atm) buttons where the definition has a senseid. Currently all the "Link here" button does is link to the definition itself, allowing users to copy from the address bar, much like the German sinnid. Ideally, it could pop up a box in the style of the link wizard, displaying how to link to it through wikitext or with the full URL. (I'm sure I've seen something like that somewhere, but I don't remember where...) The script won't be ready for a while, and I'm not even sure if the community will approve it even when it's ready, but it is a possibility. Outside of using the script, I suppose an image of a chain or something could be placed before the definition linking to the definition: <span style="position:relative;"><span style="position:absolute;left:-50px;">[[Image:Link.png|16px|link=#{{{{{1}}}|l=}}-{{{2}}}]]</span></span>.

Yair rand (talk)03:40, 3 October 2010