Extension talk:Cite/Special:Cite.php

From MediaWiki.org

Jump to: navigation, search

Contents

[edit] ExtensionFunctions.php issues

The page for it offers no explanation of how to install it, just calls it "useless", and it's causing my site to lock up no matter how I seem to configure it (including before Special:Cite, after it, before or after other include statements, not including it and just including Special:Cite, etc.). You can see the information on my site's current wiki installation here. Anyone have any ideas on how to make it work properly? 71.198.127.97 05:42, 10 May 2008 (UTC)

Copy it from SVN to extenions/ directory - VasilievVV 05:44, 10 May 2008 (UTC)
Still getting the following:
Warning: MessageCache::require(/homepages/2/d164452344/htdocs/wiki/extensions/Cite/SpecialCite.i18n.php) [function.MessageCache-require]: failed to open stream: No such file or directory in /homepages/2/d164452344/htdocs/wiki/includes/MessageCache.php on line 701

Fatal error: MessageCache::require() [function.require]: Failed opening required '/homepages/2/d164452344/htdocs/wiki/extensions/Cite/SpecialCite.i18n.php' (include_path='/homepages/2/d164452344/htdocs/wiki:/homepages/2/d164452344/htdocs/wiki/includes:/homepages/2/d164452344/htdocs/wiki/languages:.:/usr/lib/php5') in /homepages/2/d164452344/htdocs/wiki/includes/MessageCache.php on line 701:: 71.198.124.7 23:50, 10 May 2008 (UTC)

All right, I figured out that I was missing SpecialCite.i18n.php and SpecialCite_body.php, so I've added those in (for some reason I'd confused it with the Cite.i18n.php file on the download page; already have the other Cite extension installed on my Wiki). Now I'm getting this error instead:
Warning: file_get_contents(/homepages/2/d164452344/htdocs/wiki/extensions/Cite/cite_text) [function.file-get-contents]: faied to open stream: No such file or directory in /homepages/2/d164452344/htdocs/wiki/extensions/Cite/SpecialCite_body.php on line 9
I've added the ExtensionFunctions.php file and included it as well. I've also made sure that cite_text is in the same directory as SpecialCite.php. Am I still missing something from the directions, or is it just being buggy for me? 71.198.127.97 06:16, 11 May 2008 (UTC)

[edit] Vancouver style

Vancouver style is the style used for many Biomedical journals.

Include this in the cite_text file to produce the citation in Vancouver style:


=== [[Vancouver style]] ===

{{SITENAME}} contributors. {{FULLPAGENAME}}. [Online]. {{CURRENTYEAR}} {{CURRENTMONTHABBREV}} {{CURRENTDAY}} [Cited: <citation>{{CURRENTYEAR}} {{CURRENTMONTHABBREV}} {{CURRENTDAY}}</citation>]; Available from: URL:<u>{{fullurl:{{FULLPAGENAME}}|oldid={{REVISIONID}}}}</u>

[edit] Cite_text

I found that it was necessary to paste the contents of cite_text.txt into the wiki page MediaWiki:Cite_text. For some reason, the file cite_text.txt wasn't being used, though no error messages were produced. The failure mode was an empty page for Special:Cite, except for the "cite" box and button.

One other installation detail was missing. This is needed in LocalSettings.php to load ExtensionFunctions.php

require_once($IP.'/extensions/ExtensionFunctions.php');

--Russell.thomas 07:48, 8 June 2008 (UTC)

[edit] Typo in cite_text

Near the end of default cite_text:

When using the LaTeX package ... the following may preferred:

The following may be preferred:

When using the LaTeX package ... the following may be preferred:

Svemir Brkic 18:53, 21 August 2008 (UTC)

OK, that's fixed in rev:41812 -Steve Sanbeg 18:09, 7 October 2008 (UTC)

[edit] What is the point?

I don't see what is he point of this extension--can someone please explain on the main page? Odessaukrain 17:51, 7 October 2008 (UTC)

  1. This extension provides a link in the toolbox toward a special page.
  2. The special page display informations about the previous page and different ways to cite the page.
  3. Users who want to export (legally) pages from a wiki to somewhere else just have to copy-paste the link they want.
Dr Brains 01:57, 8 August 2009 (UTC)