Template:Packagist

From Linux Web Expert

composer

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

<templatedata> { "params": { "text": { "label": "Text", "description": "The label for this link", "type": "string", "default": "{{{vendor}}}", "suggested": true, "example": "AtEase package" }, "vendor": { "label": "Vendor name", "description": "Name of the vendor that owns this package", "example": "wikimedia", "type": "string", "default": "composer", "suggested": true }, "package": { "label": "Package name", "description": "The name of the package", "example": "at-ease", "type": "string", "suggested": true } }, "paramOrder": [ "vendor", "package", "text" ], "format": "inline", "description": "This template allows making external links to referring to composer packages hosted on Packagist." } </templatedata>