Template:Reflist/Transwiki guide

From Template Wiki, a repository of MediaWiki templates.
Jump to navigation Jump to search

The following steps below is how template {{reflist}} is implemented on Template Wiki. If porting the exact copy of template {{reflist}} to other Miraheze projects the following need to be copied (and modified to suit the needs of your project), other wikis outside Miraheze projects makes sure extension:Cite is installed first and if adding the tracking category you'll also need to install mw:Extension:Scribunto. Please use an edit summary like the text shown so the history will show where each page came from.

Create or modify the following templates and system messages

Template:Reflist copy from [[:en:Template:Reflist]]
Template:Column-width copy from [[:en:Template:Column-width]]
MediaWiki:Cite references link many format copy from [[:en:MediaWiki:Cite references link many format]]
MediaWiki:Cite references link many format backlink labels copy from [[:en:MediaWiki:Cite references link many format backlink labels]]
MediaWiki:Cite link label group-decimal copy from [[:en:MediaWiki:Cite link label group-decimal]]
MediaWiki:Cite link label group-lower-alpha copy from [[:en:MediaWiki:Cite link label group-lower-alpha]]
MediaWiki:Cite link label group-lower-greek copy from [[:en:MediaWiki:Cite link label group-lower-greek]]
MediaWiki:Cite link label group-lower-roman copy from [[:en:MediaWiki:Cite link label group-lower-roman]]
MediaWiki:Cite link label group-upper-alpha copy from [[:en:MediaWiki:Cite link label group-upper-alpha]]
MediaWiki:Cite link label group-upper-roman copy from [[:en:MediaWiki:Cite link label group-upper-roman]]

Tracking category

The tracking category Category:Pages using reflist with unknown parameters uses the following templates:

Module:Check for unknown parameters copy from [[:en:Module:Check for unknown parameters]]
Template:Main other copy from [[:en:Template:Main other]]


To replace the default uparrow (↑) with caret (^)

MediaWiki:Cite references link one copy from [[:en:MediaWiki:Cite references link one]]
MediaWiki:Cite references link many copy from [[:en:MediaWiki:Cite references link many]]

CSS support

Copy the following CSS to MediaWiki:Common.css. → copy from [[:en:MediaWiki:Common.css]]

Note: The CSS below includes CSS for {{refbegin}}.

/* Make the list of references smaller */
div.refbegin {
    font-size: 90%;            /* Default font-size */
    margin-bottom: 0.5em;
div.refbegin-100 {
    font-size: 100%;           /* Option for normal fontsize in {{refbegin}} */
div.reflist ol.references {
    font-size: 100%;           /* Reset font-size when nested in div.reflist */
    margin-bottom: 0;          /* Avoid double margin when nested in div.reflist */
    list-style-type: inherit;  /* Enable custom list style types */

See also

Wikipedia logo This template uses material from the Wikipedia template Template:Reflist/Transwiki guide, which is released under the Creative Commons Attribution-ShareAlike 3.0 Unported License (view authors).