Template:Announcement: Difference between revisions

From TEHCC Wiki
Jump to navigation Jump to search
(trying no specified width and different color)
(change to light salmon)
 
(2 intermediate revisions by the same user not shown)
Line 11: Line 11:


Example output:  
Example output:  
{| cellpadding="2" cellspacing="5" style="border:1px solid Crimson; vertical-align:top; background:DarkSalmon;"
{| width="60%" cellpadding="2" cellspacing="5" style="border:1px solid Crimson; vertical-align:top; background:LightSalmon;"
! <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:LightSalmon; font-size:120%; font-weight:bold; border:0px solid LightSalmon; 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="60%" cellpadding="2" cellspacing="5" style="border:1px solid Crimson; vertical-align:top; background:LightSalmon;"
! <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:LightSalmon; font-size:120%; font-weight:bold; border:0px solid LightSalmon; text-align:center; color:#000; padding:0.2em 0.4em;">{{{Title|}}}</h2>
|-
|-
|style="color:#000;"| {{{Body|}}}  
|style="color:#000;"| {{{Body|}}}  
|}</includeonly>
|}</includeonly>

Latest revision as of 12:12, 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