Currently there may be errors shown on top of a page, because of a missing Wiki update (PHP version and extension DPL3). |
Navigation
Topics | Help • Register • News • History • How to • Sequences statistics • Template prototypes |
Difference between revisions of "Template:NVal list"
m |
(template Vn) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Purpose== | ==Purpose== | ||
− | Displaying a given list of | + | Displaying a given list of {{Vn}}-values with different options. |
==Parameter== | ==Parameter== | ||
− | The first parameter is always the list of | + | The first parameter is always the list of {{Vn}}-values, the second can be one of the following: |
− | *<count>: only the number of | + | *<count>: only the number of {{Vn}}-values is displayed |
− | *<short>: only the list of | + | *<short>: only the list of {{Vn}}-values is given without any types/comments |
− | *<first>: returns the first entry of the | + | *<first>: returns the first entry of the {{Vn}}-values, empty if none |
− | *<last>: returns the last entry of the | + | *<last>: returns the last entry of the {{Vn}}-values, empty if none |
− | *none=default: all | + | *none=default: all {{Vn}}-values with types/comments are displayed |
==Examples== | ==Examples== |
Revision as of 21:17, 23 June 2021
Purpose
Displaying a given list of n-values with different options.
Parameter
The first parameter is always the list of n-values, the second can be one of the following:
- <count>: only the number of n-values is displayed
- <short>: only the list of n-values is given without any types/comments
- <first>: returns the first entry of the n-values, empty if none
- <last>: returns the last entry of the n-values, empty if none
- none=default: all n-values with types/comments are displayed
Examples
{{NVal list|<list>}}: default {{NVal list|<list>|count}} {{NVal list|<list>|short}} {{NVal list|<list>|first}} {{NVal list|<list>|last}}