Template:Message: Difference between revisions
Appearance
Content deleted Content added
Courcelles (talk | contribs) m Changed protection level of Template:Message: Batch semi-protection of highly visible templates listed on Wikipedia:Database reports/Unprotected templates with many transclusions/4 Any that were full-protected I will restore. using TW ([edi |
simplify |
||
(12 intermediate revisions by 8 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}}};}} |
|||
}}<noinclude> |
|||
border: 1px solid RoyalBlue; |
|||
{{#if:{{{border-color|}}}|border-color: {{{border-color}}};}} |
|||
{{#if:{{{color|}}}|color: {{{color}}};}} |
|||
font-weight: bold; |
|||
{{#if:{{{margin|}}} | margin: {{{margin}}}; | margin: 0em 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:{{{link|User talk:{{BASEPAGENAMEE}}}}}|action=edit§ion=new}} <font color="{{{linkcolor|#5a3696}}}">{{{message|new message}}}</font>].</div><noinclude> |
|||
{{pp-template|small=yes}} |
|||
{{documentation}}</noinclude> |
{{documentation}}</noinclude> |
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.