Help:Contents: Difference between revisions

From KDE TechBase
(Adding link to Cheatsheet)
(→‎New Templates: Add links and update 'improve' template)
Line 17: Line 17:
: Use this template to mark a page as not finished.
: Use this template to mark a page as not finished.


; [[Template:Improve|<nowiki>{{improve}}</nowiki>]]
; [[Template:Improve|<nowiki>{{improve|explanation}}</nowiki>]]
: Pages which need cleanups or contain empty sections and todos are marked with this tempate.
: Pages which need cleanups or contain empty sections and s are marked with this tempate. Add an explanation if you want (optional)


; [[Template:tip|<nowiki>{{tip|text}}</nowiki>]]
; [[Template:tip|<nowiki>{{tip|text}}</nowiki>]]
Line 38: Line 38:
: Use this template for paths and filenames, this way all of them have a consistent style.
: Use this template for paths and filenames, this way all of them have a consistent style.


; <nowiki>{{bug|123456}}</nowiki>
; [[Template:bug|<nowiki>{{bug|123456}}</nowiki>]]
: Use this template to automatically create a link to KDE's bugzilla.
: Use this template to automatically create a link to KDE's bugzilla.


; <nowiki>{{KDE3}}/{{KDE4}}</nowiki>
; [[Template:KDE3|<nowiki>{{KDE3}}</nowiki>]]/[[Template:KDE4|<nowiki>{{KDE4}}</nowiki>]]
: Use this template to mark the content of a page as applicable for either KDE 3 or KDE 4. Don't tag technology agnostic pages.
: Use this template to mark the content of a page as applicable for either KDE 3 or KDE 4. Don't tag technology agnostic pages.


; <nowiki>{{Box|caption|text|width|float}}</nowiki>
; [[Template:Box|<nowiki>{{Box|caption|text|width|float}}</nowiki>]]
: Use this template to create a box with a caption and a text. The width parameter is optional and can be specified absolute (400px) or relative (50%). The last parameter is the float value, which is also optional and defaults to center.
: Use this template to create a box with a caption and a text. The width parameter is optional and can be specified absolute (400px) or relative (50%). The last parameter is the float value, which is also optional and defaults to center.

Revision as of 19:29, 5 January 2007

To get started with the MediaWiki syntax, read

The most important commands are summarized in the Wikipedia Cheatsheet. Information about how to migrate content can be found here.

Tips

Syntax highlighting
Wrap your C++ Qt/KDE code snippets in <code cppqt n> and </code> to get syntax highlighting (cpp == c++, qt == qt) and numbered lines (n). Replace "cpp" with the language used, e.g. rubyqt for Ruby and pythonqt for Python (soon).

New Templates

To get a list of pages using a template, go to corresponding template page (e.g. Template:movepage) and click "What links here" in the toolbox.

{{movepage|url}}
Use this template to mark a page as not finished.
{{improve|explanation}}
Pages which need cleanups or contain empty sections and s are marked with this tempate. Add an explanation if you want (optional)
{{tip|text}}
Use this template to add a tip for the reader.
{{note|text}}
Use this template to add an explanatory note.
{{warning|text}}
Use this template to add a warning.
{{qt|class-name}}
Use this template to generate a link to a Qt class, e.g. QWidget.
{{class|class-name}}
Use this template to generate a link to a KDE class, e.g. KDialog.
{{path|path-or-filename}}
Use this template for paths and filenames, this way all of them have a consistent style.
{{bug|123456}}
Use this template to automatically create a link to KDE's bugzilla.
{{KDE3}}/{{KDE4}}
Use this template to mark the content of a page as applicable for either KDE 3 or KDE 4. Don't tag technology agnostic pages.
{{Box|caption|text|width|float}}
Use this template to create a box with a caption and a text. The width parameter is optional and can be specified absolute (400px) or relative (50%). The last parameter is the float value, which is also optional and defaults to center.