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

Материал Psylab.info - энциклопедии психодиагностики
Перейти к: навигация, поиск
м
м
Строка 3: Строка 3:
 
<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-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">
 
<div class="contentbox-content mw-collapsible-content">
<syntaxhighlight lang={{{lang|text}}} {{#if:{{{line|}}}|line|}}}}>
+
<syntaxhighlight lang="{{{lang|text}}}" {{#if:{{{line|}}}|line|}}}}>
 
{{{code}}}
 
{{{code}}}
 
</syntaxhighlight>
 
</syntaxhighlight>
Строка 25: Строка 25:
 
{{file
 
{{file
 
   |subtitle=$HOME/.Rprofile
 
   |subtitle=$HOME/.Rprofile
   |lang="rsplus"
+
   |lang=rsplus
 
   |line=true
 
   |line=true
 
   |code=
 
   |code=
Строка 46: Строка 46:
 
{{file
 
{{file
 
   |subtitle=$HOME/.Rprofile
 
   |subtitle=$HOME/.Rprofile
   |lang="rsplus"
+
   |lang=rsplus
 
   |line=true
 
   |line=true
 
   |code=
 
   |code=

Версия 05:50, 17 февраля 2014

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

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


Примеры

{{file
  |subtitle=$HOME/.Rprofile
  |lang=rsplus
  |line=true
  |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="rsplus" 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>