More actions
mNo edit summary Tag: Manual revert |
mNo edit summary |
||
| Line 9: | Line 9: | ||
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. | 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. | ||
{{Note.warn|text=Replacing or removing "text={{{text}}}" from the template source code will result in the template not rendering text into the final product}} | {{Note.warn|text=Replacing or removing "text={{{text}}}" from the template source code will result in the template not rendering text into the final product}} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"text": { | |||
"label": { | |||
"en": "Tip text", | |||
"cs": "Text tipu", | |||
"tr": "İpuçu metni" | |||
}, | |||
"type": "content", | |||
"required": true, | |||
"description": { | |||
"en": "Informative tip text.", | |||
"cs": "Text informativního tipu.", | |||
"tr": "Bilgilendirici ipucu metni." | |||
} | |||
} | |||
}, | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
Revision as of 14:32, 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 |
No description.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tip text | text | Informative tip text. | Content | required |