Template:Phabricator Task: Difference between revisions
From mcr
(Created page with "<includeonly> <!-- {{Phabricator Task |name=Implement MCR page update legacy version |status=invalid |color=orange |author={{Phabricator User |type=author |username=daniel |re...") |
No edit summary |
||
(43 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
{| 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 | ||
| style="text-align:left;" | <span class="pops plainlinks">[https://phabricator.wikimedia.org/{{PAGENAME}} {{PAGENAME}}]</span> | | style="text-align:left;" | <span class="pops plainlinks">[https://phabricator.wikimedia.org/{{PAGENAME}} {{PAGENAME}}]</span> | ||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Status | ||
| style="text-align:left;" | {{ | | style="text-align:left;" | {{Status Link|{{{status|}}}}} | ||
|- | |||
! style="text-align:left;" | Priority | |||
| style="text-align:left;" | {{Priority Link|{{{color|}}}}} | |||
|- | |||
! style="text-align:left;" | Author | |||
| style="text-align:left;" | {{Author Link|{{#show:{{FULLPAGENAME}}|?Author}}}} | |||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Owner | ||
| style="text-align:left;" | {{# | | style="text-align:left;" | {{Owner Link|{{#show:{{FULLPAGENAME}}|?Owner}}}} | ||
|- | |||
! style="text-align:left;" | Projects | |||
| style="text-align:left;" | <ul>{{#arraymap:{{#show:{{FULLPAGENAME}}|?Project-Column}}|,|@@@@|<li>{{Project Link|{{#replace:@@@@|=|=}}}}</li>|}}</ul> | |||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Subtasks | ||
| style="text-align:left;" | | style="text-align:left;" | <ul>{{#arraymap:{{#ask:[[{{FULLPAGENAME}}]]|?Subtask|headers=hide|mainlabel=-|sep=;}}|;|@@@@|<li>@@@@</li>|}}</ul> | ||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Parent Tasks | ||
| style="text-align:left;" | {{#ask:[[ | | style="text-align:left;" | {{#ask:[[Subtask::{{FULLPAGENAME}}]]|format=ul}} | ||
|- | |- | ||
! style="text-align:left;" | | ! style="text-align:left;" | Tags | ||
| style="text-align:left;" | {{# | | 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 64: | 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:Priority={{{color|}}}}} | |||
{{{author|}}} | {{{author|}}} | ||
{{{owner|}}} | {{{owner|}}} | ||
{{{projects|}}} | {{{projects|}}} | ||
{{# | {{#arraymap:{{{subtasks|}}}|,|@@@@|{{#ifexist:Phab:T@@@@|{{#set:Subtask=Phab:T@@@@}}}}}} | ||
{{# | |||
{{#set:Title Icon=Phab.png}} | {{#set:Title Icon=Phab.png}} | ||
[[Category:Phabricator Tasks]] | [[Category:Phabricator Tasks]] | ||
</div> | </div> | ||
</includeonly> | </includeonly> |