Template:Phabricator Task: Difference between revisions

From mcr
No edit summary
No edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
{|
| small graph
| style="vertical-align:top;width:500px;" |
{| class="wikitable" width=100% style="margin:0;"
{| class="wikitable" width=100% style="margin:0;"
! style="text-align:left;width:35%;" | Phabricator Link
! style="text-align:left;width:35%;" | Phabricator Link
Line 8: Line 5:
|-
|-
! style="text-align:left;" | Status
! style="text-align:left;" | Status
| style="text-align:left;" | {{#switch:{{#show:{{FULLPAGENAME}}|?Status}}
| style="text-align:left;" | {{Status Link|{{{status|}}}}}
|open=Open
|resolved=Resolved
|invalid=Invalid
|duplicate=Duplicate
|Other
}}
|-
|-
! style="text-align:left;" | Priority
! style="text-align:left;" | Priority
| style="text-align:left;" | {{#switch:{{#show:{{FULLPAGENAME}}|?Priority}}
| style="text-align:left;" | {{Priority Link|{{{color|}}}}}
|violet=Needs Triage
|indigo=Unbreak Now!
|red=High
|orange=Normal
|yellow=Low
|sky=Lowest
|Other
}}
|-
|-
! style="text-align:left;" | Author
! style="text-align:left;" | Author
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?Author}}
| style="text-align:left;" | {{Author Link|{{#show:{{FULLPAGENAME}}|?Author}}}}
|-
|-
! style="text-align:left;" | Owner
! style="text-align:left;" | Owner
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?Owner}}
| style="text-align:left;" | {{Owner Link|{{#show:{{FULLPAGENAME}}|?Owner}}}}
|-
|-
! style="text-align:left;" | Projects
! style="text-align:left;" | Projects
| style="text-align:left;" | <ul>{{#arraymap:{{#show:{{FULLPAGENAME}}|?Project}}|,|@@@@|<li>@@@@</li>|}}</ul>
| style="text-align:left;" | <ul>{{#arraymap:{{#show:{{FULLPAGENAME}}|?Project-Column}}|,|@@@@|<li>{{Project Link|{{#replace:@@@@|=|&#61;}}}}</li>|}}</ul>
|-
|-
! style="text-align:left;" | Depends On
! style="text-align:left;" | Subtasks
| style="text-align:left;" | {{#if:{{{depends on|}}}|<ul>{{#arraymap:{{{depends on}}}|;|@@@@|<li>[[@@@@]]</li>|}}</ul>}}
| style="text-align:left;" | <ul>{{#arraymap:{{#ask:[[{{FULLPAGENAME}}]]|?Subtask|headers=hide|mainlabel=-|sep=;}}|;|@@@@|<li>@@@@</li>|}}</ul>
|-
|-
! style="text-align:left;" | Is Depended On By
! style="text-align:left;" | Parent Tasks
| style="text-align:left;" | {{#ask:[[Depends On::{{FULLPAGENAME}}]]|format=ul}}
| style="text-align:left;" | {{#ask:[[Subtask::{{FULLPAGENAME}}]]|format=ul}}
|-
|-
! style="text-align:left;" | Tags
! style="text-align:left;" | Tags
| style="text-align:left;" | {{#if:{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Tag Link|, }}}}
| style="text-align:left;" | <ul>{{#arraymap:{{#show:{{FULLPAGENAME}}|?Tag}}|,|@@@@|<li>@@@@</li>|}}</ul>
|}
|}
|}
{{#get_web_data:  
{{#get_web_data:  
url=https://gerrit.wikimedia.org/r/changes/?q=bug:{{PAGENAME}}
url=https://gerrit.wikimedia.org/r/changes/?q=bug:{{PAGENAME}}
|format=JSON
|format=JSON
|data=number=_number,subject=subject,status=status,owner=owner,created=created,updated=updated
|data=number=_number,subject=subject,status=status,owner=owner,created=created,updated=updated,project=project
|json offset=5
|json offset=5
}}{{#display_external_table:
}}{{#display_external_table:
Line 55: Line 37:
|intro template=Gerrit Table Intro
|intro template=Gerrit Table Intro
|outro template=Table Outro
|outro template=Table Outro
|data=number=number,subject=subject,status=status,owner=owner,created=created,updated=updated
|data=number=number,subject=subject,status=status,owner=owner,created=created,updated=updated,project=project
}}
}}
<div style="display:none;">
<div style="display:none;">
Line 65: Line 47:
{{{projects|}}}
{{{projects|}}}
{{#arraymap:{{{subtasks|}}}|,|@@@@|{{#ifexist:Phab:T@@@@|{{#set:Subtask=Phab:T@@@@}}}}}}
{{#arraymap:{{{subtasks|}}}|,|@@@@|{{#ifexist:Phab:T@@@@|{{#set:Subtask=Phab:T@@@@}}}}}}
{{#if:{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Set Tag|}}}}
{{#set:Title Icon=Phab.png}}
{{#set:Title Icon=Phab.png}}
[[Category:Phabricator Tasks]]
[[Category:Phabricator Tasks]]
</div>
</div>
</includeonly>
</includeonly>

Latest revision as of 15:35, 13 October 2018