https://bugzilla.wikimedia.org/show_bug.cgi?id=18890





--- Comment #1 from Bill Mitchell <[email protected]>  2009-05-24 
07:23:31 UTC ---
A complete Cite_body.php file (vs. the diff attached to the bug) to implement
this enhancement is available from [[Wikipedia:User:Wtmitchell]]. The file is
available with or without the changes made being clearly indicated.

The modification adds an optional Ref tag parameter named "hide"

>From the editor's perspective, if the hide attribute is present in a Ref tag,
two things are done:

1. Generation of the superscripted forward-link to the expanded references is
suppressed;
2. Generation of the associated backlink in the expanded References item is
suppressed 
   (and appropriate adjustments are made in the other backlinks if needed).

This allows Ref tag body declarations to be done in a block outside of the
article prose.
This block may be located anywhere preceding the <references /> tag which would
expand the references.

If the block is located at the head of the article (ahead of any <ref
name=whatever /> tags),
the Refs declared therein will be expanded in the order of declaration.

A Ref declaration block would look something like the following:

<div style="display:none">
<ref hide name=c1>This is a comment which should be placed in the References
section</ref>
<ref hide name=c2>This is another comment which should be placed in the
References section</ref>
<ref hide name="Cited source">This is a citation of
[http://something.somewhere.com a supporting source]</ref>
</div>

The "display:none" is intended to hide the newlines between the Ref
declarations.

Sample wikitext:

<div style="display:none;"> <!-- hide newlines between ref declarations -->
<!--
Refs here are sorted by desired order of appearance and placed ahead of the
article prose
-->
<ref hide name=able1987>Able, John. ''A paper about something'' (1987), Smith
Publishing.</ref>
<ref hide name=snodgrass1985>Snodgrass, Peter. ''A paper about something else''
(1985), XYZ Books.</ref>
<ref hide name=zorch1955>Zorch, Carl. ''A paper about nothing'' (1987), Random
Pubs.</ref>
</div>
'''Refs here are ordered by name:''' Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.<ref name=zorch1955 /><ref name=snodgrass1985 /> Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.<ref name=zorch1955 /> Duis aute irure dolor in reprehenderit in
voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim
id est laborum.<ref name=snodgrass1985 /><ref name=able1987 />

'''Refs here are not ordered by name:''' Lorem ipsum dolor sit amet,
consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et
dolore magna aliqua.<ref name=h2 /><ref name=h3 /> Ut enim ad minim veniam,
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat.<ref name=h0 /> Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat
cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.<ref name=h0 /><ref name=h1 /> Lorem ipsum dolor sit amet, consectetur
adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna
aliqua.<ref name=h2 group=b /> Ut enim ad minim veniam, quis nostrud
exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.<ref
name=h2 group=a /> Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat
non proident, sunt in culpa qui officia deserunt mollit anim id est
laborum.<ref name=h2 group=a /><ref name=h2 group=b />

;Default ref group
<div style="display:none;"> <!-- hide newlines between ref declarations -->
<ref hide name=h0>def for h0</ref>
<ref hide name=h1 >def for h1</ref>
<ref hide name=h2 >def for h2</ref>
<ref hide name=h3 >def for h3</ref>
</div><references />

;Ref group a
<ref hide name=h2  group=a>def for h2 ga</ref>
<references group=a />

;Ref group b
<ref hide name=h2  group=b>def for h2 gb</ref>
<references group=b />


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to