Template:RFC/text: Difference between revisions

From Thought dump
Jump to navigation Jump to search
Created page with "RFC {{{1}}}"
 
No edit summary
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
RFC {{{1}}}
<includeonly>{{#if: {{{section|}}}
  | section {{{section}}} of&nbsp;
  | {{#if: {{{page|}}}
      | page {{{page}}} of&nbsp;
      |
    }}
}}RFC {{{1}}}</includeonly><noinclude>
''Demo:''
 
* {{RFC/text|123}}
* {{RFC/text|123|page=42}}
* {{RFC/text|123|section=6.2.1}}
 
<templatedata>
{
"params": {
"1": {
"label": "RFC number",
"type": "number",
"required": true
},
"section": {
"label": "Section reference. Overrides “page” parameter.",
"description": "Use dotted numbers",
"example": "6.2.1",
"type": "string"
},
"page": {
"label": "Page number",
"example": "42",
"type": "number"
}
},
"description": "Produces textual label for referencing IETF RFCs.",
"format": "inline"
}
</templatedata>
 
</noinclude>

Latest revision as of 15:12, 19 August 2024

Demo:

  • RFC 123
  • page 42 of RFC 123
  • section 6.2.1 of RFC 123

Produces textual label for referencing IETF RFCs.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
RFC number1

no description

Numberrequired
Section reference. Overrides “page” parameter.section

Use dotted numbers

Example
6.2.1
Stringoptional
Page numberpage

no description

Example
42
Numberoptional