Template:spar
From cppreference.com
{{{1}}}
This high-risk template has been protected from editing to prevent vandalism. Please discuss any changes on the talk page. |
{{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. withsep
) vs
- buf
<>
as a result of{{spar|buf}}
{{tt|<>}}
(withoutsep
)
- buf
- Example:
- foo
<>
as a result of{{spar sep|foo}}
{{tt|<>}}
(i.e. withsep
) vs
- foo
<>
as a result of{{spar|foo}}
{{tt|<>}}
(withoutsep
).
- foo
{{spar optional|text}} - used to mark-up identifiers referring to optional syntax constructs.
- Example:
{{spar optional|attr}}
results in attr (optional)
The above documentation is transcluded from Template:spar/doc. (edit | history) Please add categories and interwikis to the /doc subpage. Subpages of this template. |