Difference between revisions of "Template:Mailing list member"
Jump to navigation
Jump to search
imported>Technical 13 (adjust color a smidge...) |
imported>Technical 13 (If the "inactive" date is less than a year, show comment in a green color && still send them messages.) |
||
| Line 6: | Line 6: | ||
|{{#ifeq:{{Yesno|{{{inactive|no}}}}}|yes | |{{#ifeq:{{Yesno|{{{inactive|no}}}}}|yes | ||
|{{#if:{{{user|}}} | |{{#if:{{{user|}}} | ||
| − | | | + | |{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-1 year}}|{{User|{{{user}}}}}|{{#if:{{{user|}}} |
| + | |{{#target:User talk:{{{user}}}}} | ||
|{{#if:{{{page|}}} | |{{#if:{{{page|}}} | ||
| − | |[[{{{page}}}]] <span class="inactive-member" style="font-size: 0.95em; font-weight: bold; color: #{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-2 years}}|F00|{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-1 year}}|555|3E3}}}};">(Inactive since: {{#time:F Y|{{{inactive}}}}})</span> | + | |{{#target:{{{page}}}}} |
| + | |{{Error|No user or page defined}} | ||
| + | }} | ||
| + | }}}} <span class="inactive-member" style="font-size: 0.95em; font-weight: bold; color: #{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-2 years}}|F00|{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-1 year}}|555|3E3}}}};">(Inactive since: {{#time:F Y|{{{inactive}}}}})</span> | ||
| + | |{{#if:{{{page|}}} | ||
| + | |{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-1 year}}|[[{{{page}}}]]|{{#if:{{{user|}}} | ||
| + | |{{#target:User talk:{{{user}}}}} | ||
| + | |{{#if:{{{page|}}} | ||
| + | |{{#target:{{{page}}}}} | ||
| + | |{{Error|No user or page defined}} | ||
| + | }} | ||
| + | }}}} <span class="inactive-member" style="font-size: 0.95em; font-weight: bold; color: #{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-2 years}}|F00|{{#ifexpr:{{#time:U|{{{inactive}}}}}<{{#time:U|-1 year}}|555|3E3}}}};">(Inactive since: {{#time:F Y|{{{inactive}}}}})</span> | ||
|{{Error|No user or page defined}} | |{{Error|No user or page defined}} | ||
}} | }} | ||
| Line 17: | Line 29: | ||
|{{#target:{{{page}}}}} | |{{#target:{{{page}}}}} | ||
|{{Error|No user or page defined}} | |{{Error|No user or page defined}} | ||
| − | + | }} | |
}} | }} | ||
}} | }} | ||
}}<noinclude> | }}<noinclude> | ||
{{Doc}}</noinclude> | {{Doc}}</noinclude> | ||
Revision as of 20:35, 23 February 2014
No user or page defined
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Similar to m:Template:Target, this is a wrapper template to make it easier to create and manage mailing lists using the mass message system, which began in 2014.
Usage
- {{Mailing list member|user=Example}}
- {{Mailing list member|page=Example}}
TemplateData
This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.
TemplateData for Mailing list member
A wrapper template to make it easier to create and manage mailing lists using the new mass message system.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Username | user | User name of the user to add to the mailing list. Either this '''or''' page is required.
| User | optional |
| Project pagename | page | Full page name of the project to add to the mailing list. Either this '''or''' user is required.
| Page | optional |
| The above documentation is transcluded from Template:Mailing list member/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |