Namespaces
Variants
Actions

Template:spar

From cppreference.com

{{{1}}}

[edit] [{{purge}}] Template documentation

{{spar|text}} - used to mark-up identifiers referring to syntax constructs (text appears in italic).

Example: {{spar|init-statement}} results in init-statement

{{spar tt|text}} - used to mark-up identifiers referring to syntax constructs (text appears in italic+teletype).

Example: {{spar tt|argc}} results in argc

{{spar sep|text}} - a shorthand of {{spar|text}} with {{sep}}, used to mark-up identifiers referring to syntax constructs preceding non-space characters (text appears in italic).

Example:
  • buf  <> as a result of {{spar sep|buf}}{{tt|<>}} (i.e. with sep) vs
  • buf<> as a result of {{spar|buf}}{{tt|<>}} (without sep)
Example:
  • foo <> as a result of {{spar sep|foo}}{{tt|<>}} (i.e. with sep) vs
  • foo<> as a result of {{spar|foo}}{{tt|<>}} (without sep).

{{spar optional|text}} - used to mark-up identifiers referring to optional syntax constructs.

Example: {{spar optional|attr}} results in attr (optional)