Template:Note/doc

From Terraria Mods Wiki
Jump to navigation Jump to search

This template formats an input text in a standardized "note" style.

Usage

All parameters are optional, except the first.

{{ note | <note text> | small = y/yes | paren = y/yes | block = y/yes | before = <text in front of the note> }}

First unnamed parameter

Text to format.

small

Reduces the size of the text, useful where space is an issue, e.g. in infobox templates.

paren

Encloses the text in parentheses.

block

Displays the text in a <div> instead of in a <span>, so the text will be in its own paragraph rather than inline.

before

Text to display directly in front of the note text. It will be formatted as well, but will not be included in the parentheses from $paren.

Examples

Code Result
{{note|some note}} some note
{{note|some note|paren=y}} (some note)
item {{note|note|paren=y|before=some&#32;}} item some (note)
some {{note|some block note|paren=y|block=y}} text some
(some block note)
text
some {{note|some small note|paren=y|small=y}} text some (some small note) text