Difference between revisions of "Template:Message2"

From BattleMaster Wiki
Jump to navigation Jump to search
m (added optional Width specification)
m (modified default width)
Line 1: Line 1:
<includeonly><table border="0" cellspacing="0" cellpadding="2" style="width: {{{Width|100%}}}; margin: 1px 1px 1px 1px; border-right: 2px solid #A9A9A9; border-left: 2px solid #A9A9A9; border-bottom: 2px solid #A9A9A9; border-top: 2px solid #A9A9A9; background-color: #F9F9F9">
+
<includeonly><table border="0" cellspacing="0" cellpadding="2" style="width: {{{Width|650px}}}; margin: 1px 1px 1px 1px; border-right: 2px solid #A9A9A9; border-left: 2px solid #A9A9A9; border-bottom: 2px solid #A9A9A9; border-top: 2px solid #A9A9A9; background-color: #F9F9F9">
 
<tr>
 
<tr>
 
<td bgcolor="{{Message2/{{{Type}}}}}" style="font-size: larger; font-weight: bold; padding-left: 1%;">{{c|white|{{{Type}}}{{#if:{{{Sender|}}} | &nbsp;from {{{Sender}}}|}}}}</td>
 
<td bgcolor="{{Message2/{{{Type}}}}}" style="font-size: larger; font-weight: bold; padding-left: 1%;">{{c|white|{{{Type}}}{{#if:{{{Sender|}}} | &nbsp;from {{{Sender}}}|}}}}</td>

Revision as of 16:48, 9 July 2009

Template-info.svg Template Documentation
This documentation is transcluded from Template:Message2/doc.

ExamplesSandbox

Intro

This template is designed to allow the easy inclusion of IG style messages on the wiki in an easy-to-read format.

Usage

{{Message2
|Width=
|Type=
|Sender=
|Recipients=
|Content=
|Title=
}}

Parameters

  • Width: The width of the message box on the page. Please use percentage (e.g. 50%.) Default is 100%. Optional.
  • Type: Event, Letter, Roleplay, Report, Request, Orders, Important Orders, Out-of-Character. Required.
  • Sender: Who the message is from. Optional.
  • Recipients: Who the message is addressed to. Optional.
  • Content: The message body. Required.
  • Title: The message signature. Optional.

Subpages

This is for editing the template itself, not using it: