Template:Mail: Difference between revisions
From Tears of Themis Wiki
(Created page with "<noinclude>{{doc}}Category:Templates<!-- ### Cargo Declare -->{{#cargo_declare:_table=Mail |title=String |contact=String |event=Wikitext |message=Wikitext |date=Date }}</noinclude><includeonly><!-- ### Cargo Store -->{{#cargo_store:_table=Mail |title={{{title|}}} |contact={{{contact|}}} |event={{{event|{{ROOTPAGENAME}}}}} |message={{{message|}}} |date=Date }}<!-- ### Template Display -->{{Notable |header={{{contact|}}}: {{{title|}}} |content={{{message|}}} <div...") |
No edit summary |
||
Line 26: | Line 26: | ||
|header={{{contact|}}}: {{{title|}}} | |header={{{contact|}}}: {{{title|}}} | ||
|content={{{message|}}} | |content={{{message|}}} | ||
<div style="text-align: right;">{{{contact|}}}<br /> | <div style="text-align: right;">{{{signature|{{{contact|}}}}}}<br /> | ||
{{#replace:{{{date|}}}|-|.}}</div> | {{#replace:{{{date|}}}|-|.}}</div> | ||
{{#if:{{{attachment|}}}|<div style="border: 1px solid gray; background: #eee; padding: .5em;">'''Attached: '''{{{attachment|}}}</div>}} | {{#if:{{{attachment|}}}|<div style="border: 1px solid gray; background: #eee; padding: .5em;">'''Attached: '''{{{attachment|}}}</div>}} | ||
}}</includeonly> | }}</includeonly> |
Revision as of 21:43, 25 December 2022
Description
Template used to display and store a mail message in Cargo. The display is formatted as a Notable, so it's best placed within a NotableWrap.
Usage
{{Mail |contact= |title= |message= |date=YYYY-MM-DD |attachment= (optional) }}
Example
{{NotableWrap |notables= {{Mail |contact=DAVIS |title=Test Message |message=Dear Attorney,<br /> This is a test message.<br /> Don't you wish free chips were this easy? |date=2021-07-29 |attachment={{Currency|S-Chip}} x1800 }} }}
DAVIS: Test Message
Dear Attorney,
This is a test message.
Don't you wish free chips were this easy?
DAVIS
2021.07.29
2021.07.29
Attached: S-Chip x1800
The above documentation is transcluded from Template:Mail/doc. (edit | history)