Шаблон:File — различия между версиями

Материал Psylab.info - энциклопедии психодиагностики
Перейти к: навигация, поиск
м
м
Строка 7: Строка 7:
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 
== Использование ==
 
== Использование ==
 +
 +
{{mbox|
 +
  |type=notice
 +
  |text='''Рекомендация:'''
 +
  |text-small=При использовании  во избежании неправильной работы шаблона обрамляйте код в кэги <code><nowiki><</nowiki>nowiki><nowiki></nowiki></nowiki></code>. Это необходимо, если в коде встречаются символы «|».
 +
}}
  
 
<pre>
 
<pre>

Версия 19:03, 19 февраля 2014

Использование

{{file
  |title=Заголовок
  |subtitle=Подзаголовок
  |description=Описание
  |lang=Язык для подсветки синтаксиса
  |code=Содержимое файла
}}


Примеры

{{file
  |subtitle=$HOME/.Rprofile
  |lang=r
  |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)
}}
Файл

<syntaxhighlight lang="r" enclose="pre"># .Rprofile -- commands to execute at the beginning of each R session

  1. You can use this file to load packages, set options, etc.
  2. NOTE: changes in this file won't be reflected until after you quit
  3. 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)</syntaxhighlight>