Template:User activeness: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
(Increased code navigability and optimization, gender detection, tabulated examples)
m (→‎top: Renaming File)
 
(20 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{#vardefine:1|{{lc:{{{1|}}}}}}}{{#vardefine:Gender|{{gender:{{BASEPAGENAME}}|he|she|he/she}}}}<div class="messagebox" style="width: 45em; border: 1px solid #3b587e; background-color: #1f4973; margin: auto; padding: 0.5em; float: left text-align: center; -moz-border-radius:15px;">
{{#vardefine:1|{{lc:{{{1|}}}}}}}{{#vardefine:Gender|{{gender:{{BASEPAGENAME}}|he|she|they}}}}<div class="messagebox" style="width: 45em; border: 1px solid #426787; background-color: #1d578b; margin: auto; padding: 0.5em; float: left text-align: center; -moz-border-radius:15px;">
<div style="float: left;">{{#switch:{{#var:1}}
<div style="float: left;">{{#switch:{{#var:1}}
   |frequent | active =[[File:Yes check.png|center]]
   |frequent | active =[[File:Green check.svg|45px]]
   |inactive=[[File:Stop hand.png|45px]]
   |inactive=[[File:ZW Off-Topic Icon.svg|45px]]
   |banned | hiatus | absent | gone =[[File:Stop hand.png|45px]]
   |banned | hiatus | absent | gone =[[File:ZW Off-Topic Icon.svg|45px]]
   |freqadmin | adminbreak =[[File:Zwlogo2dsmall.png|45px]]
   |freqadmin | adminbreak =[[File:Zwlogo2dsmall.png|45px]]
   |#default=[[File:questionmark.gif|45px]]
  |patrol=[[File:OoT Piece of Heart Model.png|45px]]
   |#default=[[File:Question Mark.png|45px]]
}}
}}
</div>
</div>
Line 13: Line 14:
   | {{#switch:{{#var:1}}
   | {{#switch:{{#var:1}}
     |freqadmin | adminbreak=an Admin
     |freqadmin | adminbreak=an Admin
    |patrol=a patroller
     |hiatus=on hiatus from the wiki
     |hiatus=on hiatus from the wiki
     |#default={{#var:1}}
     |#default={{#var:1}}
Line 20: Line 22:
   |frequent={{BASEPAGENAME}} is a frequent editor of [[Community:Zelda Wiki|Zelda Wiki]]. {{ucfirst:{{#var:Gender}}}} generally makes several edits over at least a few days of each week.
   |frequent={{BASEPAGENAME}} is a frequent editor of [[Community:Zelda Wiki|Zelda Wiki]]. {{ucfirst:{{#var:Gender}}}} generally makes several edits over at least a few days of each week.
   |inactive={{BASEPAGENAME}} either edits [[Community:Zelda Wiki|Zelda Wiki]] very rarely, or has not made an edit within the last month. {{ucfirst:{{#var:Gender}}}} will likely not answer any messages in a timely fashion.
   |inactive={{BASEPAGENAME}} either edits [[Community:Zelda Wiki|Zelda Wiki]] very rarely, or has not made an edit within the last month. {{ucfirst:{{#var:Gender}}}} will likely not answer any messages in a timely fashion.
   |Active={{BASEPAGENAME}} has made at least one edit within the last month. However, {{#var:Gender}} might not visit the wiki on a regular basis.
   |active={{BASEPAGENAME}} has made at least one edit within the last month. However, {{#var:Gender}} might not visit the wiki on a regular basis.
   |banned={{BASEPAGENAME}} was banned for misconduct.
   |banned={{BASEPAGENAME}} was banned for misconduct.
  |patrol={{BASEPAGENAME}} is a [[Zelda Wiki:Patrol|patroller]] and as such {{#var:Gender}} is a good source of editing advice.
   |gone={{BASEPAGENAME}} has left [[Community:Zelda Wiki|Zelda Wiki]].
   |gone={{BASEPAGENAME}} has left [[Community:Zelda Wiki|Zelda Wiki]].
   |hiatus={{BASEPAGENAME}} is currently on hiatus from the wiki. {{ucfirst:{{#var:Gender}}}} will most likely not answer any messages until {{#var:Gender}} returns. {{#if:{{{2|}}}|{{BASEPAGENAME}} will return {{{2}}}.}}
   |hiatus={{BASEPAGENAME}} is currently on hiatus from the wiki. {{ucfirst:{{#var:Gender}}}} will most likely not answer any messages until {{#var:Gender}} returns. {{#if:{{{2|}}}|{{BASEPAGENAME}} will return {{{2}}}.}}
   |freqadmin={{BASEPAGENAME}} is a Zelda Wiki [[Zelda Wiki:Administrators|admin]] that edits frequently. As such, {{ucfirst:{{#var:Gender}}}} is a good source of editing advice.
   |freqadmin={{BASEPAGENAME}} is a Zelda Wiki [[Zelda Wiki:Staff|admin]] that edits frequently. As such, {{#var:Gender}} is a good source of editing advice.
   |adminbreak={{BASEPAGENAME}} is a Zelda Wiki [[Zelda Wiki:Administrators|admin]] who is temporarily on break from {{gender:{{BASEPAGENAME}}|his|her|their}} duties.
   |adminbreak={{BASEPAGENAME}} is a Zelda Wiki [[Zelda Wiki:Staff|admin]] who is temporarily on break from {{gender:{{BASEPAGENAME}}|his|her|their}} duties.
   |#default=If the above says active, it means they have made 1 edit within the last month.<br>(NOTE: If a user is inactive, they should not be messaged, as they will most likely not respond.
   |#default=To use this template, place the desired status in the first parameter of the template. You can find more usage documentation at [[Template:User activeness]].
}}</div>
}}</div>
</div><noinclude>
</div><noinclude>


== Usage ==
==Usage==
This template should be placed in a user's '''User page''' and/or '''User talk page'''
This template should be placed in a user's '''User page''' and/or '''User talk page'''


Line 39: Line 42:
'''Note:''' This template will automatically detect your gender and use it to display the correct pronouns. If you have not set your gender yet, you may do so by editing your [[Special:Preferences|User Preferences]].
'''Note:''' This template will automatically detect your gender and use it to display the correct pronouns. If you have not set your gender yet, you may do so by editing your [[Special:Preferences|User Preferences]].


== Examples ==
==Examples==
{| width=100%
{| width=100%
! width=10% | State
! width=10% | State

Latest revision as of 17:10, 16 April 2022

User activeness is .
To use this template, place the desired status in the first parameter of the template. You can find more usage documentation at Template:User activeness.

Usage

This template should be placed in a user's User page and/or User talk page

To use this template, type: {{User activeness|State}}

Where "state" is one of the options below.

Note: This template will automatically detect your gender and use it to display the correct pronouns. If you have not set your gender yet, you may do so by editing your User Preferences.

Examples

State Parameters Template
None {{User activeness}}
User activeness is .
To use this template, place the desired status in the first parameter of the template. You can find more usage documentation at Template:User activeness.
Frequent {{User activeness|Frequent}}
User activeness is a frequent editor.
User activeness is a frequent editor of Zelda Wiki. They generally makes several edits over at least a few days of each week.
Active {{User activeness|Active}}
User activeness is active.
User activeness has made at least one edit within the last month. However, they might not visit the wiki on a regular basis.
Inactive {{User activeness|Inactive}}
User activeness is inactive.
User activeness either edits Zelda Wiki very rarely, or has not made an edit within the last month. They will likely not answer any messages in a timely fashion.
Hiatus {{User activeness|Hiatus|return condition/date}}
User activeness is on hiatus from the wiki.
User activeness is currently on hiatus from the wiki. They will most likely not answer any messages until they returns. User activeness will return when he finds the meaning of life.
Absent {{User activeness|Absent|Date}}
User activeness is absent.
This normally active user is temporarily absent. They has gone on a vacation or trip and will return on Date. It is likely that messages won't be answered until they returns.
Banned {{User activeness|Banned}}
User activeness is banned.
User activeness was banned for misconduct.
Gone {{User activeness|Gone}}
User activeness is gone.
User activeness has left Zelda Wiki.