• Home
  • Random
  • Log in
  • Settings
  • About Safer nicotine wiki
  • Disclaimers
Safer nicotine wiki

Template:Cite IETF/makelink

  • Language
  • Watch
  • View source
< Template:Cite IETF
Template documentation[view] [edit] [history] [purge]

This template is a "subroutine" of {{Cite IETF}} used for conditionally creating links to https://tools.ietf.org/ for different types of documents.

It is invoked as:

{{Cite IETF/makelink
| Url = <value of |url= or |archiveurl= parameters>
| Anchor = <section or page anchor generated from the value of the |section= or |page= parameters>
| Autolink = <value of |autolink= parameter>
| Rfc = <value of |rfc= parameter>
| Std = <value of |std= parameter>
| Bcp = <value of |bcp= parameter>
| Fyi = <value of |fyi= parameter>
| Draft = <value of |draft= parameter>
| Ien = <value of |ien= parameter>
| Rtr = <value of |rtr= parameter>
}}

It uses the following algorithm:

  1. If the |Url= parameter is given the template will simply display that value along with an optional anchor generated from |Anchor= appended.
  2. If the |Url= parameter is not given, if any of |Rfc=, |Std=, |Bcp=, |Fyi=, |Draft=, |Ien=, or |Rtr= parameters are given, and the |Autolink= parameter evaluates to anything other than no then the template will generate a url using one of the document type identifiers given.
  3. The template will give priority to the first of the parameters: |Rfc=, |Std=, |Bcp=, |Fyi=, |Draft=, |Ien=, or |Rtr= in this order and create a link using the first matching parameter.
  4. If the |Anchor= parameter is given, it will be appended to the generated url.

This "subroutine" is designed for {{Cite IETF}} and makes assumptions that may not be valid elsewhere.

Examples:

  • "{{Cite IETF/makelink |Fyi = 17 |Anchor = #page-5}}" produces "https://datatracker.ietf.org/doc/html/fyi17#page-5".
  • "{{Cite IETF/makelink |Url = https://datatracker.ietf.org/doc/html/rfc2119 |Anchor = #section-1}}" produces "https://datatracker.ietf.org/doc/html/rfc2119#section-1".
  • "{{Cite IETF/makelink |Rfc = 1122 |Std = 3}}" produces "https://datatracker.ietf.org/doc/html/rfc1122".
  • "{{Cite IETF/makelink |Rfc = 822 |Std = 11 |Anchor = #section-4}}" produces "https://datatracker.ietf.org/doc/html/rfc822#section-4".
  • "{{Cite IETF/makelink |Rfc = 854 |Std = 8}}" produces "https://datatracker.ietf.org/doc/html/rfc854".
The above documentation is transcluded from Template:Cite IETF/makelink/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://safernicotine.wiki/mediawiki/index.php?title=Template:Cite_IETF/makelink&oldid=21173"
Last edited on 9 October 2025, at 21:20
Cookies help us deliver our services. By using our services, you agree to our use of cookies.
More information

Languages

      This page is not available in other languages.

      Safer nicotine wiki
      • Creative Commons Attribution-ShareAlike
      • Powered by MediaWiki
      • Monitored by WikiApiary
      • ipv6 ready
      • Powered by Semantic MediaWiki
      • This page was last modified on 9 October 2025, at 21:20. Warning: Page may not contain recent updates.
      • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
      • Privacy policy
      • About Safer nicotine wiki
      • Disclaimers
      • Terms of Use
      • Desktop
      • Data access
      • Developers
      • Statistics
      • Cookie statement