Difference between revisions of "Template:Efn/doc"

From blackwiki
Jump to navigation Jump to search
imported>Finell
(More accurate)
imported>Hl
(add main desc; set 'Note' req.; c/e labels and descriptions; make all three parameters 'suggested')
Line 18: Line 18:
 
<templatedata>
 
<templatedata>
 
{
 
{
 +
"description": "Inserts an explanatory footnote. Notes can be named and grouped.",
 
"params": {
 
"params": {
 
"1": {
 
"1": {
Line 25: Line 26:
 
"content"
 
"content"
 
],
 
],
"label": "text of the note",
+
"label": "Note",
"description": "The text of the note",
+
"description": "Text of the note",
 
"type": "content",
 
"type": "content",
"suggested": true
+
"required": true
 
},
 
},
 
"name": {
 
"name": {
"label": "Reference name",
+
"label": "Ref. name",
"description": "Creates the efn as a named reference",
+
"description": "Reference name of the note",
"type": "string"
+
"type": "string",
 +
"suggested": true
 
},
 
},
 
"group": {
 
"group": {
 
"label": "Reference group",
 
"label": "Reference group",
"description": "Adds the reference to a styled group",
+
"description": "Styled group to which the note belongs",
 
"example": "lower-greek, note, upper-alpha",
 
"example": "lower-greek, note, upper-alpha",
"type": "string"
+
"type": "string",
 +
"suggested": true
 
}
 
}
 
}
 
}
 
}
 
}
 
</templatedata>
 
</templatedata>

Revision as of 22:42, 15 April 2019

Explanatory footnotes or Efn are footnotes which provide something other than, or more than, a reference to a source that supports the accompanying text. The following explanation is transcluded from Help:Footnotes#Footnotes: predefined groups. {{#section:Help:footnotes|pregroup}}

Example articles

Inserts an explanatory footnote. Notes can be named and grouped.

Template parameters

ParameterDescriptionTypeStatus
Note1 reference text content

Text of the note

Contentrequired
Ref. namename

Reference name of the note

Stringsuggested
Reference groupgroup

Styled group to which the note belongs

Example
lower-greek, note, upper-alpha
Stringsuggested