Template talk:Phabricator
This is the talk page for discussing improvements to the Phabricator template. |
|
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)
- 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)
Multiple items
[edit]This edit request to Template:Phab has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
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)
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 • TT318633 • TT318568. -- RoySmith (talk) 14:25, 27 September 2022 (UTC)
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)
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)
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}}
{{#invoke:Phabricator|task|T1234|art=y}}
{{#invoke:Phabricator|task|T1234|article=y}}
{{#invoke:Phabricator|task|T1234|Lorem ipsum dolor sit amet|article=y}}
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)