Wiki: DebugInfo: RichTablePlugin


Detailed view of a page, which is probably more useful for debugging than anything else.

Querying backend directly for 'RichTablePlugin'

get_pagedata('RichTablePlugin')
 _cached_html 
transformedtext Object
(
    [_type] => pagetype_wikitext Object
        (
        )

    [_basepage] => RichTablePlugin
    [_content] => Array
        (
            [0] => <div class="wikitext"><p class="tightenable top">
            [1] => cached_wikilink Object
                (
                    [_page] => RichTablePlugin
                )

            [2] =>  is a plugin that takes off from the 
            [3] => cached_wikilink Object
                (
                    [_page] => OldStyleTablePlugin
                )

            [4] => . It allows a user to specify arbitrary properties of <tt>&lt;table&gt;</tt>, <tt>&lt;tr&gt;</tt> and <tt>&lt;td&gt;</tt> with a very simple markup.</p>
<p class="tightenable">NEW: The plugin is now fixed so that the contents of each cell are individually processed by the BlockParser. This means that if everything works correctly,  you can do interesting things like put <b>invoke plugins</b>, use <b>enumerated lists</b> etc within each cell!</p>
<ul><li class="tightenable bottom">A <tt>&quot;-&quot;</tt> (dash) at the start of a new line represents a new row in the table.</li>
<li class="tightenable top bottom">A <tt>&quot;|&quot;</tt> (vertical bar or pipe) at the start of a new line represents a cell.</li>
<li class="tightenable top bottom"><p class="tightenable top bottom">Attributes for the tags</p>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><b>A line that starts with a <tt>&quot;*&quot;</tt> (star or asterisk) after a <tt>&quot;|&quot;</tt> is parsed for attributes for the corresponding cell.
*Attributes for the table are given on line that starts with a &lt;tt&gt;&quot;</b>&quot;&lt;/tt&gt;, only if the line appears before any other line except whitespace.</p>
<ul><li class="tightenable top bottom">A line that starts with a <tt>-</tt> is always parsed for attributes since it can't have any content, unlike a cell.</li>
</ul>
</blockquote>
</li>
<li class="tightenable top bottom"><p class="tightenable top bottom">Cell contents</p>
<ul><li class="tightenable top bottom">Cell contents are processed by the BlockParser.</li>
</ul>
<blockquote class="tightenable top bottom"><p class="tightenable top bottom"><b>Any line that starts with a &lt;tt&gt;&quot;</b>&quot;&lt;/tt&gt; anywhere other than the table attribute line is treated as normal content.</p>
<ul><li class="tightenable top bottom">Any line that starts with whitespace is also treated as content.</li>
</ul>
<p class="tightenable top bottom"><b>Any cell line that does not have a &lt;tt&gt;&quot;</b>&quot;&lt;/tt&gt; after the <tt>&quot;|&quot;</tt> is treated as normal content.</p>
<ul><li class="tightenable top bottom">All content lines that follow a cell line are added to that cell. They can contain arbitrary text except the above cases.</li>
<li class="tightenable top bottom">If there is no cell in the current row, content lines are dropped silently.</li>
</ul>
</blockquote>
</li>
<li class="tightenable top">The two special characters <tt>&quot;~&quot;</tt> and <tt>&quot;?&gt;&quot;</tt> should be escaped as <tt>&quot;\~&quot;</tt> and <tt>&quot;?\&gt;&quot;</tt>. I havn't discovered any other characters yet that might need to be escaped. This is required for the block parser to work.</li>
</ul>
<p class="tightenable bottom">Bugs:</p>
<ul><li class="tightenable top bottom">The source code sucks</li>
<li class="tightenable top">The plugin can't nest itself yet. Thus nested tables are currently not possible.</li>
</ul>
<p class="tightenable">Example:</p>

            [5] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin RichTable

*border=1, cellpadding=5, bgcolor=#f0f8f8, width=75%, align=center
-
|* colspan=3, align=center
HomePage
-
|* colspan=2
[http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]
|* rowspan=2
This cell actually has a plugin invocation inside it!
<?plugin
BackLinks
?\>
- bgcolor=white
|
#One
#Two
|
*Foo
*Bar
- bgcolor=cyan
This line gets dropped ... no cell to contain it!
|* bgcolor=#f0f0ff, align=center
One paragraph

Another paragraph?
|* align=left
This cell uses the row color
| I wish this cell had a nested table inside it! :(
?>
                    [_tightenable] => 0
                )

            [6] => <p class="tightenable">The above table is rendered from:</p>
<pre class="tightenable">
&lt;?plugin RichTable

*border=1, cellpadding=5, bgcolor=#f0f8f8, width=75%, align=center
-
|* colspan=3, align=center
HomePage
-
|* colspan=2
[http://phpwiki.sourceforge.net/demo/themes/default/images/png.png]
|* rowspan=2
This cell actually has a plugin invocation inside it!
&lt;?plugin
BackLinks
?\&gt;
- bgcolor=white
|
#One
#Two
|
*Foo
*Bar
- bgcolor=cyan
This line gets dropped ... no cell to contain it!
|* bgcolor=#f0f0ff, align=center
One paragraph.

Another paragraph?
|* align=left
This cell uses the row color
| I wish this cell had a nested table inside it! :(
?&gt;</pre>
<dl><dt class="tightenable"><strong>Author</strong></dt>
<dd class="tightenable bottom">Sameer D. Sahasrabuddhe</dd>
<dt class="tightenable top"><strong>Url</strong></dt>
<dd class="tightenable">
            [7] => cached_externallink Object
                (
                    [_url] => http://www.it.iitb.ac.in/sameerds/phpwiki/index.php/RichTablePlugin
                )

            [8] => </dd>
</dl>
<p class="tightenable">&lt;small&gt;
            [9] => cached_wikilink Object
                (
                    [_page] => P
                )

            [10] => 
big dick cock big penis fuck really big penis large penis 
            [11] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060202094145/http://www.network54.com/index/56679
                    [_label] => big brother penis
                )

            [12] =>  big dick</p>
<p class="tightenable">bbw cumshots bbw sex video new york bbw bbw blow job 
            [13] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060707153541/http://www.bfu.bg/site/files/?cla6/bbwbbw
                    [_label] => bbw date
                )

            [14] =>  plump movie</p>
<p class="tightenable">hot asian babes club asia asian pussy gallery hot asian ass 
            [15] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060202100756/http://www.network54.com/index/56655
                    [_label] => asian pussy gallery
                )

            [16] =>  asian pee</p>
<p class="tightenable">dog teen sex hot dog sex sex with dogs dog sex guide 
            [17] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060202101023/http://www.network54.com/index/56674
                    [_label] => sex with dogs
                )

            [18] =>  women having sex with dogs</p>
<p class="tightenable">gay cams webcam gay gratuite gay teen webcam rencontre webcam gay 
            [19] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060708154752/http://www.bfu.bg/site/files/?cla6/gaygay
                    [_label] => gay cams
                )

            [20] =>  cams gays</p>
<p class="tightenable">drunk sex video drunk girls drunk bitch drunk chicks 
            [21] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060131190647/http://www.network54.com/index/56704
                    [_label] => drunk girls fucking
                )

            [22] =>  drunk college girls</p>
<p class="tightenable">butt worship celebrity butt big tits round ass day my butt went psycho 
            [23] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060705233240/http://www.bfu.bg/site/files/?cla6/analbutt
                    [_label] => i like big butts
                )

            [24] =>  white ass</p>
<p class="tightenable">forced sex galleries forced teen forced vibrations forced sex galleries 
            [25] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060708155246/http://www.bfu.bg/site/files/?cla6/rapeforced
                    [_label] => bdsm forced
                )

            [26] =>  forced suck cock</p>
<p class="tightenable">extreme creampie extreme cunt extreme dildo extreme facial 
            [27] => cached_externallink Object
                (
                    [_url] => http://web.archive.org/web/20060706225009/http://www.bfu.bg/site/files/?cla6/rapeextreme
                    [_label] => extreme gangbang
                )

            [28] =>  extreme facial</p>
<p class="tightenable bottom">&lt;/small&gt;</p>
</div>

        )

    [_description] => RichTablePlugin is a plugin that takes off from the OldStyleTablePlugin. It allows a user to specify arbitrary properties of <table>, <tr> and <td> with a very simple markup.
)
 hits  764
get_versiondata('RichTablePlugin',4)
 %content  RichTablePlugin is a plugin that takes o ...
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1186722297
 pagetype  wikitext
get_versiondata('RichTablePlugin',3)
 %content  RichTablePlugin is a plugin that takes o ...
 _supplanted  1186722297
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1184070059
 pagetype  wikitext
get_versiondata('RichTablePlugin',2)
 %content  RichTablePlugin is a plugin that takes o ...
 _supplanted  1184070059
 author  WikiWord
 author_id  WikiWord
 is_minor_edit   
 markup  2
 mtime  1183077446
 pagetype  wikitext
get_versiondata('RichTablePlugin',1)
 %content  RichTablePlugin is a plugin that takes o ...
 _supplanted  1183077446
 author  ReiniUrban
 author_id  ReiniUrban
 is_minor_edit   
 markup  2
 mtime  1075205974
 pagetype  wikitext

Copyright © 2007 RobertMelton.com