Difference between revisions of "Template:TipBox"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
m (Small formatting fixes)
m (Configurable icon)
 
Line 7: Line 7:
 
* <code>caption</code> is the box caption (default: '''Tip''');
 
* <code>caption</code> is the box caption (default: '''Tip''');
 
* <code>text</code> is the box content;
 
* <code>text</code> is the box content;
  +
* <code>icon</code> is the box icon (default: [[:File:Messagebox_info.png]]);
   
   
Line 17: Line 18:
 
{{TipBox | text = "This is a tip box!"}}
 
{{TipBox | text = "This is a tip box!"}}
   
</noinclude><includeonly>{{Box|caption={{{caption|Tip}}}|text={{{text|}}}|icon=Messagebox_info.png|background=aliceblue|highlight=skyblue}}</includeonly>
+
</noinclude><includeonly>{{Box|caption={{{caption|Tip}}}|text={{{text|}}}|icon={{{icon|Messagebox_info.png}}}|background=aliceblue|highlight=skyblue}}</includeonly>

Latest revision as of 14:34, 6 January 2022

Template:TipBox is a template based on Template:Box. Use it for displaying tips and miscellaneous useful information.


Arguments:

  • caption is the box caption (default: Tip);
  • text is the box content;
  • icon is the box icon (default: File:Messagebox_info.png);


Example

{{TipBox | text = "This is a tip box!"}}
Messagebox info.png
Tip
"This is a tip box!"