Difference between revisions of "Template:TipBox"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
(New Box subtemplate)
 
m (Configurable icon)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
__NOTOC__<noinclude>
 
__NOTOC__<noinclude>
'''Template:TipBox''' is a template based on [[:Template:Box]].
+
'''Template:TipBox''' is a template based on [[:Template:Box]]. Use it for displaying tips and miscellaneous useful information.
   
Use it for displaying tips and miscellaneous useful information.
 
   
 
Arguments:
 
Arguments:
  +
* <code>caption</code> is the box caption (default: <tt>Tip</tt>);
+
* <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!"