Template:Announcement: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(trying no specified width and different color)
(try floatleft)
Line 11: Line 11:


Example output:  
Example output:  
{| cellpadding="2" cellspacing="5" style="border:1px solid Crimson; vertical-align:top; background:DarkSalmon;"
{| width="100%" cellpadding="2" cellspacing="5" style="float:left; border:1px solid Crimson; vertical-align:top; background:LightCoral;"
! <h2 style="margin:0; background:DarkSalmon; font-size:120%; font-weight:bold; border:0px solid #E39C79; text-align:center; color:#000; padding:0.2em 0.4em;">Title</h2>
! <h2 style="margin:0; background:LightCoral; font-size:120%; font-weight:bold; border:0px solid LightCoral; text-align:center; color:#000; padding:0.2em 0.4em;">Title</h2>
|-
|-
|style="color:#000;"| Body text  
|style="color:#000;"| Body text  
Line 18: Line 18:
[[Category:Universal Templates]]
[[Category:Universal Templates]]
</noinclude>
</noinclude>
<includeonly>{| width="100%" cellpadding="2" cellspacing="5" style="border:1px solid Crimson; vertical-align:top; background:LightCoral;"
<includeonly>{| width="100%" cellpadding="2" cellspacing="5" style="float:left; border:1px solid Crimson; vertical-align:top; background:LightCoral;"
! <h2 style="margin:0; background:LightCoral; font-size:120%; font-weight:bold; border:0px solid #E39C79; text-align:center; color:#000; padding:0.2em 0.4em;">{{{Title|}}}</h2>
! <h2 style="margin:0; background:LightCoral; font-size:120%; font-weight:bold; border:0px solid LightCoral; text-align:center; color:#000; padding:0.2em 0.4em;">{{{Title|}}}</h2>
|-
|-
|style="color:#000;"| {{{Body|}}}  
|style="color:#000;"| {{{Body|}}}  
|}</includeonly>
|}</includeonly>

Revision as of 13:07, 23 December 2018

This is used to put an announcement box at the location included. It's a full width table with a header row and a main text cell below it.

It should be called in the following format.

{{Announcement
 |Title=
 |Body=
}}

Edit the page to see the template text.

Example output:

Title

Body text