Difference between revisions of "Template:Deceased Wikipedian/doc"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(update after addition of new parameters, add some examples)
imported>GreenComputer
(→‎Usage: Tweak)
 
(9 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{template shortcut|deceased}}
 
<!-- Categories and interwikis go at the bottom of this page. -->
 
<!-- Categories and interwikis go at the bottom of this page. -->
  
Line 8: Line 9:
 
; Basic usage
 
; Basic usage
  
<pre>{{deceased}}</pre>
+
&#123;{deceased}}
 +
 
 +
; Detect "his"/"her"/"their"
 +
 
 +
&#123;{deceased|''username''}}
  
 
; All parameters
 
; All parameters
  
<pre>{{deceased
+
&#123;{deceased
|page    =  
+
| ''username''
|note    =  
+
| page    =  
|message =  
+
| note    =  
}}</pre>
+
| message =  
 +
}}
  
 
== Parameters ==
 
== Parameters ==
  
 +
* The first positional parameter is for the username. If entered, it detects whether to use "his", "her", or "their", depending on the gender value set in the user's preferences.
 
* <code>page</code> - this parameter replaces the text "user page".
 
* <code>page</code> - this parameter replaces the text "user page".
 
* <code>note</code> - an extra note after the standard message.
 
* <code>note</code> - an extra note after the standard message.
Line 26: Line 33:
 
== Examples ==
 
== Examples ==
  
*<code><nowiki>{{Deceased Wikipedian}}</nowiki></code>
+
*<code><nowiki>{{deceased}}</nowiki></code>
 +
 
 +
{{deceased|nocat=true}}
 +
 
 +
*<code><nowiki>{{deceased|Example female}}</nowiki></code>
 +
 
 +
{{deceased|nocat=true|Example female}}
 +
 
 +
*<code><nowiki>{{deceased|page=editor review}}</nowiki></code>
 +
 
 +
{{deceased|nocat=true|page=editor review}}
 +
 
 +
*<code><nowiki>{{deceased|note=Learn more about this Wikipedian at [[Article name]].}}</nowiki></code>
  
{{Deceased Wikipedian}}
+
{{deceased|nocat=true|note=Learn more about this Wikipedian at [[Article name]].}}
  
*<code><nowiki>{{Deceased Wikipedian|note=Learn more about this Wikipedian at [[Article name]]}}</nowiki></code>
+
*<code><nowiki>{{deceased|message=Custom message.}}</nowiki></code>
  
{{Deceased Wikipedian|note=Learn more about this Wikipedian at [[Article name]]}}
+
{{deceased|nocat=true|message=Custom message.}}
  
*<code><nowiki>{{Deceased Wikipedian|page=editor review}}</nowiki></code>
+
== See also ==
 +
* [[User:GreenC/deceased]], counts template invocation over time
  
{{Deceased Wikipedian|page=editor review}}
+
{{Wikibreak templates}}
  
 
<includeonly>
 
<includeonly>
 
<!-- Categories and interwikis go here: -->
 
<!-- Categories and interwikis go here: -->
[[ru:Шаблон:Участник умер]]
 
[[uk:Шаблон:Користувач помер]]
 
  
 
</includeonly>
 
</includeonly>

Latest revision as of 23:48, 9 August 2020

This template is put on the user pages of deceased Wikipedians. It can also be put on other types of pages, such as editor reviews, depending on the parameters used. Before using it, please read the guidelines on deceased Wikipedians.

Usage

Basic usage
{{deceased}}
Detect "his"/"her"/"their"
{{deceased|username}}
All parameters
{{deceased
| username
| page    = 
| note    = 
| message = 
}}

Parameters

  • The first positional parameter is for the username. If entered, it detects whether to use "his", "her", or "their", depending on the gender value set in the user's preferences.
  • page - this parameter replaces the text "user page".
  • note - an extra note after the standard message.
  • message - custom message text; replaces the entire message, including the note.

Examples

  • {{deceased}}
  • {{deceased|Example female}}
  • {{deceased|page=editor review}}
  • {{deceased|note=Learn more about this Wikipedian at [[Article name]].}}
  • {{deceased|message=Custom message.}}

See also

Template:Wikibreak templates