Wiki: DebugInfo: OldTextFormattingRules


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

Querying backend directly for 'OldTextFormattingRules'

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

    [_basepage] => OldTextFormattingRules
    [_content] => Array
        (
            [0] => <div class="wikitext">
            [1] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin CreateToc jshide||=1 with_toclink||=1 ?>
                    [_tightenable] => 3
                )

            [2] => <hr />
<h4>Synopsis</h4>
<p class="tightenable top">
            [3] => cached_wikilink Object
                (
                    [_page] => OldTextFormattingRules
                )

            [4] => <br />
<strong>Emphasis:</strong> '<strong></strong>' for <em>italics</em>, _<em></em>_ for <strong>bold</strong>, '<strong></strong>'_<em></em>_ for <em><strong>both</strong></em>.<br />
<strong>Lists:</strong> * for bullet lists, # for numbered lists, <em><strong>;</strong> term <strong>:</strong> definition</em> for definition lists.<br />
<strong>References:</strong> JoinCapitalizedWords or use square brackets for a [page link] or URL [http://cool.wiki.int/].<br />
<strong>Footnotes:</strong> Use [1],[2],[3],...<br />
<strong>Preventing linking:</strong> Prefix with &quot;!&quot;: !DoNotHyperlink, name links like [[text | URL] (double up on the &quot;[&quot;).<br />
<strong>Misc:</strong> &quot;!&quot;, &quot;!!&quot;, &quot;!!!&quot; make headings, &quot;%%<em></em>%&quot; makes a linebreak, &quot;-<em></em>-<em></em>-<em></em>-&quot; makes a horizontal rule.
<strong>Tables:</strong> »|« as first char, »|« for more columns, »|&gt;« align right, »|&lt;« align left, »|^« centered (default), »||« span columns, »|v« span rows</p>
<hr />
<h4>Paragraphs</h4>
<ul><li class="tightenable bottom">Don't indent paragraphs</li>
<li class="tightenable top bottom">Words wrap and fill as needed</li>
<li class="tightenable top bottom">Use blank lines as separators</li>
<li class="tightenable top bottom">Four or more minus signs make a horizontal rule</li>
<li class="tightenable top">%%<em></em>% makes a linebreak (in headings and lists too)</li>
</ul>
<h4>Lists</h4>
<ul><li class="tightenable bottom"><p class="tightenable top bottom">asterisk for first level</p>
<ul><li class="tightenable top bottom">asterisk-asterisk for second level, etc.</li>
</ul>
</li>
<li class="tightenable top bottom">Use * for bullet lists, # for numbered lists (mix at will)</li>
<li class="tightenable top bottom">semicolon-term-colon-definition for definition lists:</li>
</ul>
<dl><dt class="tightenable top">term here</dt>
<dd class="tightenable bottom">definition here, as in the &lt;DL&gt;&lt;DT&gt;&lt;DD&gt; list</dd>
</dl>
<ul><li class="tightenable top bottom">One line for each item</li>
<li class="tightenable top">Other leading whitespace signals preformatted text, changes font.</li>
</ul>
<h4>Headings</h4>
<ul><li class="tightenable bottom">'!' at the start of a line makes a small heading</li>
<li class="tightenable top bottom">'!!' at the start of a line makes a medium heading</li>
<li class="tightenable top">'!!!' at the start of a line makes a large heading</li>
</ul>
<h4>Fonts</h4>
<ul><li class="tightenable">Indent with one or more spaces to use a monospace font:</li>
</ul>
<pre class="tightenable bottom">
 This is in monospace</pre>
<p class="tightenable top">This is not</p>
<h4>Indented Paragraphs</h4>
<ul><li class="tightenable">semicolon-colon -- works like &lt;BLOCKQUOTE&gt;</li>
</ul>
<dl><dd class="tightenable">this is an indented block of text</dd>
</dl>
<h4>Emphasis</h4>
<ul><li class="tightenable bottom">Use doubled single-quotes ('<strong></strong>') for emphasis (usually <em>italics</em>)</li>
<li class="tightenable top bottom">Use doubled underscores (<i><em></em></i>) for strong emphasis (usually <strong>bold</strong>)</li>
<li class="tightenable top bottom">Mix them at will: <strong><em>bold italics</em></strong></li>
<li class="tightenable top"><em>Emphasis</em> can be used <em>multiple</em> times within a line, but <em>cannot</em> cross line boundaries:</li>
</ul>
<p class="tightenable"><em>this
will not work</em></p>
<h4>References</h4>
<ul><li class="tightenable top bottom">Hyperlinks to other pages within the Wiki are made by placing the page name in square brackets: 
            [5] => cached_wikilink Object
                (
                    [_page] => this is a page link
                )

            [6] =>  or 
            [7] => cached_wikilink Object
                (
                    [_page] => UsingWikiWords
                )

            [8] =>  (preferred)</li>
<li class="tightenable top bottom">Hyperlinks to external pages are done like this: 
            [9] => cached_externallink Object
                (
                    [_url] => http://www.wcsb.org/
                )

            [10] => </li>
<li class="tightenable top bottom">You can name the links by providing a name, a bar (|) and then the hyperlink or pagename: 
            [11] => cached_externallink Object
                (
                    [_url] => http://phpwiki.sourceforge.net/
                    [_label] => PhpWiki home page
                )

            [12] =>   - 
            [13] => cached_wikilink Object
                (
                    [_page] => HomePage
                    [_label] => the front page
                )

            [14] => </li>
<li class="tightenable top bottom">You can suppress linking to old-style references and URIs by preceding the word with a '!', e.g. NotLinkedAsWikiName, http://not.linked.to/</li>
<li class="tightenable top bottom">You can create footnotes by using [1], [2], [3], ... like this here <a name="ftnt_ref_1" id="ftnt_ref_1"></a><sup>[
            [15] => cached_wikilink Object
                (
                    [_page] => 
                    [_anchor] => ftnt_1
                    [_label] => 1
                )

            [16] => ]</sup>. See footnote for counterpart.  (If the [ is in the first column, it is a footnote <em>definition</em> rather than a footnote <em>reference</em> <a name="ftnt_ref_1" id="ftnt_ref_1"></a><sup>[
            [17] => cached_wikilink Object
                (
                    [_page] => 
                    [_anchor] => ftnt_1
                    [_label] => 1
                )

            [18] => ]</sup>.)</li>
<li class="tightenable top bottom">Also, the old way of linking URL's is still supported: precede URLs with &quot;http:&quot;, &quot;ftp:&quot; or &quot;mailto:&quot; to create links automatically as in: 
            [19] => cached_externallink Object
                (
                    [_url] => http://c2.com/
                )

            [20] => </li>
<li class="tightenable top">URLs ending with .png, .gif, or .jpg are inlined if in square brackets, by themselves: <img src="http://phpwiki.sourceforge.net/demo/themes/default/images/png.png" alt="http://phpwiki.sourceforge.net/demo/themes/default/images/png.png" class="inlineimage" /></li>
</ul>
<h4>Tables</h4>
<ul><li class="tightenable bottom">Simple tables are available.  A table row is introduced by a <strong>|</strong> in the first column.  It is best described by example:</li>
</ul>
<pre class="tightenable top bottom">
      ||  _<em></em>_Name_<em></em>_               |v _<em></em>_Cost_<em></em>_   |v _<em></em>_Notes_<em></em>_
      | _<em></em>_First_<em></em>_   | _<em></em>_Last_<em></em>_
      |&gt; Jeff       |&lt; Dairiki   |^  Cheap     |&lt; Not worth it
      |&gt; Marco      |&lt; Polo      | Cheaper     |&lt; Not available</pre>
<dl><dd class="tightenable top bottom">will generate</dd>
</dl>

            [21] => cached_plugininvocation Object
                (
                    [_pi] => <?plugin OldStyleTable
||  <strong>Name</strong>               |v <strong>Cost</strong>   |v <strong>Notes</strong>
| <strong>First</strong>   | <strong>Last</strong>
|> Jeff       |< Dairiki   |^  Cheap     |< Not worth it
|> Marco      |< Polo      | Cheaper     |< Not available
?>
                    [_tightenable] => 1
                )

            [22] => <dl><dd class="tightenable bottom">Note that multiple <strong>|</strong>'s lead to spanned columns, and <strong>v</strong>'s can be used to span rows.  A <strong>&gt;</strong> generates a right justified column, <strong>&lt;</strong> a left justified column and <strong>^</strong> a centered column (which is the default.)</dd>
<dd class="tightenable top">With the new 
            [23] => cached_wikilink Object
                (
                    [_page] => TextFormatingsRules
                )

            [24] =>  tables are only supported with the 
            [25] => cached_wikilink Object
                (
                    [_page] => OldStyleTablePlugin
                )

            [26] => .</dd>
</dl>
<h4>HTML Mark-Up Language</h4>
<ul><li class="tightenable bottom">Don't bother</li>
<li class="tightenable top bottom">&lt; and &gt; are themselves</li>
<li class="tightenable top bottom">The &amp; characters will not work</li>
<li class="tightenable top">If you really must use HTML, your system administrator can enable this feature. Start each line with a bar (|). Note that this feature is disabled by default.</li>
</ul>
<h4>More detail than you want to know</h4>
<p class="tightenable">See 
            [27] => cached_wikilink Object
                (
                    [_page] => MagicPhpWikiURLs
                )

            [28] =>  for gory details on how to write various kind of wiki maintainance links. (<em>deprecated</em>)</p>
<hr />
<h4>Footnotes:</h4>
<p class="tightenable bottom"><a name="ftnt_1" id="ftnt_1"></a>[
            [29] => cached_wikilink Object
                (
                    [_page] => 
                    [_anchor] => ftnt_ref_1
                    [_label] => 1
                )

            [30] => ]  By using [1] a second time (in the first column) the footnote itself is <em>defined</em>.  You may refer to a footnote as many times as you want, but you may only define it once on the page.  Note the the [1] in the footnote links back to the first reference, if there are multiple references there will be +'s after the [1] which will link to the other references.  (References which come <em>after</em> the footnote <em>definition</em> will not be linked to.)</p>
<hr />
<p class="tightenable top bottom">
            [31] => cached_wikilink Object
                (
                    [_page] => PhpWikiDocumentation
                )

            [32] => </p>
</div>

        )

    [_description] => OldTextFormattingRules Emphasis: '' for italics, __ for bold, ''__ for both. Lists: * for bullet lists, # for numbered lists, ; term : definition for definition lists. References: JoinCapitalizedWords or use square brackets for a [page link] or URL [http://cool.wiki.int/]. Footnotes: Use [1],[2],[3],... Preventing linking: Prefix with "!": !DoNotHyperlink, name links like [[text | URL] (double up on the "["). Misc: "!", "!!", "!!!" make headings, "%%%" makes a linebreak, "----" makes a horizontal rule. Tables: »|« as first char, »|« for more columns, »|>« align right, »|<« align left, »|^« centered (default), »||« span columns, »|v« span rows
)
 hits  864
 locked  yes
get_versiondata('OldTextFormattingRules',1)
 %content  <?plugin CreateToc jshide||=1 with_tocli ...
 author  The PhpWiki programming team
 author_id  The PhpWiki programming team
 is_minor_edit   
 mtime  1082385962
 pagetype  wikitext

Copyright © 2007 RobertMelton.com