Namespaces
Variants
Views
Actions

Template:vl

From cppreference.com
()
[edit] [{{purge}}] Template documentation

{{v|numbers |link (optional)}}

Used to refer to the items in numbered lists, e.g. to specific overload, etc. This is required in order to JavaScript-based standard-versioning to work.

numbers can respresent one or more overload numbers, multiple numbers are separated by comma, and three or more consecutive numbers can be represented by combining the start and end numbers with hyphen, see the examples below.

An optional parameter link is used to generate a link "Version_XX", where XX is links value. This is useful to link to Synopsis' entities and works fine together with {{dcla}} and {{dcl rev multi}}, that are able to generate underlying anchors with names "Version_XX".

Examples:

  • {{v|1}} results in (1)
  • {{v|1,3}} results in (1,3)
  • {{v|2-4}} results in (2-4)
  • {{v|1,3|1}} results in (1,3)
  • {{v|1-3|42}} results in (1-3)


{{vl|numbers }}

Same as {{v}}, except that the link is automatically generated from the first number in numbers.

Examples:

  • {{vl|1}} results in (1) (same as {{v|1|1}})
  • {{vl|1,3}} results in (1,3) (same as {{v|1,3|1}})
  • {{vl|2-4}} results in (2-4) (same as {{v|2-4|2}})