Jump to content

Extension:Cite: Difference between revisions

From mediawiki.org
Content deleted Content added
Alex44019 (talk | contribs)
Template:Used by: adding wiki.gg
Redundant page
 
(29 intermediate revisions by 20 users not shown)
Line 1: Line 1:
<languages/>
<languages/>

{{Tip
|1=<translate><!--T:60--> This page documents the extension.</translate> <translate><!--T:61--> For how to use it, see [[<tvar|1>m:Special:MyLanguage/Help:Footnotes</>|help on footnotes]] and [[<tvar|2>Special:MyLanguage/Help:Cite</>|help on citing]].</translate>
{{Tip|1=<translate><!--T:60--> This page documents the extension.</translate> <translate><!--T:61--> For how to use it, see [[<tvar name="2">Special:MyLanguage/Help:Cite</tvar>|help on citing]].</translate>}}

}}
{{Bundled|1.21}}
{{Bundled|1.21}}

{{extension
{{extension
|status = stable
|status = stable
Line 11: Line 12:
|image = Cite extension screenshot.png
|image = Cite extension screenshot.png
|imagesize = 375
|imagesize = 375
|version = <translate><!--T:15--> continuous updates</translate>
|version = <translate><!--T:15--> Continuous updates</translate>
|update =
|update =
|compatibility policy = rel
|compatibility policy = rel
|mediawiki = 1.34+
|mediawiki = 1.34+
|php = 7.0+
|php = 7.0+
|download = {{WikimediaDownload}}
|download = {{WikimediaDownload|phab=ECIT}}
|readme =
|readme =
|changelog =
|changelog =
Line 24: Line 25:
|pagedrive1 = true
|pagedrive1 = true
}}
}}
<translate>
<!--T:18-->
The '''Cite''' extension allows a user to create references as footnotes on a page. It adds two [[<tvar|1>Special:MyLanguage/Wikitext parser/Core tag hooks</>|parser hooks]] to MediaWiki, <tvar|2>{{tag|ref|open}}</> and <tvar|3>{{tag|references|single}}</>; these operate together to add citations to pages.


<translate><!--T:18--> The '''Cite''' extension allows a user to create references as footnotes on a page.</translate>
<translate><!--T:160--> It adds two [[<tvar name="1">Special:MyLanguage/Wikitext parser/Core tag hooks</tvar>|parser hooks]] to MediaWiki, <tvar name="2">{{tag|ref|open}}</tvar> and <tvar name="3">{{tag|references|single}}</tvar>; these operate together to add citations to pages.</translate>

<translate>
== Usage == <!--T:159-->
== Usage == <!--T:159-->


<!--T:59-->
<!--T:59-->
See the help page for [[<tvar|1>Special:MyLanguage/Help:Cite</>|using the Cite extension]] for further information.
See the help page for [[<tvar name="1">Special:MyLanguage/Help:Cite</tvar>|using the Cite extension]] for further information.


== Installation == <!--T:7-->
== Installation == <!--T:7-->
Line 37: Line 39:
{{ExtensionInstall
{{ExtensionInstall
|Cite
|Cite
|composer=true
|vagrant=cite
|vagrant=cite
|registration=required
|registration=required
|custom-steps= * <translate><!--T:147--> [[<tvar|1>#Configuration</>|Configure as required.]]</translate>
|custom-steps= * <translate><!--T:147--> [[<tvar name="1">#Configuration</tvar>|Configure as required.]]</translate>
}}
}}


Line 47: Line 48:
</translate>
</translate>
; <code>$wgCiteBookReferencing</code>
; <code>$wgCiteBookReferencing</code>
<translate><!--T:149--> Enables an experimental feature for sub-references when set to <tvar|2><code>true</code></>, see the [[<tvar|1>Special:MyLanguage/Help:Cite#book_referencing</>|help page]].</translate> <translate><!--T:150--> Default value:</translate> <code>false</code>
<translate><!--T:149--> Enables an experimental feature for sub-references when set to <tvar name="2"><code>true</code></tvar>, see the [[<tvar name="1">Special:MyLanguage/Help:Cite#book_referencing</tvar>|help page]].</translate> <translate><!--T:150--> Default value:</translate> <code>false</code>
; <code>$wgCiteResponsiveReferences</code>
; <code>$wgCiteResponsiveReferences</code>
<translate><!--T:151--> Default setting for responsive display of references.</translate> <translate><!--T:154--> When set to <tvar|1><code>true</code></>, the references section will be displayed in multiple columns.</translate> <translate><!--T:155--> See the [[<tvar|1>Special:MyLanguage/Contributors/Projects/Columns_for_references</>|usage documentation]].</translate> <translate><!--T:152--> Default value:</translate> <code>true</code>
<translate><!--T:151--> Default setting for responsive display of references.</translate>
<translate><!--T:154--> When set to <tvar name="1"><code>true</code></tvar>, the references section will be displayed in multiple columns.</translate>
<translate><!--T:155--> See the [[<tvar name="1">Special:MyLanguage/Contributors/Projects/Columns_for_references</tvar>|usage documentation]].</translate>
<translate><!--T:152--> Default value:</translate> <code>true</code>
; <code>$wgCiteVisualEditorOtherGroup</code>
; <code>$wgCiteVisualEditorOtherGroup</code>
<translate><!--T:156--> When set to <tvar|1><code>true</code></>, the Cite toolbar button can be moved under the Insert menu.</translate> <translate><!--T:157--> This is used on Wikivoyage sites.</translate> <translate><!--T:158--> See the [[<tvar|1>phab:T133725</>|original feature request]]. Default value:</translate> <code>false</code>
<translate><!--T:156--> When set to <tvar name="1"><code>true</code></tvar>, the Cite toolbar button can be moved under the Insert menu.</translate> <translate><!--T:157--> This is used on Wikivoyage sites.</translate> <translate><!--T:158--> See the [[<tvar name="1">phab:T133725</tvar>|original feature request]].</translate>
<translate><!--T:161--> Default value:</translate> <code>false</code>.


<translate>
<translate>
==See also== <!--T:58-->
== See also == <!--T:58-->
</translate>
</translate>
*{{ll|Help:Cite}}
* {{ll|Help:Cite}}
*{{ll|Extension:Semantic Cite}}
* {{ll|Extension:Semantic Cite}}
*{{ll|Extension:CiteThisPage}}
* {{ll|Extension:CiteThisPage}}


{{OnWikimedia}}
{{OnWikimedia}}
{{Used by}}
{{Used by|bluespice=1|canasta=1|debian=mediawiki|fandom=1|miraheze=1|mywikis=1|prowiki=1|semantic core=1|wiki.gg=1}}


[[Category:Referencing extensions{{#translation:}}]]
[[Category:Referencing extensions{{#translation:}}]]

Latest revision as of 20:35, 20 July 2024

This page documents the extension. For how to use it, see help on citing.
This extension comes with MediaWiki 1.21 and above. Thus you do not have to download it again. However, you still need to follow the other instructions provided.
MediaWiki extensions manual
Cite
Release status: stable
Implementation Tag
Description Allows footnotes for citing sources and helps for correctly citing content in offline media
Author(s) Ævar Arnfjörð Bjarmasontalk
Latest version Continuous updates
Compatibility policy Snapshots releases along with MediaWiki. Master is not backward compatible.
MediaWiki 1.34+
PHP 7.0+
License GNU General Public License 2.0 or later
Download
Help Help:Extension:Cite
Example Wikipedia:Footnotes
  • $wgCiteReferencePreviewsConflictingNavPopupsGadgetName
  • $wgCiteVisualEditorOtherGroup
  • $wgCiteReferencePreviews
  • $wgCiteResponsiveReferences
  • $wgCiteBookReferencing
  • $wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
Quarterly downloads 288 (Ranked 15th)
Public wikis using 14,146 (Ranked 6th)
Translate the Cite extension if it is available at translatewiki.net
Issues Open tasks · Report a bug

The Cite extension allows a user to create references as footnotes on a page. It adds two parser hooks to MediaWiki, ‎<ref> and ‎<references />; these operate together to add citations to pages.

Usage

[edit]

See the help page for using the Cite extension for further information.

Installation

[edit]
  • Download and move the extracted Cite folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'Cite' );
    
  • Configure as required.
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.


Vagrant installation:

  • If using Vagrant , install with vagrant roles enable cite --provision

Configuration

[edit]
$wgCiteBookReferencing

Enables an experimental feature for sub-references when set to true, see the help page. Default value: false

$wgCiteResponsiveReferences

Default setting for responsive display of references. When set to true, the references section will be displayed in multiple columns. See the usage documentation. Default value: true

$wgCiteVisualEditorOtherGroup

When set to true, the Cite toolbar button can be moved under the Insert menu. This is used on Wikivoyage sites. See the original feature request. Default value: false.

See also

[edit]