• Home
  • Random
  • Nearby
  • Log in
  • Settings
Donate Now If Wikipedia is useful to you, please give today.
  • About Wikipedia
  • Disclaimers
Wikipedia

Template:Reflib

  • Template
  • Talk
  • Language
  • Watch
  • Edit
  • Sauvé, Jean-Marc (28 September 2016). "Le dualisme juridictionnel : synergies et complémentarité" [Jurisdictional dualism: synergies and complementarity] (in French). Conseil d'État. Retrieved 3 March 2023.
Template documentation[view] [edit] [history] [purge]

This template may be used in two ways. First, it is a wrapper template, useful for importing frequently used, high quality, pre-existing citations into an article's "Bibliography", "Sources", or "Works cited" section, where they may be accessed in the normal way by footnotes in the article, either in <ref> tags or short footnotes ( {{sfn}} ) in-line.

Second, it is a collection of § reference libraries, each one containing a pre-built repository of full citations to highly reliable sources in a given topic area that may be of interest to users creating or expanding articles in that topic area. These citations may be freely copied and pasted into articles as needed.

The goals of § reference libraries are to: lower the bar for sourcing articles by having a pre-built repository of citations available in numerous topic areas, encourage resource sharing of high-quality citations across articles, introduce editors to new sources in topic areas they contribute to that they might not otherwise have known about, and speed article development by providing citations off-the-shelf in correct CS1 and CS2 format, ready for use in new and existing articles.

Contents

  • 1 Usage
  • 2 Parameters
  • 3 Article domains
  • 4 Terminology
  • 5 Examples
  • 6 Updating domain containers
  • 7 Creating a new article domain
  • 8 Technical notes
    • 8.1 Duplicate references
    • 8.2 Multiple Reflib transclusions
    • 8.3 Whitelisting false positive messages
    • 8.4 Whitelisting unused chapters
  • 9 Notes

Usage

edit

{{Reflib|lib=ref lib name|refname1|refname2|. . .|refname20}}

Parameters

edit

One required and one optional named parameter; one to twenty unnamed (positional) parameters; at least one of which is required:

  • |lib= – § article domain name; e.g., French criminal law, or an equivalent shortcut: FCL (see § table). Required.
  • |nob= – "no bullet" : set this param (|nob=1) to suppress the initial bullet before the citation.
  • |1= – name of the first § section in the given article domain, e.g., Elliott-2010, Berger-2003, etc. Required.
  • |2=, |3=, ... |20= – name of the optional 2nd, 3rd, ... 20th § section names, which must all be unique within the given article domain.

Article domains

edit
Further information: /Domain doc, /New domain page instructions

An article domain is a topic area in which a group of related articles have shared citations; that is, citations which are used, or are likely to be used, in more than one article in the domain. It is by design a vetted repository of citations to reliable sources where new or veteran editors can come and find useful sources for their topic, already formatted properly as CS1 or CS2 citations and ready for use in their article. Typically, this would mean using this template to import citations into the "References" or "Works cited" section of an article for use by short citations, but it can also be used in-line embedded in <ref>...</ref> tags.

Reference libraries are currently available for the following domains (click items in the first column to view the reference library for that domain):

Article domains, and related pages
Article domainShortcutMain spaceNav boxesCategories
Anglo-Saxon historyASHAnglo-Saxon historyAnglo-Saxon England
Ancient seafaringAseaAncient maritime history{{Ancient seafaring}}
French criminal lawFCLFrench criminal law{{French criminal law}}French criminal law
Science fictionSFScience fiction{{Science fiction}}Science fiction
Vichy FranceVichyVichy France{{Vichy France}}Vichy France

The last three columns are merely for informational purposes; there is no formal connection between a domain and any particular article, nav template, or category. Currently, domain containers are implemented as subpages of this template, but this may change.[a] To create a new domain, see § Creating a new article domain below.

Instead of having to copy and paste full citations among numerous articles related to Template:Reflib/Domain doc and keep them in sync, Template:Reflib allows you to place the citations into the domain container for Template:Reflib/Domain doc[b] just once, and then use the template to import needed citations into any articles in the domain that need them. It's up to users to define what constitutes a domain, but as a rough approximation, articles linked from the same navigation template are likely to have citations in common that are members of the same article domain. Categories offer another approach.

Citations in these domains are designed to be accessible via the template according to the usage and parameters shown above. Feel free to skip using the template itself and just copy citations of interest out of the domain container and paste them directly into your article.

Terminology

edit

Article domain (or domain) – a group topic spanning a number of subtopics which are likely to share a lot of the same reliable sources. The group topic may or may not have a category associated with it, and the subtopics may or may not already have Wikipedia articles associated with them. Example: "Ancient seafaring".

Reference library (or library) – a collection of references (citations) for one § domain, without regard to how the library is implemented.

Reflib – an overloaded term, which may refer either to: 1. this template, or 2. a § reference library.

Domain container (or article domain page) – an implementation of a § reference library. This is abstracted as named parameter |lib= of the template. Currently, domain containers are implemented as subpages of Template:Reflib, but this is an internal design decision and may change.

Reference section (or section) – an implementation of one reference (citation) within a § domain container. This is abstracted by any of the positional parameters |1= through |20= of the template. Currently, a reference section is implemented as a section of a subpage; this is an internal design decision and may change.

Examples

edit

1. An example showing transclusion of seven references from article domain French criminal law:

{{Reflib|lib=FCL|Bell-2008|Elliott-2001|Hall-2010|Hodgson-2005|Jurgens-2007|Larousse|Steiner-2010}}

{{Reflib|lib=FCL|Bell-2008|Elliott-2001|Hall-2010|Hodgson-2005|Jurgens-2007|Larousse|Steiner-2010}} →

  • John Bell; Sophie Boyron; Simon Whittaker (27 March 2008). Principles of French Law (2 ed.). OUP Oxford. ISBN 978-0-19-101889-3. OCLC 865331945.
  • Elliott, Catherine (2001). French Criminal Law. Portland OR: Willan. ISBN 978-1-135-99307-8. OCLC 49494876.
  • Hall, Jerome (2010). General Principles of Criminal Law. The Lawbook Exchange, Ltd. ISBN 978-1-58477-498-3. OCLC 1131553404.
  • Hodgson, Jacqueline (8 November 2005). French Criminal Justice: A Comparative Account of the Investigation and Prosecution of Crime in France. Bloomsbury Publishing. ISBN 978-1-84731-069-9. OCLC 1048749661.
  • Jurgens, Erik (6 July 2007). The principle of the Rule of Law (Report). Council of Europe. 11343. Retrieved 4 March 2023.
  • "Dictionnaire Français en ligne - Larousse". Larousse.fr. Paris: Éditions Larousse.
  • Steiner, Eva (4 March 2010). French Law: A Comparative Approach. OUP Oxford. ISBN 978-0-19-923237-6. OCLC 1026108285.

2. An example showing transclusion of five references from article domain Ancient seafaring (note that param 4 pulls in nine citations):

{{Reflib|lib=Asea|Bagnall-1999|Goldsworthy-2006|Lazenby-1996|Morrison-Gardiner-1995|Warry-2004}}

{{Reflib|lib=Asea|Bagnall-1999|Goldsworthy-2006|Lazenby-1996|Morrison-Gardiner-1995|Warry-2004}}
{{sfn whitelist|CITEREFCasson1995b|CITEREFCoates1995|CITEREFHocker1995|CITEREFRankov1995}} ⟶

  • Bagnall, Nigel (1999). The Punic Wars: Rome, Carthage and the Struggle for the Mediterranean. London: Pimlico. ISBN 978-0-7126-6608-4.
  • Goldsworthy, Adrian (2006). The Fall of Carthage: The Punic Wars 265–146 BC. London: Phoenix. ISBN 978-0-304-36642-2. OCLC 162111692.
  • Lazenby, John Francis (1996). The First Punic War: A Military History. Stanford, California: Stanford University Press. ISBN 0-8047-2673-6.
  • Morrison, John S; Gardiner, Robert, eds. (1995). The Age of the Galley: Mediterranean Oared Vessels Since Pre-Classical Times. London: Conway Maritime. ISBN 0-85177-554-3. OCLC 32117584.
  • Casson, Lionel (1995b). "Merchant Galleys". In Morrison & Gardiner (1995), pp. 117–126.
  • Coates, John F. "The Naval Architecture and Oar Systems of Ancient Galleys". In Morrison & Gardiner (1995), pp. 127–141.
  • Dotson, John E. "Economics and Logistics of Galley Warfare". In Morrison & Gardiner (1995), pp. 218–223.
  • Hocker, Frederick M. "Late Roman, Byzantine, and Islamic Galleys and Fleets". In Morrison & Gardiner (1995), pp. 86–100.
  • Morrison, John S. "Hellenistic Oared Warships 399-31 BC". In Morrison & Gardiner (1995), pp. 66–77.
  • Pryor, John H. "From Dromōn to Galea: Mediterranean Bireme Galleys AD 500–1300". In Morrison & Gardiner (1995), pp. 101–116.
  • Rankov, Boris. "Fleets of the Early Roman Empire, 31 BC–AD 324". In Morrison & Gardiner (1995), pp. 78–85.
  • Wachsmann, Shelley. "Paddled and Oared Ships Before the Iron Age". In Morrison & Gardiner (1995), pp. 10–25.
  • Warry, John (2004). Warfare in the Classical World. Salamander Books Ltd. ISBN 0-8061-2794-5.

3. Citations will be listed in the order which you include them; if you want them in alphabetical order, list them that way:

{{Reflib|lib=FCL|Zalc-2020|Young-2013|Berger-2003|Azéma-1979}}

{{Reflib|lib=Vichy|Zalc-2020|Young-2013|Berger-2003|Azéma-1979}} →

  • Zalc, Claire (2020-11-16). "Discretionary Power in the Hands of an Authoritarian State: A Study of Denaturalizations under the Vichy Regime (1940–1944)". The Journal of Modern History. 92 (4): 817–858. doi:10.1086/711477. ISSN 0022-2801. S2CID 226968304.
  • Young, Ernest (2013), Ecclesiastical Colony: China's Catholic Church and the French Religious Protectorate, Oxford University Press, pp. 250–251, ISBN 978-0-19-992462-2
  • Berger, Françoise (2003). "L'exploitation de la Main-d'oeuvre Française dans l'industrie Siderurgique Allemande pendant la Seconde Guerre Mondiale" [The Exploitation of French Labor in the German Iron and Steel Industry During World War II]. Revue d'Histoire Moderne et Contemporaine. 50 (3): 148–181. doi:10.3917/rhmc.503.0148. JSTOR 20530987.
  • Jean-Pierre Azéma, De Munich à la Libération, Le Seuil, 1979, p. 82 ISBN 2-02-005215-6

4. You cannot name the same section twice in one transclusion of the template; this generates an error:

{{Reflib|lib=Vichy|Berlière-2018|Carrier-2017|Diamond-1999|Berlière-2018}}
The param value Berlière-2018 appears twice, generating an error:

{{Reflib|lib=Vichy|Berlière-2018|Carrier-2017|Diamond-1999|Berlière-2018}} → Reflib: Param values must be unique.

5. You can transclude {{Reflib}} more than once in the same article, but you cannot reuse a section name already used in a previous call:

{{Reflib|lib=FCL|Hall-2010|Hodgson-2005|Jurgens-2007}}
These three sections were already used in example 1, so it simply links the article domain instead of transcluding the citation again:

{{Reflib|lib=FCL|Hall-2010|Hodgson-2005|Jurgens-2007}} →

  • Hall, Jerome (2010). General Principles of Criminal Law. The Lawbook Exchange, Ltd. ISBN 978-1-58477-498-3. OCLC 1131553404.
  • Hodgson, Jacqueline (8 November 2005). French Criminal Justice: A Comparative Account of the Investigation and Prosecution of Crime in France. Bloomsbury Publishing. ISBN 978-1-84731-069-9. OCLC 1048749661.
  • Jurgens, Erik (6 July 2007). The principle of the Rule of Law (Report). Council of Europe. 11343. Retrieved 4 March 2023.

6. Usage in-line with ref tags:

(Article body text here.)<ref>{{Reflib|lib=Asea|Pomey-Boetto-2019|nob=yes}} pp. 8–10</ref>
{{Reflist}}
This example is adapted from Zambratija#History.

The Zambratija shipwreck is the earliest known example of sewn boat hull construction technique in the Mediterranean.[1]

References

  1. ↑ Pomey, Patrice; Boetto, Giulia (2019). "Ancient Mediterranean Sewn‐Boat Traditions" (PDF). International Journal of Nautical Archaeology. 48 (1). Taylor & Francis: 5–51. doi:10.1111/1095-9270.12337. ISSN 1057-2414.
    pp. 8–10

Updating domain containers

edit
Further information: Template:Reflib/Domain doc § Updating domain containers

It is recommended that only editors experienced in using citation templates update the domain subpages. Certain common errors or oversights such as omitting a terminating curly bracket could have repercussions in more than one article. For details, and additional information on adding new citations to a domain container, or adding, renaming or deleting a reference section, please see Template:Reflib/Domain doc#Updating domain containers.

Creating a new article domain

edit
Further information: Template:Reflib/Domain doc § New domains

If you have a set of citations associated with a topic area that is not already covered by one of the existing article domains (see table above), you can create one. Detailed instructions are available for how to create a new article domain. A preload page will create a starter page for you at the press of a button, and walk you through the process.

The procedure for creating a new article domain is low-risk and is encouraged. If you're familiar with the process, you can create a new domain page now, or just view the instructions for creating one.

Technical notes

edit

Duplicate references

edit

To avoid duplicate references appearing in an article, which would generate a harv multiple-targets error, this template detects and flags duplicate parameter values with an error message (see Example 4 above).

Multiple Reflib transclusions

edit

Reflib may be transcluded any number of times on a page, but the caveat about § Duplicate references applies globally. Whereas the template flags duplicate params, if you transclude Reflib twice and include the same section name in each one, then the template cannot detect it. This will result in the template name itself being displayed among the references, instead of the duplicate section name (see Example #5). If you see the template name itself appearing among the list of references in the article appendix, suspect a duplicate parameter.

Whitelisting false positive messages

edit

False positive "no target" error messages are generated by articles transcluding this template (or any CS1 template wrapper). Normally, whitelisting using template {{sfn whitelist}} is required to suppress these false-positive error messages, by adding the following template after transcluding Reflib:

{{sfn whitelist|CITEREF1|CITEREF2|. . .|CITEREF20}}

See this brief explanation and consider requesting white-listing by adding the CITEREF to Module:Footnotes/whitelist, if the same citations are being transcluded to multiple articles. This template is safe to use, regardless whether you request whitelisting or not.

Whitelisting unused chapters

edit

Contrary to the recommendation to only § Use one citation per section, it makes sense to list chapter templates {{harvc}} / {{citec}} for commonly cited chapters in the same section with the {{cite book}} citation they belong to, all together in one section of a Reflib.[c] However, if not all of the chapters are cited in a given article, there may be scripted warning-level messages of the type, "there is no link pointing to this citation" that appear for these chapter citations. These warnings may be suppressed, if desired, using template {{cite whitelink}}, listing the unused chapter CITEREFs as param values.

Notes

edit
  1. ↑ Users of object-oriented programming may view the analogy of an article domain as an object, a citation as a property or attribute of a given article domain-object, and the template as a method for getting a citation. Accessing a citation via the template will always work; accessing it directly via a subpage or whatever storage method is used currently, is not guaranteed to work across future upgrades to the template, so do that at your own risk.
  2. ↑ A domain container is a repository containing all the shared references for one article domain. This is currently implemented as a subpage of the Reflib template, so 'Template:Reflib/Template:Reflib/Domain doc' for this domain, but this is an internal design decision, and may change.
  3. ↑ For an example of a citation with multiple chapter templates in one section, see Template:Reflib/FCL § Tomlinson-1999.
The above documentation is transcluded from Template:Reflib/doc. (edit | history)
Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Reflib&oldid=1177580750"