Template:Note/Doc: Difference between revisions

DoggoBit (talk | contribs)
No edit summary
DoggoBit (talk | contribs)
Hide templatedata from doc page, make note message required
 
(One intermediate revision by the same user not shown)
Line 14: Line 14:


{{note|leading=For your information.|This information is important and highlighted to you.}}
{{note|leading=For your information.|This information is important and highlighted to you.}}
<includeonly>
=== Template data ===
<templatedata>
{
  "description": "Display an important message without disrupting the normal reading flow",
  "params": {
    "1": {
      "label": "Note content",
      "description": "The message to be included in the note",
      "type": "string",
      "required": true
    },
    "leading": {
      "label": "Leading text",
      "description": "If set, this will replace the 'Note:' text at the beginning of the note",
      "type": "string"
    }
  }
}
</templatedata>
</includeonly>