This template is a "subroutine" of {{Cite IETF}} used for conditionally creating links for different types of documents.
This "subroutine" is designed for {{Cite IETF}} and makes assumptions that may not be valid elsewhere.
It uses the following algorithm:
|Url=
parameter is given the template will simply display that value along with an optional anchor generated from |Anchor=
appended.|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.|Rfc=
, |Std=
, |Bcp=
, |Fyi=
, |Draft=
, |Ien=
, or |Rtr=
in this order and create a link using the first matching parameter.|Anchor=
parameter is given, it will be appended to the generated url.It is invoked as:
|url=
or |archiveurl=
parameters>|section=
or |page=
parameters>|autolink=
parameter>|rfc=
parameter>|std=
parameter>|bcp=
parameter>|fyi=
parameter>|draft=
parameter>|ien=
parameter>|rtr=
parameter>{{Cite IETF/makelink |Fyi=17 |Anchor=#page-5}}
{{Cite IETF/makelink |Url=https://datatracker.ietf.org/doc/html/rfc2119 |Anchor=#section-1}}
{{Cite IETF/makelink |Rfc=1122 |Std=3}}
{{Cite IETF/makelink |Rfc=822 |Std=11 |Anchor=#section-4}}
{{Cite IETF/makelink |Rfc=854 |Std=8}}