More actions
mNo edit summary |
mNo edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 26: | Line 26: | ||
"tr": "Bilgilendirici ipucu metni." | "tr": "Bilgilendirici ipucu metni." | ||
} | } | ||
}, | |||
"color": { | |||
"label": "Border Color", | |||
"description": "Color of left border of info box" | |||
}, | |||
"file": { | |||
"label": "Image", | |||
"description": "Image file for Note box (use images from https://commons.wikimedia.org/wiki/Category:Images)", | |||
"example": "[[File:OOjs UI icon bellOutline-progressive.svg|OOjs_UI_icon_bellOutline-progressive]]" | |||
}, | |||
"background": { | |||
"label": "Background Color", | |||
"description": "Color of background of Note Box" | |||
} | } | ||
}, | }, | ||
"format": "inline" | "format": "inline", | ||
"paramOrder": [ | |||
"text", | |||
"color", | |||
"file", | |||
"background" | |||
], | |||
"description": "Parameters used in Note.base to create each sub-note." | |||
} | } | ||
</templatedata> | </templatedata> | ||
Latest revision as of 16:37, 2 March 2025
Templates work by copying off of one another, and inserting parameters as necessary. Please refer to Template Help for more information on this subject.
This wiki has a note template set up to use info, alert, warn, and error messages, as demonstrated below:
| Info note |
| Alert note |
| Warn note |
| Error note |
These four notes work by pulling the template Template:Note.base, and adding information of the left border color (labeled "color"), the background color (labeled "background"), and the picture file (labeled "file"). These four templates then use "{{{text}}}" to refer the text input they receive into the base template, allowing for proper rendering of the note.
| Replacing or removing "text={{{text}}}" from the template source code will result in the template not rendering text into the final product |
Parameters used in Note.base to create each sub-note.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tip text | text | Informative tip text. | Content | required |
| Border Color | color | Color of left border of info box | Unknown | optional |
| Image | file | Image file for Note box (use images from https://commons.wikimedia.org/wiki/Category:Images)
| Unknown | optional |
| Background Color | background | Color of background of Note Box | Unknown | optional |