Template:NPM package
From Bonkipedia
Template documentation
Copy and paste this template
With only the required parameters
{{NPM package|}}
With all parameters including optional parameters
{{NPM package||version=|text=}}
Examples
- Linking to eslint-config-wikimedia:
{{NPM package|eslint-config-wikimedia}}
- Output: eslint-config-wikimedia
- Linking to eslint-config-wikimedia, version 0.17.0:
{{NPM package|eslint-config-wikimedia|version=0.17.0}}
- Output: eslint-config-wikimedia
- Linking to eslint-config-wikimedia, with a custom label:
{{NPM package|eslint-config-wikimedia|text=Wikimedia ESLint}}
- Output: Wikimedia ESLint
Template data
Allows linking to NPM packages on the official NPM website
Parameter | Description | Type | Status | |
---|---|---|---|---|
Package name | 1 | Name of the NPM package
| String | optional |
Package version | version | Software version of the NPM package
| String | optional |
Text | text | Label of the link to the NPM package | String | optional |