Template:Packagist: Difference between revisions
From Bonkipedia
[[mw:]]>SamanthaNguyen mNo edit summary |
ManfredoDo (talk | contribs) m (1 revision imported: Workaround and Utility Templates) |
(No difference)
|
Latest revision as of 17:52, 12 November 2022
Template documentation
Copy and paste this template
With only the required parameters
{{packagist|vendor=}}
With all parameters including optional parameters
{{packagist|vendor =|package =|text =}}
Examples
- Linking to a package at wikimedia/at-ease:
{{packagist|vendor=wikimedia|package=at-ease}}
- Output: wikimedia/at-ease
- Linking to the wikimedia vendor:
{{packagist|vendor=wikimedia}}
- Output: wikimedia
- Linking with a custom label:
{{packagist|vendor=wikimedia|package=at-ease|text=AtEase package}}
- Output: AtEase package
Template data
This template allows making external links to referring to composer packages hosted on Packagist.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Vendor name | vendor | Name of the vendor that owns this package
| String | suggested |
Package name | package | The name of the package
| String | suggested |
Text | text | The label for this link
| String | suggested |