Difference between revisions 1665753 and 1665757 on mediawikiwiki{{Documentation subpage}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> Test replacement for {{tl|git file}} that links to file in Phabricator's diffusion instead of soon-to-be-deprecated gitblit at git.wikimedia.org ([[phab:T128]]). Big issue is mapping a gerrit <code>project=</code> path to Phabricator callsign. (below copied from [[Template:Git file/doc]]) This generates a link to a file on <ins>https://phabricator.wikimedia.org/diffusion/</ins> <del>https://git.wikimedia.org our Gitblit server</del>. == Usage == ; Basic <nowiki>{{phab file</nowiki> |file=''composer.json'' }} <nowiki>{{phab file</nowiki> |project=mediawiki/extensions/''Flow'' |file=''composer.json'' }} produces :{{phab file|file=composer.json }} :{{phab file|project=mediawiki/extensions/Flow|file=composer.json }} ; action <nowiki>{{phab file</nowiki> |project=mediawiki/extensions/EventLogging |file=server/bin/eventlogging-devserver |text=development server | action=raw }} produces :{{phab file|project=mediawiki/extensions/EventLogging |file=server/bin/eventlogging-devserver |text=development server |action=raw}} ; line number <nowiki>{{phab file |file=tests/phpunit/includes/MessageTest.php |line=152 }}</nowiki> produces :{{phab file |file=tests/phpunit/includes/MessageTest.php |line=152 }} ; project summary page <nowiki>{{phab file</nowiki> |project=mediawiki/extensions/agoraEventLogging |action=summary |text=AgoraEventLogging extension}} produces :{{phab file |project=mediawiki/extensions/AgoraEventLogging |action=summary |text=AgoraEventLogging extension}} ''See also {{tl|gitblit}}'' === more tests === While developing this template: ; Unimplemented project: <nowiki>{{phab file</nowiki> |project=mediawiki/extensions/NotMapped |file=Test.php }} produces (contracted; show full)* {{tl|MW file}} generates complicated link to file, used by [[Manual]]. * lots of other fancy templates for extensions on gerrit, see [[:Category:Git]]. * {{tl|github}} <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> [[Category:Git| ]] }}</includeonly> All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://mediawiki.org/w/index.php?diff=prev&oldid=1665757.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|