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





--- Comment #9 from Dan Nessett <[email protected]>  2009-05-09 20:56:18 UTC 
---
(In reply to comment #7)
> I see what you are attempting to accomplish; in fact it is a fairly elegant 
> way
> to achieve the desired effect.  You could even use the References chapter *as*
> the ref page, using <onlyinclude> to only transclude the actual references. 
> This is a good solution to the problem at hand.  One way or another, you just
> need to ensure that each book page ends with a <references/> tag, preferably
> hidden.  You could do something like this:
> 
> ================================================
> Template:HideCiteErrors:
> =============
> 
> <div style="display:none;"><references/></div>
> 
> ================================================
> ================================================
> SomeBook/SomeChapter
> =============
> 
> {{SomeBook/References}}
> 
> Blah blah blah<ref name=foo/> blah blah
> 
> {{HideCiteErrors}}
> 
> ================================================
> ================================================
> SomeBook/References
> ============
> 
> Blah blah blah header blurb
> <onlyinclude><includeonly>
> *<ref name=foo>Ref text</ref>
> *<ref name=bar>More ref text</ref>
> </includeonly></onlyinclude>
> <references/>
> 
> ================================================
> 
> Does that make sense? Essentially, the 'workaround' from enwiki suppresses
> errors from refs *above* it on the page.  So to ensure that all errors are
> avoided, you need to put the 'workaround' code at the bottom of each page.  
> 
> Alternatively, enwikibooks could suppress or entirely disable the cite error
> message like enwiki has.  You'd need to discuss that on the appropriate
> wikibooks forum; it can be done by editing the [[MediaWiki:Cite error]] family
> of messages.
> 

Your idea almost works. The one remaining problem is the call to
{{SomeBook/References}} on the SomeBook/SomeChapter page leaves orphan numbers
where the transcluded <ref>s reside. In other words, at the top of the
SomeBook/SomeChapter page is the text "[1] [2]", etc, one number for each
transcluded <ref> entry. I ran across this before and now forget how I got rid
of it. However, the error message no longer is a problem. I just need to
remember how I got rid of the extraneous square-bracket numbers at the top.
I'll let you know if I succeed.


-- 
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