Template:Packagist

From Bonkipedia
Revision as of 05:43, 25 September 2020 by [[mw:]]>SamanthaNguyen
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

This template allows making external links to referring to composer packages hosted on Packagist.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Vendor namevendor

Name of the vendor that owns this package

Default
composer
Example
wikimedia
Stringsuggested
Package namepackage

The name of the package

Example
at-ease
Stringsuggested
Texttext

The label for this link

Default
{{{vendor}}}
Example
AtEase package
Stringsuggested