Jump to content

User:DeirdreAnne/Oldws

From Wikisource

This script has already been deprecated. See User:Candalua/vector.js nope - his script is a worse hack in many ways

Linking to Old Wikisource

[edit]

With the script {{User:Doug/oldws.js}} in the common.js, links can be created in the language sidebar to old wikisource (http://wikisource.org). To create a link, create an additional language link for example from page Foo in any subdomain:

[[ar:oldws marker]] <!--the name is not important, this is just to identify it-->
[[ar:فو]] <!--an ordinary language link to arabic wikisource-->
[[az:foo]] 
...

The language chosen doesn't matter but it should normally be placed at the top above ar:.

Additionally, the following, either as html or as a template must be added:

<span class="interwiki-oldws" id="ar1" title="Foo" style="display:none;"/>

This would link to the same place as the inline link oldwikisource:Foo. The title is the full page name, i.e. the page title including the namespace, e.g. "User:Doug/Oldws".

Thus the page will appear as follows in edit mode:

<references/>
[[category:foo]]
<!--Interwiki Language Links-->
<span class="interwiki-oldws" id="ar1" title="Foo" style="display:none;"/>
[[ar:oldws marker]]
[[ar:فو]]
[[az:foo]]
. . . .