WikiSyntax: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Remove non-functioning "toc" command)
(merge to Wiki Editing Hints)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Delete]]
#redirect[[Wiki Editing Hints]]
{{Cleanup | reason=Auto-imported from ExpressionEngine.}}
 
'''English''' [[WikiSyntax_German|German]] [[WikiSyntax_Italian|Italiano]] [[WikiSyntax Hungarian|Magyar]] [[WikiSyntax_Spanish|Spanish]] [[WikiSyntax_SimplifiedChinese|简体中文]]
 
= Wiki Syntax Help =
 
[[Category:General]]
[[Category:Help]]
 
ExpressionEngine uses a special wiki syntax to perform a set of actions directly on the wiki. The actual formatting is done by [[TextileSyntax | Textile]]. (have a look on the external page too [http://textism.com/tools/textile/index.php Textism: Tools: Textile])
 
This is only a very short introduction. If you want to learn the more advanced textile features, the [[TextileSyntax]] wiki page has all the information for you.
 
== Linking Pages ==
 
<code>[[PageTitle]]<code> will link to a page with this title. If the page is not there yet you can create it by clicking the link. Please use camel case. This can also be used in the middle of a sentence like <code>This links to my [[AwesomeNewPage]] here.<code>
 
</code>[[PageTitle | Display Title]]</code> will create a link with an alternative title displayed as in </code>This links to my [[AwesomeNewPage | awesome new page]]</code>
 
== Linking to Qt Documentation ==
 
<code>[[Doc:ClassName]]<code> will link to the class page documentation of the latest Qt version, and show the class description as a tooltip. Example: [[Doc:QAccessible]]
 
== Using Tables ==
 
Readability is enhanced if your markup indicates a title row and if you color the title row green and alternate entry rows with a light gray.
Note the space before the | designating beginning of a cell.
 
</code>{background:#009900}. |''. Title 1 |''. Title 2 |
| somestuff in clear row| more stuff |
{background:#ddd}. | some stuff in gray row | more stuff |<code>
 
{background:#009900}. |''. Title 1 |''. Title 2 |
| somestuff in clear row| more stuff |
{background:#ddd}. | some stuff in gray row | more stuff |
 
== Categories ==
 
</code>[[Category:Foo]]</code> will create a category with the title "Foo" along with an automatically populated ''Special Page'' with all pages in this category. If the category already exists it will sort the page into the indicated category.
 
<code>[[Category:Foo::Bar]]<code> will create a child category "Bar" inside the parent category "Foo".
 
=== Link to a Category Page ===
 
</code>[[:Category:Foo::Bar]]</code> will link to the indicated category (note the colon!) but not create a new one.
 
== Add a Table of Contents ==
 
When a page is long, adding a table of contents can help a lot. You can control alignment and depth of the table.
<code>
[toc align_right="yes" depth="2"]
 
</code>
 
The optimal depth corresponds structure and size of the article. For a short article a toc is absolutely unnecessary.
 
== Right aligned articles ==
 
For wiki pages you can add
<code>
[right_aligned]
</code>
 
to the top of the page and it will be all right aligned on save.
 
== Character Codes, or How to Bypass the Wiki Formatter ==
 
Sometimes you need a character in your wiki article that the wiki engine thinks is a formatting code. When this happens, replace the character with a code for the character. [http://www.degraeve.com/reference/specialcharacters.php Here is a good list of such codes].
 
For example, in Textile the percent symbol (%) indicates a <span> tag in HTML, but you may need to show a % in a command line example. Use &#37; instead of % in your example:
 
Show:
<code>set QTDIR=%DEV%</code>
 
By entering:
<code>set QTDIR=&#37;DEV&#37;</code>
 
== Embedding Youtube Videos ==
 
<code>[YouTubeID:<id>]
</code>

Latest revision as of 10:04, 23 October 2015

Redirect to: