Template:PHPLibraryLinks: Difference between revisions
[[mw:]]>Shirayuki (Marked this version for translation) |
ManfredoDo (talk | contribs) m (1 revision imported: Workaround and Utility Templates) |
(No difference)
|
Latest revision as of 17:52, 12 November 2022
Copy and paste template
With only the required parameters
{{PHPLibraryLinks |name = }}
With all parameters including optional parameters
{{PHPLibraryLinks |name = |phab-callsign = |gerrit-repo = |github-repo = |packagist-vendor = |packagist-name = |wikimedia-doc = |phab-tag = |phab-tag-exists = }}
Example
Example 1
- Wikitext
{{PHPLibraryLinks |name = at-ease |phab-callsign = GATE }}
- Output
- Source code (Phabricator mirror, GitHub mirror)
- Composer package
- API Documentation
- Test coverage report
- Issue tracker
Example 2
- Wikitext
{{PHPLibraryLinks |name = RelPath |phab-callsign = GREL |packagist-name = relpath |phab-tag-exists = no }}
- Output
- Source code (Phabricator mirror, GitHub mirror)
- Composer package
- API Documentation
- Test coverage report
Example 3
- Wikitext
{{PHPLibraryLinks |name = oauthclient-php |phab-callsign = MOAC |gerrit-repo = mediawiki/oauthclient-php |github-repo = mediawiki-oauthclient-php |packagist-vendor = mediawiki |packagist-name = oauthclient |wikimedia-doc = mediawiki-oauthclient-php |phab-tag = oauth }}
- Output
- Source code (Phabricator mirror, GitHub mirror)
- Composer package
- API Documentation
- Test coverage report
- Issue tracker
Usage
Show standard links such as Phabricator or Gerrit for a PHP library (see [[Manual:Developing libraries]]). Typically used at the bottom of the page in an "External links" section.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | Extension name. Most other properties will be guessed from this when unspecified.
| String | required |
Gerrit repository | gerrit-repo | Gerrit project name, when different from the library name
| String | optional |
GitHub repository name | github-repo | When different from the library name. Always assumed to be under the 'wikimedia' organization. | String | optional |
Phabricator tag exists | phab-tag-exists | Whether the library has a Phabricator project
| Boolean | optional |
Phabricator tag | phab-tag | Phabricator project name, when different from the library name. | String | optional |
Packagist vendor | packagist-vendor | Vendor (organization) name for packagist, when not 'wikimedia'
| String | optional |
Packagist package name | packagist-name | When different from the library name.
| String | optional |
doc.wikimedia.org project name | wikimedia-doc | Path to the documentation on doc.wikimedia.org (when different from the library name).
| String | optional |
Phabricator callsign | phab-callsign | 4-character callsign used by Diffusion. Most repos don't have this. | String | deprecated |