Jump to content

Template talk:Phabricator

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Label parameter

[edit]

Can we please get a |label= parameter added to this template, for backwards compability with {{bug}} and easier upgrading? Thanks.  — Hex talk 17:57, 3 March 2016 (UTC)[reply]

This was  Done in 2019 when {{bug}} was deleted, but not documented. I've added it to the docs now.  — Hex talk 13:37, 24 December 2024 (UTC)[reply]

Multiple items

[edit]

Please sync with the sandbox to add support for multiple items and a label per consensus at Wikipedia:Templates for discussion/Log/2019 September 16#Template:Bug. All changes have been tested at Template:Phab/testcases. --Trialpears (talk) 11:27, 3 October 2019 (UTC)[reply]

 Done Sceptre (talk) 11:54, 3 October 2019 (UTC)[reply]

Citing multiple tickets doesn't handle optional "T"

[edit]

I discovered experimentally (the docs don't mention this) that you can cite multiple tickets at once: T318600 T318633 T318568. But, only on the first one is an optional "T" prefix handled properly, i.e. T318600 T318633 T318568. -- RoySmith (talk) 14:25, 27 September 2022 (UTC)[reply]

@RoySmith Sorry it's three years late, but this is finally fixed. --Ahecht (TALK
PAGE
)
15:57, 22 October 2025 (UTC)[reply]

New Phab template in itwiki with cute Icons

[edit]

We may want to take inspiration to this Phabricator template on itwiki, that has also nice icons :D

w:it:Template:Phab#Esempi - check examples!

Here, main differences between itwiki and enwiki template:

Local Template:Phab w:it:Template:Phab
nice icons Not supported Supported
Mockup, Paste, Tags Not supported Supported
just numbers Supported Not supported by design
multiple tasks Unofficially Supported (Undocumented) Not supported by design
"article/art" prefix Supported Not supported by design
template code more complicated more simple (KISS principle)

With this overview, I think that here, on enwiki, we have the possibility to simplify a bit the template, with the purpose to give more features in the future. For example, I think that the feature "just numbers" is a bit too much complicated to maintain here on enwiki (look at the source code of the template) just for the benefit of... not writing a "T"... or mentioning multiple tasks (that was undocumented, by the way...).

So I would like to deprecate the "just numbers" option in the enwiki template, at least. This MAY dramatically simplify the addition of new features (like, icons). Bozz (talk) 09:34, 8 July 2024 (UTC)[reply]

Edited: also, I would like to officially discourage the undocumented feature of mentioning multiple tasks...

If we do NOT want to remove the above "features", I'm inclined to propose a rewrite in Lua. Or, we can create a completely different template called "Phablink"... to provide the features available in intwiki (that are, icons, and possibility to mention other things)... --Bozz (talk) 09:49, 8 July 2024 (UTC)[reply]

Reimplemented

[edit]

The template code is a buggy eyeball-melting mess (no disrespect meant to the author - our template language is an abomination), so I've written a Lua module to replace it at Module:Phabricator, with test cases. It supports the documented behavior of any combination of including a "T" or not, titling the link, or having a link to Wikipedia:Phabricator.

Examples:

  • {{#invoke:Phabricator|task}}
  • {{#invoke:Phabricator|task|T1234}}
  • {{#invoke:Phabricator|task|1234}}
  • {{#invoke:Phabricator|task|T1234|Lorem ipsum dolor sit amet}}
    • Invalid task ID: Lorem ipsum dolor sit amet
  • {{#invoke:Phabricator|task|T1234|art=y}}
  • {{#invoke:Phabricator|task|T1234|article=y}}
  • {{#invoke:Phabricator|task|T1234|Lorem ipsum dolor sit amet|article=y}}
    • Invalid task ID: Lorem ipsum dolor sit amet

If people are happy with this we can replace the template code, and then further improvements like the ones suggested by Valerio Bozzolan will be easy to make. Incidentally Bozz, I only saw your comments after doing this 😁 Merry Christmas!  — Hex talk 22:30, 24 December 2024 (UTC)[reply]

It would be better to use Module:Yesno rather than just writing "y". Current module does not accept "yes".--Namoroka (talk) 13:19, 25 January 2025 (UTC)[reply]
Hex, if you want to pursue this change, put your new code in the sandbox template and make sure the examples on the /testcases page work. – Jonesey95 (talk) 21:44, 17 March 2025 (UTC)[reply]
Hey Jonesey, thanks - I didn't want to overwrite the sandbox without getting any feedback on the idea first. @Namoroka: excellent! I hadn't heard of that module so will certainly do that.  — Hex talk 11:42, 18 March 2025 (UTC)[reply]

Edit request to complete TfD nomination

[edit]

Template:Phabricator has been listed at Templates for discussion (nomination), but it was protected, so it could not be tagged. Please add:

{{subst:tfm|help=off|type=tiny|1=Task}}

to the top of the page to complete the nomination. Thank you. ZandDev 21:05, 17 March 2025 (UTC)[reply]

 DoneJonesey95 (talk) 21:43, 17 March 2025 (UTC)[reply]