Difference between revisions of "Template:ARStatus"

From blackwiki
Jump to navigation Jump to search
blackwiki>Zackmann08
(+doc)
blackwiki>Zackmann08
(Converting to use Template:Infobox)
Line 1: Line 1:
 
==={{#if: {{{IP|}}} | {{ipvandal|{{{IP}}}}} | Report status}}===
 
==={{#if: {{{IP|}}} | {{ipvandal|{{{IP}}}}} | Report status}}===
<table class="infobox " cellspacing="5" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; width:20em;">
+
{{Infobox
<tr><td colspan="2" class="" style="text-align:center; font-size: 125%; font-weight: bold;">[[WP:ABUSE|Abuse Response]]</td></tr>
+
| above = [[WP:ABUSE|Abuse Response]]
<tr><td colspan="2" class="" style="text-align:center;">Report Status</td></tr>
+
| subheader = Report Status
 
+
| label1 = [[IP Address]]
{{#if:{{{IP|}}}|<tr><th style="width:33%;">[[IP Address]]</th><td class="" style="">[[User_talk:{{{IP}}}]]</td></tr>|<tr><th style="width:33%;">[[IP Address]]</th><td class="" style="color:red;">'''NO IP SPECIFIED'''</td></tr>}}
+
| data1 = {{#if:{{{IP|}}}|{{{IP|}}}|{{red|'''NO IP SPECIFIED'''}}}}
{{#if:{{{IP|}}}|<tr><th style="width:33%;">Contributions</th><td class="" style="">[[Special:Contributions/{{{IP}}}|Contributions]]</td></tr>|<tr><th style="width:33%;">Contributions</th><td class="" style="color:red;">'''NO IP SPECIFIED'''</td></tr>}}
+
| label2 = Contributions
<tr><th style="width:33%;">Page Moves</th><td class="" style="">[{{fullurl:Special:Log/move|user={{{IP}}} Page moves]</td></tr>|<tr><th style="width:33%;">Page Moves</th><td class="" style="color:red;"> </td></tr>}}
+
| data2 = {{#if:{{{IP|}}}|[[Special:Contributions/{{{IP}}}|Contributions]]|{{red|'''NO IP SPECIFIED'''}}}}
<tr><th style="width:33%;">Block Log</th><td class="" style="">[{{fullurl:Special:Log/block|page=User:{{{IP}}} Block log]</td></tr>|<tr><th style="width:33%;">Block Log</th><td class="" style="color:red;"> </td></tr>}}
+
| label3 = Page Moves
<tr><th style="width:33%;">Contribution History</th><td class="" style="">[https://xtools.wmflabs.org/ec/?user={{{IP}}}&project=en.wikipedia Contribution history]</td></tr>
+
| data3 = {{#if:{{{IP|}}}|[{{fullurl:Special:Log/move|user={{{IP}}} Page moves]}}|{{red|'''NO IP SPECIFIED'''}}}}
{{#if:{{{status|}}}|<tr><th style="width:33%;">Status</th><td class="" style="">{{#switch:{{{status}}}
+
| label4 = Block Log
 +
| data4 = {{#if:{{{IP|}}}|[{{fullurl:Special:Log/block|page=User:{{{IP}}} Block log]}}|{{red|'''NO IP SPECIFIED'''}}}}
 +
| label5 = Contribution History
 +
| data5 = {{#if:{{{IP|}}}|[https://xtools.wmflabs.org/ec/?user={{{IP}}}&project=en.wikipedia Contribution history]|{{red|'''NO IP SPECIFIED'''}}}}
 +
| label6 = Status
 +
| data6 = {{#if:{{{status|}}}|{{#switch:{{{status}}}
  
 
|NEW|New|new=<span style="color:orange;">New (Waiting for Investigator)</span>
 
|NEW|New|new=<span style="color:orange;">New (Waiting for Investigator)</span>
Line 19: Line 24:
 
|STALE|Stale|stale=<span style="color:red;">Stale</span>
 
|STALE|Stale|stale=<span style="color:red;">Stale</span>
 
|INVALID|Invalid|invalid=<span style="color:darkred;">Invalid</span>
 
|INVALID|Invalid|invalid=<span style="color:darkred;">Invalid</span>
}}</td></tr>|<tr><th style="width:33%;">Status</th><td class="" style="">Unknown</td></tr>}}
+
}}|Unknown}}
{{#if:{{{requestor|}}}|<tr><th style="width:33%;">Requestor</th><td class="" style="">{{{requestor}}}</td></tr>|<tr><th style="width:33%;">Requestor</th><td class="" style="">Unknown</td></tr>}}
+
 
{{#if:{{{date|}}}|<tr><th style="width:33%;">Date</th><td class="" style="">{{{date}}}</td></tr>}}
+
| label7 = Requestor
{{#switch:{{{status}}}|REJECTED|Rejected|rejected=|#default={{#if:{{{Investigator|}}}|<tr><th style="width:33%;">Investigator</th><td class="" style="">{{{Investigator}}}</td></tr>|<tr><th style="width:33%;">Investigator</th><td class="" style="">Pending</td></tr>}}}}
+
| data7 = {{#if:{{{requestor|}}}|{{{requestor}}}|Unknown}}
{{#switch:{{{status}}}|REJECTED|Rejected|rejected=|#default={{#if:{{{Contactor|}}}|<tr><th style="width:33%;">Contactor</th><td class="" style="">{{{Contactor}}}</td></tr>|<tr><th style="width:33%;">Contactor</th><td class="" style="">Pending</td></tr>}}}}
+
 
{{#if:{{{comment|}}}|<tr><th style="width:33%;">Comment</th><td class="" style="">{{{comment}}}</td></tr>|}}
+
| label8 = Date
</td></tr>
+
| data8 = {{{date|}}}
</table>
+
| label9 = Investigator
<includeonly>
+
| data9 = {{#switch:{{{status}}}|REJECTED|Rejected|rejected=|#default={{#if:{{{Investigator|}}}|{{{Investigator|}}}|Pending}}}}
 +
| label10 = Contactor
 +
| data10 = {{#switch:{{{status}}}|REJECTED|Rejected|rejected=|#default={{#if:{{{Contactor|}}}|{{{Contactor}}}|Pending}}}}
 +
| label11 = Comment
 +
| data10 = {{{comment|}}}
 +
}}<includeonly>
 
{{#if:{{{status|}}}|
 
{{#if:{{{status|}}}|
 
{{#switch:{{{status}}}
 
{{#switch:{{{status}}}
Line 42: Line 52:
 
__NOTOC__
 
__NOTOC__
 
__NOEDITSECTION__
 
__NOEDITSECTION__
 
+
<noinclude>{{Documentation}}</noinclude>
<noinclude>{{Documentation}}
 
</noinclude>
 

Revision as of 05:46, 27 November 2018

Report status

Abuse Response
Report Status
IP AddressNO IP SPECIFIED
ContributionsNO IP SPECIFIED
Page MovesNO IP SPECIFIED
Block LogNO IP SPECIFIED
Contribution HistoryNO IP SPECIFIED
StatusUnknown
RequestorUnknown
InvestigatorPending


50px Template documentation[view] [edit] [history] [purge]

Template:Parameter names example

Usage

{{ARStatus
| IP           = 
| status       = 
| requestor    = 
| date         = 
| Investigator = 
| Contactor    = 
| comment      =
}}