VOOZH about

URL: https://en.wikipedia.org/wiki/Template:Cite_IETF/refanchor

⇱ Template:Cite IETF/refanchor - Wikipedia


Jump to content
From Wikipedia, the free encyclopedia
👁 Image
Template documentation
[view] [edit] [history] [purge]

This template is a "subroutine" of {{Cite IETF}} used for conditionally generating an anchor name.

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

Background

[edit]

It uses the following algorithm:

  1. If any of |Rfc=, |Std=, |Bcp=, |Fyi=, |Draft=, |Ien=, or |Rtr= parameters are given, the template will display one of those parameter types and the associated value.
  2. The template will give priority to the first of the parameters: |Rfc=, |Std=, |Bcp=, |Fyi=, |Draft=, |Ien=, or |Rtr= in this order and use the first matching parameter.
  3. If none of the above parameters are given and the |Id= parameter is given the template will simply display that value.
  4. If the |Prefix= parameter is given the template output is prefixed with this value.
  5. If the |Sep= parameter is given, this value will be placed between the document type and identifier.

Use

[edit]

It is invoked as:

| = text used to prefix template result
| = text used to separate the document type and identifier
| = <value of |id= parameter>
| = <value of |rfc= parameter>
| = <value of |std= parameter>
| = <value of |bcp= parameter>
| = <value of |fyi= parameter>
| = <value of |draft= parameter>
| = <value of |ien= parameter>
| = <value of |rtr= parameter>

Examples

[edit]
{{Cite IETF/refanchor |Prefix=IETF |Rfc=2119 |Bcp=4}}
produces "IETF_RFC 2119".
{{Cite IETF/refanchor |Rfc=2119}}
produces "RFC 2119".