Template:NPM package: 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
{{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 |