Module:Footnotes/whitelist/doc

This page is a formatted list of anchor IDs and associated citation wrapper-templates. Because of technical limitations, short-cite templates, via Module:Footn

Module:Footnotes/whitelist/doc

This page is a formatted list of anchor IDs and associated citation wrapper-templates. Because of technical limitations, short-cite templates, via Module:Footnotes, will emit false-positive error messages for citation wrapper-templates. The anchor IDs listed here instruct Module:Footnotes to suppress error messages for short-cite templates that link to the anchor IDs listed here so long as the associated citation wrapper-template is present in the article. This is an imperfect system that will allow false-negatives because this mechanism will suppress valid error messages in the absence of a full-cite target. Adding an anchor ID and matching template to this list will suppress all no target error messages for that anchor ID / template pair.

Adding templates to the whitelist

There are three whitelist mechanisms for templates: each one is appropriate for different template behaviors:

  1. Wrapper template produces small number of different references, whose name and date is suitable for short footnotes, name and date not overriden
    In this case, the CITEREF should be added to the whitelist variable, with a key of the form CITEREFNameDate and value being a list of templates that can generate that CITEREF.
    • Do not include disambiguation letters in whitelist entries. In other words, use "CITEREFSmith2018" in this whitelist even when the cite template generates "CITEREFSmith2018a".
    • Module:Footnotes/whitelist/sort is a tool to aid the maintenance of whitelist{}.
  2. Wrapper template produces name and date suitable for short footnotes, but the name and date often get overriden and can generate many different references.
    These wrapper templates should be added to the wrapper_template variable. The module will then look for uses of the template where the name and/or date are overriden.
    • The default name+date should be supplied either in wrapper_template_defaults (if there is a single name+date default), or in wrapper_template_defaults_vol (if the name+date default depends on the volume number).
    • Redirects or further wrapping should be described in wrapper_template as new keys: the value of these keys should be name+date entries in wrapper_template_defaults or wrapper_template_defaults_vol.
    • If there is no sensible default name or date (e.g., {{Cite ODNB}}), you can use an empty string '' for the default.
  3. Wrapper template produces unusual short footnotes (e.g. without an author or date)
    In this case, a Lua pattern that covers all of the CITEREF cases should be added to the wrapper_template_patterns variable. Each entry is a pair of lists: a list of templates that share the Lua pattern(s), and a list of Lua patterns that cover the CITEREFs generated by all of the template.

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.