Шаблон:Исходник/doc

Материал из Википедии — свободной энциклопедии
Перейти к навигации Перейти к поиску

Примеры[править код]

Код
Lorem {{Исходник|ipsum '''dolor'''}} sit amet
Вид Lorem ipsum '''dolor''' sit amet
Код
The declaration {{Исходник|lang=cpp |int foo(const std::string& bar, const std::vector<long double*>& baz);}} is the prototype for a function defined later.
Вид The declaration int foo(const std::string& bar, const std::vector<long double*>& baz); is the prototype for a function defined later.
Код
If the code contains an [[equals sign]], such as {{Исходник|lang=javascript | code=var img = document.getElementsByTagName("img");}}, you must identify the first parameter explicitly as {{{1}}} or {{{Исходник}}}; see also [[:bugzilla:5138]].
Вид If the code contains an equals sign, such as var img = document.getElementsByTagName("img");, you must identify the first parameter explicitly as {{{1}}} or {{{Исходник}}}; see also bugzilla:5138.

Включенные шаблоны[править код]

Код
{{Исходник|{{cite web |title=Title |url=http://example.org|lang=en}}}}
Вид <span class="citation"><span lang="en">[http://example.org Title]</span>&nbsp;<span class="ref-info" style="cursor:help;" title="на английском языке">(англ.)</span>.</span>