Difference between revisions of "Template:newin/doc"
m |
m (Moved categories to documentation) |
||
(5 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
− | {{ | + | {{newin|Human-friendly version number|Machine-friendly version number|type=optional type of thing added|text=optional text to display}} |
</pre> | </pre> | ||
Line 15: | Line 15: | ||
: If you'd like, you can specify what it is that has been added. | : If you'd like, you can specify what it is that has been added. | ||
: This should usually be "function", "type" or "variant". | : This should usually be "function", "type" or "variant". | ||
− | :: Only types that are set to enum, function or type will | + | :: Only types that are set to callback, enum, function, module or type will |
− | :: ?Since and ?PrettySince parameters. | + | :: set their ?Since and ?PrettySince parameters. |
; text | ; text | ||
: Bring out the big guns, and display a totally different text. | : Bring out the big guns, and display a totally different text. | ||
Line 22: | Line 22: | ||
== See also == | == See also == | ||
* [[Template:oldin|oldin]] | * [[Template:oldin|oldin]] | ||
+ | |||
+ | [[Category:Templates_documentation]] | ||
+ | [[Category:Templates]] |
Latest revision as of 13:46, 3 January 2019
This is a documentation subpage for {{newin}}. It contains usage information, categories, interlanguage links and other content that is not part of the original template page. |
This template is used on things that are added in newer versions.
Usage
{{newin|Human-friendly version number|Machine-friendly version number|type=optional type of thing added|text=optional text to display}}
Parameters
- 1
- A readable version number, like "0.8.0".
- 2
- A machine-readable version number, like "080".
- type
- If you'd like, you can specify what it is that has been added.
- This should usually be "function", "type" or "variant".
- Only types that are set to callback, enum, function, module or type will
- set their ?Since and ?PrettySince parameters.
- text
- Bring out the big guns, and display a totally different text.