[Wikisource-l] [Wikisource] proposal to extend the ref tag syntax

Aleator Wiki aleator_wiki at yahoo.es
Thu Aug 12 14:57:32 UTC 2010


And what about the LST template combined to section tags? One example:

- Page 1 is 
http://ca.wikisource.org/wiki/P%C3%A0gina:Cansons_de_la_terra_%281866%29.djvu/48 
and contains some text with one full reference, also the beginnig of a second 
ref, and we can also see the transclusion of the following portion of the second 
ref (from Page 2, thanks to "Lst" template). We see the full second ref, but 
just proofread it at its "physical" page.

- Page 2 is 
http://ca.wikisource.org/wiki/P%C3%A0gina:Cansons_de_la_terra_%281866%29.djvu/49  
and contains 2 sections: some text with one reference, and the following portion 
of the reference (transcluded at Page 1).

So, the final transclusion uses the "Page" template with the "section" parameter 
when necessary: 
http://ca.wikisource.org/wiki/Cansons_de_la_terra_-_Volum_I/Introducci%C3%B2

It's a bit uncomfortable, but also in books made of paper!! Why do they break 
refs??

Regards,
Aleator


------------------------------

Message: 8
Date: Wed, 11 Aug 2010 17:43:35 +0200
From: ThomasV <thomasV1 at gmx.de>
Subject: [Wikisource-l] (pas de sujet)
To: Wikimedia developers <wikitech-l at lists.wikimedia.org>,
    "discussion list for Wikisource,    the free library"
    <wikisource-l at lists.wikimedia.org>
Message-ID: <4C62C527.2000204 at gmx.de>
Content-Type: text/plain; charset=ISO-8859-1

I would like to extend the syntax of the <ref> tag (Cite extension), in
order to deal with footnotes that are spread on several transcluded
pages. Since the Cite extension is widely used, I guess I better ask
here first.

Here is an illustration of the problem :
http://en.wikisource.org/wiki/Page:Robert_the_Bruce_and_the_struggle_for_Scottish_independence_-_1909.djvu/49


On the bottom of the scan you can see the second half of a footnote.
That footnote begins at the previous page :
http://en.wikisource.org/wiki/Page:Robert_the_Bruce_and_the_struggle_for_Scottish_independence_-_1909.djvu/48


Wikisourcers currently have no way to deal with these cases in a clean
way. I have written a patch for this (the code is here :
http://dpaste.org/QOMH/ ). This patch extends the "ref" syntax by adding
a "follow" parameter, like this :

<ref follow="foo">bar</ref>

After two pages are transcluded, the wikitext passed to the parser will
look like this :

blah blah blah
blah blah blah<ref name="note1">beginning of note 1</ref>
blah blah blah
blah blah blah
blah blah blah<ref follow="note1">end of note</ref>
blah blah blah

This wikitext is rendered as a single footnote, located in the text at
the position of the parent <ref>. If the parent <ref> is not found (as
is the case when you render only the second page), then the text inside
the tag is rendered at the beginning of the list of references, with no
number and no link.

does this make sense ?

Thomas


      



More information about the Wikisource-l mailing list