Template:Phab: Difference between revisions

From mcr
No edit summary
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly><div style="display:none;">
{|
| style="vertical-align:top;width:500px;" | {{#ifeq:{{{suppress|}}}|Yes|<span class="pops plainlinks">[{{fullurl:Special:PhabTaskGraph}}?tasks={{PAGENAME}}&status=open,stalled,resolved Click to see graph]</span>|{{Special:PhabTaskGraph|tasks={{PAGENAME}}|width=500|height=300|status=open,stalled,resolved}}}}
| style="vertical-align:top;width:500px;" |
{| class="wikitable" width=100% style="margin:0;"
! 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;" | Annual Plan Objectives
| style="text-align:left;" | {{#if:{{{objectives|}}}|{{#invoke:Utilities|parseMultiple|{{{objectives}}}|Tag Link|, }}}}
|-
! style="text-align:left;" | People
| style="text-align:left;" | {{#if:{{{people|}}}|{{#invoke:Utilities|parseMultiple|{{{people}}}|Tag Link|, }}}}
|-
! style="text-align:left;" | Schedule
| style="text-align:left;" | {{#if:{{{schedule|}}}|{{#invoke:Utilities|parseMultiple|{{{schedule}}}|Tag Link|, }}}}
|-
! style="text-align:left;" | Tags
| style="text-align:left;" | {{#if:{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Tag Link|, }}}}
|-
! style="text-align:left;" | Depends On
| style="text-align:left;" | {{#if:{{{depends on|}}}|<ul>{{#arraymap:{{{depends on}}}|;|@@@@|<li>[[@@@@]]</li>|}}</ul>}}
|-
! style="text-align:left;" | Status
| style="text-align:left;" | {{#if:{{{status|}}}|{{#invoke:Utilities|parseMultiple|{{{status}}}|Tag Link|, }}}}
|}
|}
{{#get_web_data:
url=https://gerrit.wikimedia.org/r/changes/?q=bug:{{PAGENAME}}
|format=JSON
|data=number=_number,subject=subject,status=status,owner=owner,created=created,updated=updated
|json offset=5
}}{{#display_external_table:
template=Gerrit Table Row
|intro template=Gerrit Table Intro
|outro template=Table Outro
|data=number=number,subject=subject,status=status,owner=owner,created=created,updated=updated
}}
<div style="display:none;">
{{DISPLAYTITLE:{{PAGENAME}}: {{{title|}}}}}
{{#if:{{{objectives|}}}|{{#invoke:Utilities|parseMultiple|{{{objectives}}}|Set Objective|}}}}
{{#if:{{{people|}}}|{{#invoke:Utilities|parseMultiple|{{{people}}}|Set Person|}}}}
{{#if:{{{schedule|}}}|{{#invoke:Utilities|parseMultiple|{{{schedule}}}|Set Quarter|}}}}
{{#if:{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Set Tag|}}}}
{{#if:{{{tags|}}}|{{#invoke:Utilities|parseMultiple|{{{tags}}}|Set Tag|}}}}
{{#arraymap:{{{depends on|}}}|;|@@@@|{{#set:Depends On=@@@@}}}}
{{#if:{{{status|}}}|{{#invoke:Utilities|parseMultiple|{{{status}}}|Set Status|}}}}
{{#set:Title Icon=Phab.png}}
[[Category:Phabricator Tasks]]
[[Category:Phabricator Tasks]]
</div>
</div></includeonly>
</includeonly>

Latest revision as of 20:54, 29 May 2018