Recent Changes - Search:

PmWiki

pmwiki.org

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Divs

(:div:) markup examples
This page is a sandbox for playing with the new (:div:) markup. The basic div markup works like advanced tables, using a (:div:) ... (:divend:) sequence.

This text is before the division.

(:div id='foo' style='background:
#ffffcc' :)
Here is my text in the division.

* Other markups are allowed
* here also

(:divend:)

Now we're after the division.

This text is before the division.

Here is my text in the division.

  • Other markups are allowed
  • here also

Now we're after the division.

As with advanced tables, a (:div:) or advanced table markup will automatically close any previous (:div:) section. This means that divs and advanced tables do not nest (we may relax this in a future version, but that's the way it's going to work for now).

There is also a >>...<< shortcut that allows WikiStyles to be easily applied to divs. Some examples:

%define=Pm bgcolor=#ffeeff
font-style=italic%
%define=John bgcolor=#eeffee%
%define=shouts font-weight=bold
font-size=larger%
%define=meekly font-size=smaller%

>>Pm<<
Hello, this is some text from Pm.

>>John<<
And here is some text from John.

>>Pm<< 
And now we're back to Pm again.  Pm can
enter multiple paragraphs and
* lists
* lists
* lists

>>John shouts<<
And now John has something really
important to say!

>>Pm meekly right<<
okay already!

Hello, this is some text from Pm.

And here is some text from John.

And now we're back to Pm again. Pm can enter multiple paragraphs and

  • lists
  • lists
  • lists

And now John has something really important to say!

okay already!

Any WikiStyle specification will work between the >> and <<, thus:

>>id=foo class=special<<
Same as [@(:div id=foo
class=special:)@]

Same as (:div id=foo class=special:)

>>bgcolor=#ffffdd right
blue<<
Right aligned blue text in a yellow
background

Right aligned blue text in a yellow background

>>border='2px solid red'
padding=4px<<
This text lives in a box.

The box can span multiple paragraphs
and structures.
>><<

This text is outside of the box.

This text lives in a box.

The box can span multiple paragraphs and structures.

This text is outside of the box.

Edit - History - Print - Recent Changes - Search
Page last modified on September 10, 2011, at 12:03 PM
 0: 00.00 00.00 config start
 1: 00.03 00.00 config end
 2: 00.10 00.05 MarkupToHTML begin
 3: 00.10 00.06 MarkupToHTML begin
 4: 00.11 00.07 MarkupToHTML end
 5: 00.11 00.07 MarkupToHTML begin
 6: 00.13 00.08 MarkupToHTML end
 7: 00.13 00.08 MarkupToHTML begin
 8: 00.13 00.09 MarkupToHTML end
 9: 00.13 00.09 MarkupToHTML begin
10: 00.13 00.09 MarkupToHTML end
11: 00.13 00.09 MarkupToHTML begin
12: 00.14 00.09 MarkupToHTML end
13: 00.16 00.11 MarkupToHTML end
14: 00.17 00.12 MarkupToHTML begin
15: 00.19 00.14 ReadApprovedUrls SiteAdmin.ApprovedUrls begin
16: 00.21 00.15 ReadApprovedUrls SiteAdmin.ApprovedUrls end
17: 00.22 00.17 MarkupToHTML end
18: 00.22 00.17 MarkupToHTML begin
19: 00.24 00.18 MarkupToHTML end
20: 00.24 00.19 now