Template:c
Da cppreference.com.
{{{1}}}
This is one of the templates used for syntax highlighting.
{{c| 1=code| lang=language(opzionale)}}
- Base template that is intended to highlight code inline, i.e. does not enclose the code. lang is optional; value returned by {{get_lang}} is used by default.
{{source| 1=code| lang=language(opzionale)}}
- Base template that is intended to highlight large amounts of code. lang is optional; value returned by {{get_lang}} is used by default.
{{eq fun| lang=language|code1|code2(opzionale)|...|code4(opzionale)}} - where code1
, code2
, etc. are code for each version of the described template function. If no code is supplied at all, the template results in {{todo}}. lang is optional; value returned by {{get_lang}} is used by default.
{{example|description(opzionale)|lang=language(opzionale)| code=code_to_display| p=true_if_nondeterministic(opzionale)}}
- Base template for examples. If
code
is not present, the template results in {{todo}}. lang defaults to a value returned by {{get_lang}}. output specifies the output which is displayed by the code. If the output is not deterministic, p can be set totrue
to indicate this (Possible output is shown instead of just Output).
{{example template| location| param1 (opzionale)| param2 (opzionale) ...}}
- Sets
example-template-name
variable to location, includes the template from location and unsets the variable. Use this template whenever using an example from a template; this will add an edit link to the example. The unnamed parameters param1, param2, ... are passed to the template.
[modifica] Implementation templates
{{example editlink| dummy}}
- Adds an edit link to an example. Use dummy parameter to prevent caching.
The above documentation is transcluded from Template:source/doc. (edit | history) Subpages of this template. |