Template:Message: Difference between revisions
Appearance
Content deleted Content added
Undid revision 280320979 by 86.40.199.34 (talk) |
simplify |
||
(30 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
{{mbox |
|||
<div class="plainlinks" style=" |
|||
| image = none |
|||
background-color: {{{bgcolor|LightBlue}}}; |
|||
| style = background-color: {{{bgcolor|LightBlue}}};border: 1px solid {{<includeonly>safesubst:</includeonly>#if:{{{border-color|}}}|{{{border-color}}}|RoyalBlue}};{{<includeonly>safesubst:</includeonly>#if:{{{width|}}}|width: {{{width}}};}}{{<includeonly>safesubst:</includeonly>#if:{{{color|}}}|color: {{{color}}};}}font-weight: bold;{{<includeonly>safesubst:</includeonly>#if:{{{margin|}}} | margin: {{{margin}}}; | margin: 0em 0 1em;}}{{<includeonly>safesubst:</includeonly>#if:{{{padding|}}} | padding: {{{padding}}}; | padding: .5em 1em;}}{{<includeonly>safesubst:</includeonly>#if:{{{text-align|}}} | text-align: {{{text-align}}}; | text-align: center;}}{{{extra-style|}}} |
|||
{{#if:{{{extra-style|}}}|{{{extra-style}}};}} |
|||
| text = Please leave a <span style="color: {{{linkcolor|#5a3696}}};">{{edit|{{{link|{{TALKPAGENAME}}}}}|section=new|{{{message|new message}}}}}</span>{{<includeonly>safesubst:</includeonly>#if:{{{email|}}}| or [{{fullurl:Special:Emailuser/{{PAGENAMEE}}}} <span style="color: {{{linkcolor|#5a3696}}};">e-mail me</span>]}}. |
|||
{{#if:{{{width|}}}|width: {{{width}}};}} |
|||
⚫ | |||
border: 1px solid RoyalBlue; |
|||
{{documentation}}</noinclude> |
|||
{{#if:{{{border-color|}}}|border-color: {{{border-color}}};}} |
|||
{{#if:{{{color|}}}|color: {{{color}}};}} |
|||
font-weight: bold; |
|||
{{#if:{{{margin|}}} | margin: {{{margin}}}; | margin: 2em 0 1em;}} |
|||
{{#if:{{{padding|}}} | padding: {{{padding}}}; | padding: .5em 1em;}} |
|||
vertical-align: middle; |
|||
clear: both; |
|||
{{#if:{{{text-align|}}} | text-align: {{{text-align}}}; | text-align: left;}} |
|||
">Please leave a [{{fullurl:{{ns:3}}:{{PAGENAMEE}}|action=edit§ion=new}} <span style="color: {{{linkcolor|#5a3696}}};">new message</span>].</div><noinclude> |
|||
==Usage== |
|||
<pre><nowiki> |
|||
{{Message |
|||
| bgcolor = background color |
|||
| border-color = border color |
|||
| color = text color |
|||
| linkcolor = link color (for "new message" link) |
|||
| extra-style = extra styles, like -moz-border-radius etc... |
|||
| width = box width |
|||
| margin = margin measurements |
|||
| padding = padding measurements |
|||
| text-align = text alignment (left, right, center) |
|||
}} |
|||
</nowiki></pre> |
|||
All parameters are optional, and default to the appearance shown above. |
|||
Just put <code><nowiki>{{</nowiki>{{BASEPAGENAME}}<nowiki>}}</nowiki></code> at the top of your talk page or user page. This will create the "Please leave a new message" link as shown above. You can use <code>subst:</code> if you want to, but then you won't benefit from updates to this template. |
|||
==See also== |
|||
* {{tl|comment}} for a generic box to be used in other locations |
|||
*<nowiki>{{</nowiki>[[Template:Message2|Message2]]<nowiki>}}</nowiki> (lets someone know that there is a message for them at your talk page) |
|||
{{Usertalk new message see also}} |
|||
[[Category:User talk header templates|{{PAGENAME}}]] |
|||
⚫ |
Latest revision as of 18:28, 16 September 2020
Please leave a . |
Usage
{{Message | email = yes | bgcolor = background color | border-color = border color | color = text color | linkcolor = link color (for "new message" or {{{message}}} link) | message = the text of the link | link = the actual link, if it is not your user talk page; type out the full link | extra-style = extra styles, like border-radius etc... | width = box width | margin = margin measurements | padding = padding measurements | text-align = text alignment (left, right, center) }}
All parameters are optional, and default to the appearance shown above.
Just put {{Message}}
at the top of your talk page or user page. This will create the "Please leave a new message" link as shown above. You can use subst:
if you want to, but then you won't benefit from updates to this template.