tips:customquoting
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
tips:customquoting [2009-04-10 02:53] – 70.113.8.19 | tips:customquoting [2011-03-18 06:17] (current) – 207.65.119.239 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Colored or indented quoting ====== | ||
+ | [[: | ||
+ | |||
+ | > This is some quoted text | ||
+ | >> here is some more | ||
+ | |||
+ | You can change how the quoting looks by changing the stylesheet '' | ||
+ | |||
+ | <code css> | ||
+ | .quote { | ||
+ | border-left: | ||
+ | padding-left: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | |||
+ | Replace it with something you may prefer. E.g. indenting every quote and format the first level red, the second one green and the following ones blue: | ||
+ | |||
+ | <code css> | ||
+ | .quote { | ||
+ | padding-left: | ||
+ | } | ||
+ | div.quote { | ||
+ | color: #cf0000; | ||
+ | } | ||
+ | div.quote div.quote { | ||
+ | color: #00cf00; | ||
+ | } | ||
+ | div.quote div.quote div.quote { | ||
+ | color: #0000cf; | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | ===== Updated for new DokuWiki releases ===== | ||
+ | |||
+ | This does not work in the current (2005-07-13) version. " | ||
+ | |||
+ | <code css> | ||
+ | blockquote { | ||
+ | padding-left: | ||
+ | color: #cf0000; | ||
+ | } | ||
+ | blockquote blockquote { | ||
+ | color: #00cf00; | ||
+ | } | ||
+ | blockquote blockquote blockquote { | ||
+ | color: #0000cf; | ||
+ | } | ||
+ | </ | ||
+ | or, in patch form (Odesign.css -> design.css) | ||
+ | <code diff> | ||
+ | --- Odesign.css 2005-12-04 18: | ||
+ | +++ design.css | ||
+ | @@ -381,11 +381,19 @@ | ||
+ | } | ||
+ | |||
+ | | ||
+ | - border-left: | ||
+ | - padding-left: | ||
+ | + padding-left: | ||
+ | + color: #cf0000; | ||
+ | | ||
+ | } | ||
+ | |||
+ | +blockquote blockquote { | ||
+ | + color: #00cf00; | ||
+ | +} | ||
+ | + | ||
+ | +blockquote blockquote blockquote { | ||
+ | + color: #0000cf; | ||
+ | +} | ||
+ | + | ||
+ | /* code blocks by indention */ | ||
+ | | ||
+ | | ||
+ | |||
+ | </ | ||
+ | |||
+ | --- // | ||
+ | |||
+ | ===== Another hack ===== | ||
+ | |||
+ | The following hack works with the latest (2005-05-07) version of DokuWiki. This change will create the kind of quoting often seen on Internet discussion boards. | ||
+ | |||
+ | Find the following section in / | ||
+ | |||
+ | < | ||
+ | blockquote { | ||
+ | border-left: | ||
+ | padding-left: | ||
+ | margin-left: | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | I have replaced it with | ||
+ | |||
+ | < | ||
+ | blockquote { | ||
+ | border: 1px dotted #8cacbb; | ||
+ | margin-left: | ||
+ | margin-right: | ||
+ | padding: 3px; | ||
+ | } | ||
+ | </ | ||
+ | ---// | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | Any chance of some syntax rule being added to DokuWiki, to handle this colored quote? If not, what would be the best steps to take to add a custom syntax rule to a DokuWiki installation? | ||
+ | |||
+ | I want to have discussion indent like on Wikipedia - every new post is more indent to left. I tried to add margin-left and padding-left to blockquote and nothing worked... thanks for help. And sorry my English:) PhaX |