Template:Phabricator Task: Difference between revisions

From mcr
No edit summary
No edit summary
 
(40 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>
<!--
|name=Implement MCR page update legacy version
|status=invalid
|color=orange
|author={{Phabricator User
|type=author
|username=daniel
|realName=Daniel Kinzler
}}
|owner={{Phabricator User
|type=owner
|username=daniel
|realName=Daniel Kinzler
}}
|projects={{Phabricator Project
|name=MCR-SDC phase 1
|column=Done
}}{{Phabricator Project
|name=MediaWiki-Platform-Team
|column=Closed
}}{{Phabricator Project
|name=Patch-For-Review
}}{{Phabricator Project
|name=Structured-Data-Commons
|column=Continuous tasks / Epics
}}{{Phabricator Project
|name=Wikidata
|column=monitoring
}}
-->
{|
| 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 38: Line 5:
|-
|-
! style="text-align:left;" | Status
! style="text-align:left;" | Status
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?Status}}
| style="text-align:left;" | {{Status Link|{{{status|}}}}}
|-
|-
! style="text-align:left;" | Priority
! style="text-align:left;" | Priority
| style="text-align:left;" | {{#show:{{FULLPAGENAME}}|?Priority}}
| style="text-align:left;" | {{Priority Link|{{{color|}}}}}
|-
|-
! 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;" | Depends On
! style="text-align:left;" | Projects
| style="text-align:left;" | {{#if:{{{depends on|}}}|<ul>{{#arraymap:{{{depends on}}}|;|@@@@|<li>[[@@@@]]</li>|}}</ul>}}
| style="text-align:left;" | <ul>{{#arraymap:{{#show:{{FULLPAGENAME}}|?Project-Column}}|,|@@@@|<li>{{Project Link|{{#replace:@@@@|=|&#61;}}}}</li>|}}</ul>
|-
|-
! style="text-align:left;" | Is Depended On By
! style="text-align:left;" | Subtasks
| style="text-align:left;" | {{#ask:[[Depends On::{{FULLPAGENAME}}]]|format=ul}}
| style="text-align:left;" | <ul>{{#arraymap:{{#ask:[[{{FULLPAGENAME}}]]|?Subtask|headers=hide|mainlabel=-|sep=;}}|;|@@@@|<li>@@@@</li>|}}</ul>
|-
! style="text-align:left;" | Parent Tasks
| 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 68: 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;">
{{DISPLAYTITLE:{{PAGENAME}}: {{{name|}}}}}
{{DISPLAYTITLE:{{PAGENAME}}: {{{name|}}}}}
{{#set:Status={{{status|}}}}}
{{#set:Status={{{status|}}}}}
{{#set:Priority={{#switch:{{{color|}}}|red=high|orange=medium|purple=needs triage|yellow=low|other}}
{{#set:Priority={{{color|}}}}}
{{{author|}}}
{{{author|}}}
{{{owner|}}}
{{{owner|}}}
{{{projects|}}}
{{{projects|}}}
{{#arraymap:{{{subtasks|}}}|;|@@@@|{{#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