名前空間
変種
操作

テンプレート:c

提供: cppreference.com

{{{1}}}

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

This is one of the templates used for syntax highlighting.

{{c| 1=code| lang=language(オプション)}}

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(オプション)}}

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(オプション)|...|code4(オプション)}} - 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(オプション)|lang=language(オプション)| code=code_to_display| p=true_if_nondeterministic(オプション)}}

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 to true to indicate this (Possible output is shown instead of just Output).

{{example template| location| param1 (オプション)| param2 (オプション) ...}}

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.

[編集] Implementation templates

{{example editlink| dummy}}

Adds an edit link to an example. Use dummy parameter to prevent caching.