Difference between revisions of "Template:Box"

From Trinity Desktop Project Wiki
Jump to navigation Jump to search
m (Add line break after box so that the floated icon does not break anything on the page)
m (Improved example)
Line 19: Line 19:
 
|caption=Welcome to the Trinity Desktop Project Wiki!
 
|caption=Welcome to the Trinity Desktop Project Wiki!
 
|text=The Trinity Desktop Environment (TDE) project is a feature rich desktop environment for Unix-like operating systems with a primary goal of retaining a traditional, efficient and productive user interface.
 
|text=The Trinity Desktop Environment (TDE) project is a feature rich desktop environment for Unix-like operating systems with a primary goal of retaining a traditional, efficient and productive user interface.
|icon=CrystalSVGFolderIcon128.png
+
|icon=TDE Logo.png
|background=#BFFFC2
+
|background=#ABCBF0
|highlight=#4DFF00
+
|highlight=#4C8ACE
 
}}
 
}}
 
</syntaxhighlight>
 
</syntaxhighlight>
Line 28: Line 28:
 
|caption=Welcome to the Trinity Desktop Project Wiki!
 
|caption=Welcome to the Trinity Desktop Project Wiki!
 
|text=The Trinity Desktop Environment (TDE) project is a feature rich desktop environment for Unix-like operating systems with a primary goal of retaining a traditional, efficient and productive user interface.
 
|text=The Trinity Desktop Environment (TDE) project is a feature rich desktop environment for Unix-like operating systems with a primary goal of retaining a traditional, efficient and productive user interface.
|icon=CrystalSVGFolderIcon128.png
+
|icon=TDE Logo.png
|background=#BFFFC2
+
|background=#ABCBF0
|highlight=#4DFF00
+
|highlight=#4C8ACE
 
}}
 
}}
 
</noinclude><includeonly><div style='background-color: {{{background|#D9D1FF}}}; border: solid 2px {{{highlight|#4A80FF}}}; border-left: solid 5px {{{highlight|#4A80FF}}}; padding: 2px 5px; min-height: 48px;'>
 
</noinclude><includeonly><div style='background-color: {{{background|#D9D1FF}}}; border: solid 2px {{{highlight|#4A80FF}}}; border-left: solid 5px {{{highlight|#4A80FF}}}; padding: 2px 5px; min-height: 48px;'>

Revision as of 14:52, 3 November 2021

Template:Box is a general-purpose template meant to display Wikipedia-style boxes with information such as warnings about the content of a page.

See the Template:Outdated template for an example of its usage.

To use this template, use {{Box|caption=...|text=...|icon=...|background=...|highlight=...}} on the target page.

  • caption (optional) is the box caption;
  • text (required) is the box contents;
  • icon (optional) is the icon displayed by the text ("Messagebox_info.png" by default);
  • background (optional) is the background color (#D9D1FF by default);
  • highlight (optional) is the highlight color (#4A80FF by default).

Using this template on a page results in a box being placed.

Example

{{Box
 |caption=Welcome to the Trinity Desktop Project Wiki!
 |text=The Trinity Desktop Environment (TDE) project is a feature rich desktop environment for Unix-like operating systems with a primary goal of retaining a traditional, efficient and productive user interface.
 |icon=TDE Logo.png
 |background=#ABCBF0
 |highlight=#4C8ACE
}}
TDE Logo.png
Welcome to the Trinity Desktop Project Wiki!
The Trinity Desktop Environment (TDE) project is a feature rich desktop environment for Unix-like operating systems with a primary goal of retaining a traditional, efficient and productive user interface.