Extension:Cite
Status wydania: stabilne |
|
|---|---|
![]() |
|
| Realizacja | Znaczniki |
| Opis | Allows footnotes for citing sources and helps for correctly citing content in offline media |
| Autor(zy) | Ævar Arnfjörð Bjarmasondyskusja |
| Ostatnia wersja | Continuous updates |
| Polityka zgodności | Snapshots releases along with MediaWiki. Master nie jest kompatybilny wstecznie. |
| MediaWiki | 1.34+ |
| PHP | 7.0+ |
| Zmiany w bazie danych | Nie |
|
|
|
|
| License | GNU General Public License 2.0 or later |
| Pobieranie | |
| Przykład | Wikipedia:Footnotes |
| Przetłumacz rozszerzenie Cite jeżeli jest dostępne na translatewiki.net | |
| Problemy | Otwarte zadania · Zgłoś błąd |
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.
Użycie
See the help page for using the Cite extension for further information.
Instalacja
- Pobierz i umieść plik(i) w katalogu o nazwie
Citew folderzeextensions/.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
- Dodaj poniższy kod na dole twojego pliku LocalSettings.php:
wfLoadExtension( 'Cite' );
- Configure as required.
Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.
Instalacja Vagranta:
- Jeżeli korzystasz z Vagranta, zainstaluj poprzez
vagrant roles enable cite --provision
Konfiguracja
| Name | Description | Default |
|---|---|---|
$wgCiteSubReferencing
|
Enables sub-referencing when set to true, see the help page.
|
false
|
$wgCiteReferencePreviews
|
Enables Reference Previews when Rozszerzenie:Podglądy strony is installed and set to true
|
true
|
$wgCiteReferencePreviewsConflictingRefTooltipsGadgetName
|
The local Reference Tooltips gadget name used as its identifier in MediaWiki:Gadgets-definition.
This gadget is incompatible with reference previews. Reference previews will disable themselves for users with the gadget enabled. |
|
$wgCiteResponsiveReferences
|
Default setting for responsive display of references.
When set to |
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.
|
false
|
By adding a definition in JSON to MediaWiki:Cite-tool-definition.json, the cite menu can be populated with tools that create references containing specific templates.
The content of the definition should be an array containing a series of objects, one for each tool.
Each object must contain name, icon, template properties.
An optional title property can also be used to define the tool title in plain text.
The name property is a unique identifier for the tool, and also provides a fallback title for the tool by being transformed into a message key.
The name is prefixed with visualeditor-cite-tool-name-, and messages can be defined on Wiki.
Some common messages are pre-defined for tool names such as web, book, news, journal, map.
Example:
[ { "name": "web", "icon": "browser", "template": "Cite web" }, ... ]
Limitations
- The pipe trick and other pre-save transforms do not work within footnotes created with this extension.
Zobacz też
| To rozszerzenie jest wykorzystywane przez jeden lub więcej projektów Wikimedia. Oznacza to prawdopodobnie, że to rozszerzenie jest stabilne i działa wystarczająco dobrze, aby wykorzystywać je na stronach o dużym natężeniu ruchu. Odnajdź nazwę tego rozszerzenia w plikach konfiguracyjnych Wikimedia CommonSettings.php oraz InitialiseSettings.php, aby zobaczyć gdzie są zainstalowane. Pełną listę rozszerzeń zainstalowanych na określonej wiki można znaleźć na stronie Special:Version na danej wiki. |
| To rozszerzenie jest dołączone do następujących farm/hostów wiki lub pakietów: |
- Stable extensions/pl
- Tag extensions/pl
- APIQuerySiteInfoGeneralInfo extensions/pl
- CommunityConfigurationProvider initList extensions/pl
- ContentHandlerDefaultModelFor extensions/pl
- EditPage::showEditForm:initial extensions/pl
- GetPreferences extensions/pl
- MakeGlobalVariablesScript extensions/pl
- ParserAfterParse extensions/pl
- ParserClearState extensions/pl
- ParserFirstCallInit extensions/pl
- ResourceLoaderGetConfigVars extensions/pl
- ResourceLoaderRegisterModules extensions/pl
- UserGetDefaultOptions extensions/pl
- GPL licensed extensions/pl
- Extensions in Wikimedia version control/pl
- All extensions/pl
- Extensions bundled with MediaWiki 1.21/pl
- Extensions used on Wikimedia/pl
- Extensions included in BlueSpice/pl
- Extensions included in Canasta/pl
- Extensions available as Debian packages/pl
- Extensions included in Fandom/pl
- Extensions included in Miraheze/pl
- Extensions included in MyWikis/pl
- Extensions included in ProWiki/pl
- Extensions included in semantic::core/pl
- Extensions included in ShoutWiki/pl
- Extensions included in Telepedia/pl
- Extensions included in wiki.gg/pl
- Referencing extensions/pl
- Extensions with VisualEditor support/pl

