Template:Forum message: Difference between revisions

From Hattrick
Jump to navigationJump to search
Ukelele (talk | contribs)
fancied up the forum message template / Please check for errors
Para Para (talk | contribs)
mNo edit summary
 
(18 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<div style="margin: 2em 0;">
<noinclude>{{documentation}}[[Category:Forum templates|Forum message]]</noinclude>
Keywords: '''{{{keywords}}}'''
{| width="{{{width|90%}}}" style="background-color: #738C73; border-collapse: collapse; font-size:92%; border:2px solid #738C73; padding: 0 1em 1em 1em;"
{| border="0" style="width: 90%; border-collapse: collapse; border: 1px solid #000000; background-color: #267F30;"
|+ {{#if:{{{keywords|}}}|Keywords: '''{{{keywords}}}'''|'''Forum message'''}}
| align="left" style="padding: 0.1em 0.5em;" | <font color="#FFFFFF"><b>By:</b> <u>[[{{{from}}}]]</u></font>&nbsp; [[image:Forumstar.gif]]&nbsp; [[image:Forumbookmark.gif]]&nbsp; [[image:Forumthumbsdown.gif]]
| border="0" width="24px" style="padding: 0.1em 0.5em; color:white" | From: || style="background-color: white; border-radius:9px;" | '''{{{from}}}''' ||
| align="right" style="padding: 0.1em 0.5em;" | <font color="#FFFFFF"><u>{{{msgid}}}</u> as reply to <u>{{{prevmsgid}}}</u></font>
| align="right" style="padding: 0.1em 0.5em; color:white" | '''{{messageid|{{{msgid}}}}}''' as reply to {{messageid|{{{prevmsgid}}}}}
|-
|-
| align="left" style="padding: 0.1em 0.5em;" | <font color="#FFFFFF"><b>To:</b> <u>{{{to}}}</u></font>&nbsp; [[image:Forumstar.gif]]&nbsp; [[image:Forumbookmark.gif]]
| colspan="3" style="padding: 0.1em 0.5em; color:white" | {{#if:{{{to|}}}| To: '''{{{to}}}'''|}}
| align="right" style="padding: 0.1em 0.5em;" | <font color="#FFFFFF">{{{datetime}}}</u></font>
| align="right" style="padding: 0.1em 0.5em; color:white" | {{{datetime}}}
|-
| colspan="2" style="padding: 0.5em 0.5em; background-color: white; border-top: 1px solid #C8D8C8;" | {{{text}}}
|-
|-
| colspan="4" style="padding: 0.5em 0.5em; background-color: #f9f9f9; border-top: 1px solid #C8D8C8;" | {{{text|''Insert text''}}}
|}
|}
</div>

Latest revision as of 18:42, 28 August 2020

[edit] Template documentation

This template can be used to quote forum messages

Usage:

{{Forum message
|keywords=
|from=
|to=
|msgid=
|prevmsgid=
|datetime=
|text=
}}
Forum message
From: {{{from}}} ({{{msgid}}}) as reply to ({{{prevmsgid}}})
{{{datetime}}}
Insert text