ru:plugin:box
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
ru:plugin:box [2020-10-22 19:52] – Xenus2020 | ru:plugin:box [2020-11-04 23:51] (текущий) – Dr-Yukon | ||
---|---|---|---|
Строка 2: | Строка 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : chris@jalakai.co.uk | email : chris@jalakai.co.uk | ||
Строка 19: | Строка 19: | ||
---- | ---- | ||
- | ** Хотя этот плагин по-прежнему работает нормально, | + | **Хотя этот плагин по-прежнему работает нормально, |
- | Этот плагин добавляет | + | Этот плагин добавляет в [[: |
- | + | Наиболее часто используемый стиль, вероятно, | |
- | Вероятно, | + | |
==== Заметки ==== | ==== Заметки ==== | ||
- | * Мою версию этой страницы, | + | |
- | | + | * 24.09.2009 эта ссылка не работает :( |
- | | + | * 28.10.2009 эта ссылка, |
- | | + | * 13.12.2009 опять битая :( |
- | | + | * 30.01.2010 Скопирован и вставлен ниже код в style.css и syntax.php (./ |
- | ===== Благодарность===== | + | ===== Благодарности ===== |
- | Закругленные углы основаны на [[http:// | + | Закругленные углы основаны на [[http:// |
+ | <!-- проверено до сюда --> | ||
===== Синтаксис ===== | ===== Синтаксис ===== | ||
Строка 172: | Строка 172: | ||
- | .................... | + | |
Строка 217: | Строка 217: | ||
</ | </ | ||
- | This patch has been added to the latest plugin version. | + | Этот патч добавлен в последнюю версию плагина. Спасибо Бернд и Стефан за ваши усилия. --- // |
- | ===== Tips ===== | + | ===== Подсказки |
- | ==== Alternate Syntax & Allowing markup in captions | + | ==== Альтернативный синтаксис и разрешающая разметка в подписях |
- | Great plugin! I've modified my copy and thought others might be interested. [[http:// | + | Отличный плагин! Я изменил свою копию и подумал, |
- | Changes: | + | Изменения: |
- | - Syntax changed: '' | + | - Изменен синтаксис: '' |
- | - Markup allowed in captions | + | - Разметка разрешена в подписях |
- | - Title and caption may be over multiple lines (i.e. multiple paragraphs) | + | - Заголовок и подпись могут занимать несколько строк |
- | - Width may be specified in %, px, em or ex //(now included in release version)// | + | - Ширина может быть указана в %, px, em или |
- | Being able to place markup in the caption is nice for when you want to draw attention to a note about, say, an alternative version of some software | + | Возможность разместить разметку в подписи хороша, когда вы хотите привлечь внимание к примечанию, скажем, |
- | It works well on my site, and the only problem it seems to have is that I can't nest boxes (not sure why). | + | Он хорошо работает на моем сайте, и единственная проблема, |
- | For complete code please see: [[boxes_mod|Modifed Boxes]] | + | Полный код см. в разделе: [[boxes_mod|Модифицированные Box'ы]] |
--- // | --- // | ||
- | > Hi Robert, Have you tried your syntax with the nesting patch, I briefly looked at your code and didn't see anything that should prevent nesting. | + | > Привет, Роберт! Вы пробовали свой синтаксис с патчем вложенности, я кратко посмотрел на ваш код и не увидел ничего, |
- | ==== Backporting | + | ==== Backporting |
- | Here's what I did to backport this box plugin to the 2005-07-13 | + | Вот что я сделал для резервного копирования этого плагина в выпуск |
- | * Add style.css | + | * Добавьте |
$ cd .../ | $ cd .../ | ||
Строка 252: | Строка 252: | ||
$ cat style.css >> ../ | $ cat style.css >> ../ | ||
- | * Apply the following patch: | + | * Примените следующий патч: |
< | < | ||
Строка 298: | Строка 298: | ||
- | ==== More Verbose | + | ==== Более подробный |
- | This is a very handy plugin! I started to play with the CSS to do some custom things | + | Это очень удобный плагин! Я начал экспериментировать с CSS, чтобы сделать некоторые нестандартные вещи |
- | I'm no expert when it comes to CSS, so I can't guarantee I've done this 100% efficiently, but it holds up with every browser | + | Я не эксперт в области |
- | The CSS can be see here: http:// | + | CSS можно увидеть здесь: http:// |
- | In case anyone is interested... Cheers! --- // | + | Если кому-то интересно… Ура! --- // |
- | ==== Add support for ODT export | + | ==== Добавить поддержку экспорта |
- | This adds very basic support for the [[plugin: | + | Это добавляет базовую поддержку |
< | < | ||
Строка 365: | Строка 365: | ||
- | ===== Discussion | + | ===== Обсуждение |
- | + | ||
- | Thanks for the plugin. My question is if there is something I can do to preserve a blank line in the raw text without using the '< | + | |
+ | Спасибо за плагин. У меня вопрос, | ||
--- [[user> | --- [[user> | ||
---- | ---- | ||
- | Thanks, for the plugin, it looks really great. However I want to use it to highlight different content. For example I'd like to use < | + | Спасибо за плагин, выглядит действительно здорово. Однако я хочу использовать его для выделения различного контента. Например, |
- | > You need to change the base pattern | + | > Вам нужно изменить базовый шаблон |
---- | ---- | ||
- | Rather than using lots of different predefined styles, how about using a syntax similar to the phpBB colour plugin, and allow the user to define their choice of colours exactly? --- // | + | Вместо того, чтобы использовать множество различных предопределенных стилей, |
- | > Maybe. I didn't want to define styles as colours. It would be better to choose style names semantically, e.g. error, warning, information, syntax, formulae, alert, etc. | + | > Может быть. Я не хотел определять стили как цвета. Было бы лучше выбирать имена стилей семантически, например, ошибка, предупреждение, информация, синтаксис, формулы, предупреждение и т. д. Однако значение каждого стиля блока, вероятно, |
- | >> | + | >> |
- | Individual colour specification has been added to the latest release. --- // | + | В последнюю версию добавлена индивидуальная цветовая спецификация. --- // |
---- | ---- | ||
- | The code return by the plugin is not really standard | + | Код, возвращаемый плагином, |
$html .=" | $html .=" | ||
//and | //and | ||
$html .= " | $html .= " | ||
</ | </ | ||
- | > To my knowledge the xhtml standard does't mind empty elements | + | > Насколько мне известно, |
---- | ---- | ||
- | Box plugin doesn' | + | Плагин |
- | > Plugin is working, styles aren't being picked up. | + | > Плагин работает, стили не подхватываются. Я добавил комментарий и несколько идей на страницу вашей игровой площадки. --- // |
- | >;;>Thank you. Clearing the cache is exactly what was needed to get things working. I didn't see that mentioned anywhere else. I will go ahead and file a bug report, because you are right, the .css should have been regenerated after the plugin install. --- // | + | >;;>Спасибо. Очистка кеша - это именно то, что нужно для работы. Я не видел этого где-либо еще. Я продолжу и отправлю отчет об ошибке, потому что вы правы, .css должен был быть восстановлен после установки плагина. --- // |
- | >>> | + | >>> |
- | >>>>< | + | >>>>< |
- | >>>> | + | >>>> |
---- | ---- | ||
- | This plugin has **XSS vulnerability**! | + | Этот плагин имеет |
- | Try this in IE: | + | Попробуйте это в IE: |
< | < | ||
<box ' style=" | <box ' style=" | ||
Строка 411: | Строка 410: | ||
</ | </ | ||
</ | </ | ||
- | This fix works for me (lines 160-168): | + | Это исправление работает для меня |
< | < | ||
foreach ($tokens as $token) { | foreach ($tokens as $token) { | ||
Строка 423: | Строка 422: | ||
</ | </ | ||
- | > Thanks Main script and plugin sources updated. Also see [[#security fix]]. --- // | + | > Спасибо. Обновлены основные скрипты и источники плагинов. Также см.[[#Исправление безопасности]]. --- // |
---- | ---- | ||
- | Update of plugin silently overwrites | + | Обновление плагина незаметно перезаписывает |
- | > How about [[devel: | + | > Как насчет |
---- | ---- | ||
- | I'd like to use '' | + | Я хотел бы использовать |
- | > At present you can't, at least not directly. It should be possible to use the [[plugin: | + | > В настоящее время вы не можете, по крайней мере, не напрямую. Должна быть возможность использовать синтаксис |
- | >>That's exactly what I did but I didn't know about your " | + | >>Это именно то, что я сделал, |
---- | ---- | ||
- | Looks like the layer for the box obscures the TOC box if a '' | + | Похоже, |
- | > Yes. I have added it to bugs. I would guess a CSS fix is required either to TOC or box. --- // | + | > Да. Я добавил это в баги. Я предполагаю, |
---- | ---- | ||
- | I think you should mention that the plugin will only work if you have //‘Allow embedded HTML’// turned on in DokuWiki' | + | Я думаю, вы должны упомянуть, |
- | > It doesn' | + | > Не требует включения «Разрешить встроенный |
\\ | \\ | ||
---- | ---- | ||
Строка 452: | Строка 451: | ||
<box 90% green round> | <box 90% green round> | ||
\\ | \\ | ||
- | I have a small issue with boxes and I was wondering if someone could help me perhaps? When I put a box on a page and try to put some spacing for new lines after the box with the usual markup it doesn' | + | У меня небольшая проблема с коробками, |
\\ | \\ | ||
- | I also noticed that on this site that there seems to be no need to use the typical markup for a new line. Why is that? | + | Я также заметил, |
\\ | \\ | ||
</ | </ | ||
- | > Boxes styled left or right are floated. A cleared element will need to appear after the box to stop subsequent content floating next to it. You maybe able to work something with the div/ | + | > Ящики, стилизованные влево или вправо, |
- | Cheers for the update Chris but I'm not sure what you mean by a cleared element? So without the div/ | + | Благодарим вас за обновление, |
- | > You could also use the **clearfloat | + | > Вы также можете использовать |
< | < | ||
< | < | ||
Строка 469: | Строка 468: | ||
--- [[user> | --- [[user> | ||
- | What about a | before and after the text? | + | Что насчет |
---- | ---- | ||
- | Thanks for the great plugin. I really enjoy the boxes :-) I have one suggestion/bug report. It seems that the current implementation of boxes do not like nested boxes. For example, I'd like to have something like this. | + | Спасибо за отличный плагин. Мне очень нравятся коробки |
<code wiki> | <code wiki> | ||
Строка 486: | Строка 485: | ||
</ | </ | ||
- | If I do that I get overlapping boxes. However, If I do: | + | Если я это сделаю, |
<code wiki> | <code wiki> | ||
Строка 502: | Строка 501: | ||
</ | </ | ||
- | Then it produces something what one would expect. Most probably my work around produces a completely incorrect | + | Тогда получается то, чего можно было ожидать. Скорее всего, моя работа дает совершенно неверный |
---- | ---- | ||
- | Please add a '' | + | Пожалуйста, |
- | > Added --- // | + | > Добавлен |
---- | ---- | ||
- | A toggle to clear the floats would make a nice option as I normally do not prefer text to wrap around the box. The only time I let the text wrap is when my boxes are near the ToC. I hard coded some float clearing since I generally do not want text wrapping around the boxes, however, that can mess with the ToC Div. Hence a toggle would be great. | + | Переключатель для очистки плавающих элементов будет хорошим вариантом, |
---- | ---- | ||
- | :!: This creates bad XHTML, | + | :!: Это создает плохой |
- | > fix? < | + | > исправить? < |
</p> was missing | </p> was missing | ||
</ | </ | ||
Строка 523: | Строка 522: | ||
---- | ---- | ||
- | Hi - Thanks for a terrific plugin. I am having problems with boxes and captions when printing. I copied the plugins/ | + | Привет |
---- | ---- | ||
- | Nice plugin. | + | Хороший плагин. Мне интересно, можно ли сделать так, чтобы заголовок работал как заголовок, |
---- | ---- | ||
- | Hi, I have a lot of citation. I often copy and paste. | + | Привет, у меня много ссылок. Я часто копирую и вставляю. Можно ли сохранить возврат каретки и избежать добавления вручную «\\» в конце каждой новой строки? |
- | Is it to possible to keep carriage return and avoid to add manually "%%\\%%" at the end of each new lines ?\\ | + | Тогда как хороший плагин. |
- | Whereas good plugin. \\ | + | |
\\ | \\ | ||
- | I noticed when I copy the code of the third box of [[http:// | + | Я заметил, |
< | < | ||
<box green > this is | <box green > this is | ||
Строка 547: | Строка 545: | ||
</ | </ | ||
\\ \\ | \\ \\ | ||
- | On your test page, the text box is on 3 lines. Why 1 line, me and you 3 lines on your page ? I copy and paste exactly the same source code. In your page, the carriage return is kept. \\ | + | На вашей тестовой странице текстовое поле состоит из 3 строк. Почему на вашей странице |
- | How can I have the same behavior | + | Как я могу вести себя так же? Так что я смогу скопировать и вставить, |
- | > Yes. See the [[plugin: | + | > Да. См. [[plugin: |
- | >> | + | >> |
---- | ---- | ||
- | Hi Chris, | + | Привет Крис, Очень красивые и полезные эффекты. Есть мысли о добавлении значка в строку заголовка?\\ |
- | Very nice and useful effects. Any thoughts about adding an icon on the title bar ?\\ | + | См., например, |
- | See for example | + | Я просто не понимаю, |
- | I just don't understand how they did that!\\ | + | С уважением, Peter Chan 2007-10-02 |
- | Cheers, Peter Chan 2007-10-02 | + | |
---- | ---- | ||
- | Hi -- I am trying to use boxes in the latest DokuWiki | + | Привет, |
- | Rick Reynolds 2008-01-16 | + | |
- | > Formatting isn't currently supported in captions. | + | > В настоящее время форматирование субтитров не поддерживается. Однако модифицированный плагин боксов, в котором используется немного другой синтаксис, |
- | >>That is right, but box_mod | + | >>Это верно, но box_mod |
---- | ---- | ||
- | It started working for me when I changed to the dokucms | + | У меня это начало работать, |
---- | ---- | ||
- | Is it possible to add support for absolute | + | Можно ли добавить поддержку абсолютной |
- | > Yes, there is a height support now. Check my modified plugin: [[plugin: | + | > Да, теперь есть поддержка высоты. Проверьте мой модифицированный плагин: [[plugin: |
---- | ---- | ||
- | Any chance of allowing the text colour to be altered | + | Есть ли шанс разрешить изменение цвета текста |
---- | ---- | ||
- | I noticed it was necessary to purge cache to allow new plugin' | + | Я заметил, |
- | | + | |
- | | + | |
- | | + | |
- | still, no div.box | + | тем не менее, в моем листе CSS нет инструкции CSS div.box , и поле не отображается должным образом. Наконец-то я обнаружил проблему с разрешением файла: |
- | I finally found a file permission issue: | + | |
< | < | ||
ls -l box/ | ls -l box/ | ||
-rwx------ 1 box/ | -rwx------ 1 box/ | ||
</ | </ | ||
- | should that be fixed in archive.tgz ? | + | это нужно исправить в archive.tgz? |
---- | ---- | ||
- | Thanks for this plugin.\\ | + | Спасибо за этот плагин. |
- | I made a little change on 3 lines in **syntax.php** to produce an XHTML compliant document. (It is just some space missing characters...) | + | Я сделал небольшое изменение в трех строках в syntax.php, чтобы создать |
<code php> | <code php> | ||
(line 133) $renderer-> | (line 133) $renderer-> | ||
Строка 604: | Строка 599: | ||
(line 153) $renderer-> | (line 153) $renderer-> | ||
</ | </ | ||
- | * Add a space character between | + | * Добавьте пробел между |
- | * Add a space character between | + | * Добавьте пробел между |
- | * Add a space character between | + | * Добавьте пробел между |
// | // | ||
---- | ---- | ||
- | I have new dokuwiki | + | У меня новая версия |
//Pletiplot -- 2010-12-20// | //Pletiplot -- 2010-12-20// | ||
Строка 617: | Строка 612: | ||
---- | ---- | ||
- | Please correct your CSS. | + | Пожалуйста, |
- | The rule @CHARSET " | + | Правило |
--- [[user> | --- [[user> | ||
Строка 625: | Строка 620: | ||
---- | ---- | ||
- | Can we add a close button to it, so We can use it as notice? | + | Можно ли добавить к нему кнопку закрытия, чтобы использовать ее как уведомление? |
---- | ---- | ||
- | :!: **Box** | + | :!: Плагин |
---- | ---- | ||
- | Basic Dokuwiki engine works with images only through pixel widths. This plugin can be used as the percent zoomer. Add < | + | Базовый движок «Докувики» работает с изображениями только в пикселях. Этот плагин можно использовать как процентное увеличение. Добавьте |
width: 100%; | width: 100%; | ||
width: -moz-available; | width: -moz-available; | ||
width: -webkit-fill-available; | width: -webkit-fill-available; | ||
width: stretch; | width: stretch; | ||
- | }</ | + | }</ |
---- | ---- |
ru/plugin/box.txt · Последнее изменение: 2020-11-04 23:51 — Dr-Yukon