Изменения

Перейти к: навигация, поиск

Шаблон:File

1970 байтов добавлено, 02:32, 17 февраля 2014
Новая страница: «<includeonly> <div class="contentbox mw-collapsible" style="border: 1px solid {{{color|#333}}}; background-color: {{{bgcol|#F3F3F3}}}; overflow: auto"> <div class…»
<includeonly>
<div class="contentbox mw-collapsible" style="border: 1px solid {{{color|#333}}}; background-color: {{{bgcol|#F3F3F3}}}; overflow: auto">
<div class="contentbox-title"><span class="contentbox-title1" style="background-color: #870922; color: white">{{{title|Код}}}</span>{{#if:{{{subtitle|}}}|<span class="contentbox-subtitle" style="background-color: #AAA; color: white;">{{{subtitle}}}</span>|}}{{#if:{{{description|}}}|<span class="contentbox-description" style="color: #333;">{{{description}}}</span>|}}</div><br style="clear: both;" />{{#if:{{{rightmsg|}}}|<div class="contentbox-rightmsg">{{{rightmsg}}}</div>|}}
<div class="contentbox-content mw-collapsible-content">
{{#tag:syntaxhighlight|{{{code}}}|lang={{{lang|text}}}}}
</div>
</div></includeonly><noinclude>
== Использование ==

<pre>
{{file
|title=Заголовок
|subtitle=Подзаголовок
|description=Описание
|lang=Язык для подсветки синтаксиса
|code=Код
}}
</pre>


== Примеры ==
<pre>
{{file
|subtitle=$HOME/.Rprofile
|lang=rsplus
|code=
# .Rprofile -- commands to execute at the beginning of each R session
#
# You can use this file to load packages, set options, etc.
#
# NOTE: changes in this file won't be reflected until after you quit
# and start a new session
#

options(digits = 4)
options(digits.secs=3)
options(show.signif.stars = FALSE)
options(showWarnCalls = TRUE, showErrorCalls = TRUE)

utils::rc.settings(ipck = TRUE)
}}
</pre>
{{file
|subtitle=R
|lang=rsplus
|code=
# .Rprofile -- commands to execute at the beginning of each R session
#
# You can use this file to load packages, set options, etc.
#
# NOTE: changes in this file won't be reflected until after you quit
# and start a new session
#

options(digits = 4)
options(digits.secs=3)
options(show.signif.stars = FALSE)
options(showWarnCalls = TRUE, showErrorCalls = TRUE)

utils::rc.settings(ipck = TRUE)
}}
</noinclude>

Навигация