Jump to content

Template:Banner: Difference between revisions

From UNIVER.SYS Wiki
Created page with "<includeonly><onlyinclude><table style="background: {{#if:{{{background|}}}|{{{background}}}|rgba(255, 255, 255, 0.2)}}; border:{{#if:{{{border-thickness|}}}|{{{border-thickness}}}|2}}px solid {{#if:{{{border|}}}|{{{border}}}|rgba(255, 255, 255, 0.5)}}; text-align:center; width:75%; margin: auto;"> <tr> {{#if:{{{icon|}}}|<td style="width:0;padding:0">[[File:{{{icon}}}|{{#if:{{{icon-size|}}}|{{{icon-size}}}|64}}px]]</td>}} <td>{{{message}}}</td> </tr> </table></onlyinclud..."
 
mNo edit summary
 
Line 30: Line 30:
|background = #13117B
|background = #13117B
|border = #ccaa8e
|border = #ccaa8e
|message = '''"Damn it, some lines were missing here!"'''<br>
|message = '''"Damn it, some lines are missing here!"'''<br>
This article is '''incomplete'''. Please wait as the Techne gather more information.}}</nowiki>
This article is '''incomplete'''. Please wait as the Techne gather more information.}}</nowiki>
{{Banner
{{Banner
Line 36: Line 36:
|background = #13117B
|background = #13117B
|border = #ccaa8e
|border = #ccaa8e
|message = '''"Damn it, some lines were missing here!"'''<br>
|message = '''"Damn it, some lines are missing here!"'''<br>
This article is '''incomplete'''. Please wait as the Techne gather more information.}}
This article is '''incomplete'''. Please wait as the Techne gather more information.}}


[[Category:Templates]]
[[Category:Templates]]

Latest revision as of 10:12, 2 April 2025

General purpose banner, can be used as a base for other Banner Templates.

Usage

{{Banner
|icon = Icon.png
|icon-size = Width of the icon in pixels (64 by default)
|background = Background Color
|border = Border Color
|border-thickness = Thickness of the border in pixels (2 by default)
|message = Text of the Banner, use <br> for line breaks}}

Everything is optional except the message.

The icon should be squared.

Examples

{{Banner|message='''This page is under construction!''' Please come back later!}}
This page is under construction! Please come back later!
{{Banner
|icon = Mike Icon.png
|background = #13117B
|border = #ccaa8e
|message = '''"Damn it, some lines are missing here!"'''<br>
This article is '''incomplete'''. Please wait as the Techne gather more information.}}
"Damn it, some lines are missing here!"
This article is incomplete. Please wait as the Techne gather more information.