Template:Cite IETF/doctypes/doc

This template is a "subroutine" of Cite IETF used for conditionally generating a list of associated document identifiers.

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

Background
It uses the following algorithm:
 * 1) If the Id parameter is given the template will simply display that value. If the Idlink parameter is also given, it will be used to create an anchor link.
 * 2) If the Id parameter is not given, for the Std, Bcp, Fyi, Rfc, Draft, Ien, and Rtr parameters given, the template will append the document identifiers STD ##  BCP ##  FYI ##  RFC ####  I-D xxxxxx  IEN ###  RTR ## in this order with the numbers or identifiers passed to these parameters.
 * 3) If the Idlink and Idlinktype parameters are given they will be used to create a wikilink for the document type specified by the Idlinktype parameter.
 * 4) The value of Sep is used to separate the document identifiers: BCP 14. RFC 2119
 * 5) No trailing separator is generated; this is added after being passed to Citation/core from Cite IETF.
 * 6) The document identifier and number is separated with a   tag to prevent Rfcurl from automatically linking RFC ####.

Use
It is invoked as:

Examples
produces "". produces "". produces "".

pt:Predefinição:Cite IETF/doctypes/doc