Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Note.documentation: Difference between revisions

Template page
Created page with "Templates work by copying off of one another, and inserting parameters as necessary."
 
Further clarification on note doccumentation
Line 1: Line 1:
Templates work by copying off of one another, and inserting parameters as necessary.
Templates work by copying off of one another, and inserting parameters as necessary. Please refer to [https://www.mediawiki.org/wiki/Help:Templates 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:
 
{{Note.info|text=Info note}}
 
{{Note.alert|text=Alert note}}
 
{{Note.warn|text=Warn note}}
 
{{Note.error|text=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.
{{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}}

Revision as of 15:37, 26 February 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:


OOjs_UI_icon_info_big_progressive Info note


OOjs_UI_icon_alert-yellow Alert note


OOjs_UI_icon_alert-warning Warn note


OOjs_UI_icon_error-destructive 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.

OOjs_UI_icon_alert-warning Replacing or removing "text={{{text}}}" from the template source code will result in the template not rendering text into the final product