Wiki Editing Hints

From Qt Wiki
Revision as of 21:48, 11 March 2015 by Simow (talk | contribs) (Added LangSwitch Template)
Jump to navigation Jump to search


In order to make editing in the Qt Wiki a little more comfortable.

Templates

One can make use of the MediaWiki Templates. This page summarizes the current state of available Templates:

Template Name You type You get
Template:DocLink creates a link to the doc.qt.io reference documentation {{DocLink|QString}} QString
Template:DocLinkAnchor creates a link to the doc.qt.io documentation with anchor to the member {{DocLinkAnchor|QLabel|clear}} clear
Template:DocLinkAnchorLbl creates a link like DocLinkAnchor but with additional attribute for the link label in case you want to reference a QProperty that has the anchor name text-prop but you want to reference setText() or text() explicitly. {{DocLinkAnchorLbl|QLabel|text-prop|setText()}} setText()
Template:LangLinks creates a list of predefined language links so that you can easily see what languages are available for the page specified {{LangLinks|base=Download Data from URL}} bg de el es fr it ja ko pt ru zh
Template:LangSwitch does the same as LangLinks but for the same page the template is inserted. It checks all available language subpages and inserts a link. For this template you don't need to specify any parameters. {{LangSwitch}}

En Ar Bg De El Es Fa Fi Fr Hi Hu It Ja Kn Ko Ms Nl Pl Pt Ru Sq Th Tr Uk Zh

Multi Language Articles

When creating new articles the first language should always be English (reference language). When translating an article you just append the ISO-639-1 language code separated by a slash to the URL and hit Enter. The Wiki now tells you that the page can be created.

Example:

Tables

The Mediawiki help page on Tables is useful reading to anyone who edits tables.

Syntax Highlighting

The wiki uses the standard GeSHi syntax highlighter.

The only customisation made, has been to add the <code> tag to the highlighted list handled by GeSHi. The default language is set to C++. Change the language with the lang="" attribute (for example <code lang="javascript">).