Qt wiki will be updated on October 12th 2023 starting at 11:30 AM (EEST) and the maintenance will last around 2-3 hours. During the maintenance the site will be unavailable.

Wiki Editing Hints/de: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
m (Katzschke moved page WikiHelp/de to Wiki Editing Hints/de: Wiki Editing hints replace WikiHelp (used English Version as reference))
(Copied English version)
Line 11: Line 11:
# Falls jemand anders bereits eine Seite zu diesem Punkt geschrieben hat, wirst du das in den Suchergebnissen sehen.
# Falls jemand anders bereits eine Seite zu diesem Punkt geschrieben hat, wirst du das in den Suchergebnissen sehen.
# Den Inhalt der meisten Seiten kannst du einfach ändern.
# Den Inhalt der meisten Seiten kannst du einfach ändern.
# Falls es keine solche Seite gibt, kannst du sie erstellen, indem du auf "Create new page" klickst.
# Bitte benutze CamelCase für alle Seitentitel - sowohl für Artikel als auch für Kategorien.


== Seiten bearbeiten ==
== Getting started ==


Die Editor-Ansicht bietet die die wichtigsten Funktionen an. Das sollte in den meisten Fällen genügen.
* If you have some knowledge to share about Qt, then this wiki is the place to share it. '''But restrict your articles to Qt related topics'''
Solltest du jedoch die direkte Eingabe von Wikitext vorziehen, wirf einen Blick auf [http://warpedvisions.org/projects/textile-cheat-sheet/ this cheat sheet] und prüfe deine Fähigkeiten auf [http://textism.com/tools/textile/  Textism.com] Dort stehen Werkzeuge bereit, die Textile - die Markup-Sprache, die dieses Wiki nutzt - als HTML-Vorschau anzeigt.
* Please make sure that the page you want to create doesn't already exist. Use the search field on the top right for this purpose. If there is already a page on that topic, it will show up in the search results.
* Since this is a wiki, you can edit all of the contents on most pages.
* If there is no such page you can create one by clicking the link {{int:searchmenu-new|search term}}''' in the search results.
* Don't pollute the history of a page by doing tests; use the [[Sandbox]] instead.


Bitte nutze die Vorschau-Funktion um deine Bearbeitungen zu überprüfen, es sei denn, du bist dir zu 120% darüber im Klaren, dass du '''niemals''' Fehler machst.
== How to edit a page ==


'''C++ Quelltext wird auf Wikiseiten automatisch als solcher erkannt und dargestellt!'''
The Qt wiki is powered by [[wikipedia:mw:|MediaWiki]], the wiki engine used by Wikipedia and many other wikis around the web.


== Seiten übersetzen ==
When editing a page, there is a toolbar that allows the insertion of the most common syntax elements. The wiki code syntax is pretty straightforward and you can write it directly without using the toolbar. Have a look at the [[wikipedia:Help:Cheatsheet|MediaWiki cheatsheet]] for a quick reference.


Wenn du eine Wikiseite übersetzt (z.B. aus dem Englischen ins Deutsche), dann denke daran, die neue Seite zugänglich zu machen, indem du sie der Navigation am oberen Rand der Seite hinzufügst. Verwende dazu das folgende Schema:
Please, remember to always use the preview option to check your edits before you save, to prevent polluting the version history with needless entries fixing errors.
'''Seitensprache''' Sprache1 Sprache2 … und unterlege die jeweils anderen Sprechen mit Links.


Dargestellt am Beispiel dieser Seite hieße das (Leerzeichen hier "[ [" bitte wegdenken):
== How to make your pages easy to use ==
<code>'''Deutsch''' [[WikiHelp|English]] [ [WikiPomoc|Polski]]<code>


== Zusammenarbeit ==
Help fellow developers find the great insights you're sharing by following a few simple guidelines:
 
=== Write like you're coding ===
 
Good wikis, like good code, are easy to scan and maintain. Each article should cover one topic (much like a class). Each paragraph should cover a single aspect of the topic (like a function).
 
=== Use headers for scannability ===
 
Long articles are easier to read if you add some informative headers. Please use the MediaWiki heading level (<nowiki>==</nowiki>) for your introduction and then <nowiki>===</nowiki> and <nowiki>====</nowiki> levels to outline your discussion. (The editor includes buttons for them.) Try to write your headers so they outline what you have to say all by themselves, because you can then:
 
=== Add a table of Contents ===
 
When readers find your article, they will scan the first page to figure out if it's what they're looking for. If your article is not much longer than one page, all you need to do is write it. If it's much longer than that, use a table of content to show the reader what's to come. Your opening paragraph plus table of content should be all the reader needs to know whether to click down or click away.
 
A table of contents is added automatically as soon as you included three headings, regardless of their depth. Sometimes you don't want to have a table of contents generated (e.g. because the page you create ''is'' a table of contents) you can put the magic word <tt><nowiki>__NOTOC__</nowiki></tt> at the beginning of you page.
 
=== Add categories ===
 
Add category tags to insert a link to your article in the appropriate summary pages. By adding your article to existing categories you help readers find your content.
 
If you want to create a new category and summary page, just tag your article to a category that does not yet exist like so: <tt><nowiki>[[Category:Wiki Help]]</nowiki></tt>
 
== Collaboration ==
 
Wikis are meant for collaborative editing. To make it as easy as possible for everybody please follow some basic rules:
 
* Discuss your pages on the Talk subpage that can be reached via the top toolbar
* Write in an understandable, informative, but not too formal language.
* Structure your pages with subheadings and a healthy amount of paragraphs for easier understanding and better reading.
* Explain acronyms, at least at first use.
* Use meaningful but straight to the point page names.
* Don't mindlessly throw away other people's work.
* Use <nowiki>[[Category:...]]</nowiki> to group pages by topic.
 
== Category pages ==
 
Whenever you create a new category for your page the wiki software will create a landing page for it. This page is editable just like any other page. Just click on the link displayed on your page and edit away. All pages within the respective category will be displayed on this page. Why not start it with an introduction to the topic?
 
== Templates ==
 
One can make use of the MediaWiki Templates. This page summarizes the current state of available Templates:
 
{| class="wikitable" width="100%"
! Template Name
! You type
! You get
|-
| [[Template:DocLink]] creates a link to the doc.qt.io reference documentation
|style="white-space:nowrap;"|
* <nowiki>{{DocLink|QWidget}}</nowiki>
* <nowiki>{{DocLink|QWidget|properties}}</nowiki>
* <nowiki>{{DocLink|QWidget|size-prop|size()}}</nowiki>
* <nowiki>{{DocLink|QtWidgets-Index||Qt Widgets}}</nowiki>
|
* {{DocLink|QWidget}}
* {{DocLink|QWidget|properties}}
* {{DocLink|QWidget|size-prop|size()}}
* {{DocLink|QtWidgets-Index||Qt Widgets}} (note the empty anchor parameter)
|-
| [[Template:LangLinks]] creates a list of predefined language links so that you can easily see what languages are available for the page specified
| <nowiki>{{LangLinks|base=Download Data from URL}}</nowiki>
| {{LangLinks|base=Download Data from URL}}
|-
| [[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.
| <nowiki>{{LangSwitch}}</nowiki>
| {{LangSwitch}}
|-
| [[Template:Ambox]] inserts a notification box
| <nowiki>{{Ambox|text=Some notification text}}</nowiki>
| {{Ambox|text=Some notification text}}
|-
| [[Template:WarningBox]] inserts a warning box
| <nowiki>{{WarningBox|text=Some warning text}}</nowiki>
| {{WarningBox|text=Some warning text}}
|-
| [[Template:Cleanup]] inserts a notice that the article needs improvement, and puts the article in [[:Category:Articles needing cleanup]]. You can specify the reason for the tag.
| <nowiki>{{Cleanup|reason=The text is too repetitive.}}</nowiki>
| {{Ambox|text='''This article may require cleanup to meet the Qt Wiki's quality standards.''' Reason: The text is too repetitive.<br /><small>Please '''[{{fullurl:{{FULLPAGENAME}}|action=edit}} improve this article]''' if you can. Remove the <nowiki>{{cleanup}}</nowiki> tag and add this page to '''[[Updated pages]]''' list after it's clean.</small>}}
|-
| [[Template:Delete]] inserts a notice that the article is nominated for deletion, and puts the article in [[:Category:Delete]]. You can specify the reason for the tag.
| <nowiki>{{Delete|reason=This page is empty.}}</nowiki>
| {{WarningBox|text=This article is nominated for deletion. Reason: This page is empty.<br /><small>Please raise your support/opposition to this nomination in the article's Discussion page.</small>}}
|}


Wikis wurden zur gemeinschaftlichen Arbeit an Inhalten entworfen. Um das so einfach wie möglich zu gestalten, orientiere dich bitte an den folgenden grundlegenden Regeln:
== Multi-language articles ==


* '''Diskutiere deine Seiten im "Wiki-Forum":/forums/viewforum/16/'''
When creating new articles the first language should always be English (reference language). When translating an article you just append the [[wikipedia:List of ISO 639-1 codes|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.
* Nutze eine verständliche, informative, aber nicht zu gestelzte Sprache
* Gliedere deine Seiten mittels Überschriften und einer angemessenen Zahl von Absätzen, um Verständlichkeit und Lesefluss zu fördern
* Erkläre Abkürzungen — spätestens bei ihrer ersten Benutzung
* Nutze griffige Seitennamen
* Verwirf nicht leichtfertig anderer Menschen Arbeit
* Nutze [[Tagging|Tags]] um Seiten zu gruppieren


== Syntax-Hervorhebung ==
Example:


In der Toolbar findet sich ein Code-Tag (ein "at"-Zeichen) um Quelltest wie folgt zu präsentieren:
* [[Basic Qt Programming Tutorial]]
* [[Basic Qt Programming Tutorial/de]]


</code>
== Tables ==
#include <QtGui>
#include "window.h"


int main(int argv, char **args)
The Mediawiki [https://www.mediawiki.org/wiki/Help:Tables help page on Tables] is useful reading to anyone who edits tables.
{
QApplication app(argv, args);


Window window;
== Code highlighting ==
window.show();


return app.exec();
The wiki uses the standard [https://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi GeSHi syntax highlighter].
}
<code>


Qt-Klassen werden selbstverständlich unterstützt.
The only customisation made, has been to add the <nowiki><code></nowiki> tag to the highlighted list handled by GeSHi. The default language is set to C++/Qt toolkit. You can change the language with the <tt>lang=""</tt> attribute.


== Kategorieseiten ==
For example, you can use these settings:
* Javascript/QML : <tt><nowiki><code lang="javascript"></nowiki></tt>
* Qt .pro : <tt><nowiki><code lang="make"></nowiki></tt>
* Command Lines : <tt><nowiki><code lang="bash"></nowiki></tt>
* XML : <tt><nowiki><code lang="xml"></nowiki></tt>


Sobald du eine Wikiseite einer neuen Kategorie zuordnest, wird die Wiki-Software eine Seite dafür anbieten. Diese ist bearbeitbar wie jede andere Seite. Klicke einfach auf den angebotenen Bearbeiten-Link und leg los. Alle Seiten in dieser Kategorie werden automatisch auf dieser Seite aufgeführt. Da erscheint eine knappe Einführung in das Thema passend,das kann gut und gerne auf der Katgegorie-Seite geschehen.
== Zusammenarbeit ==


== Brauchst du mehr Hilfe? ==
Wikis wurden zur gemeinschaftlichen Arbeit an Inhalten entworfen. Um das so einfach wie möglich zu gestalten, orientiere dich bitte an den folgenden grundlegenden Regeln:
 
* Nutze eine verständliche, informative, aber nicht zu gestelzte Sprache
* Gliedere deine Seiten mittels Überschriften und einer angemessenen Zahl von Absätzen, um Verständlichkeit und Lesefluss zu fördern
* Erkläre Abkürzungen — spätestens bei ihrer ersten Benutzung
* Nutze griffige Seitennamen
* Verwirf nicht leichtfertig anderer Menschen Arbeit
* Nutze [[Tagging|Tags]] um Seiten zu gruppieren


Versuche es mit einem Blick in das (englische) "Hilfe Forum":/forums/viewforum/4/ oder unser "FAQ (Qt DN FAQ)":/static/devnet_faq/.


[[Category:General]]
[[Category:General]]
[[Category:German]]
[[Category:German]]

Revision as of 23:28, 8 March 2016

This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

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


Im Wiki arbeiten

Die ersten Schritte

  1. Kläre, ob die Seite, die du gerade erstellen möchtest, wirklich fehlt. Nutze hierzu die Suchfunktion in der rechten oberen Ecke des Wiki-Kastens.
  2. Falls jemand anders bereits eine Seite zu diesem Punkt geschrieben hat, wirst du das in den Suchergebnissen sehen.
  3. Den Inhalt der meisten Seiten kannst du einfach ändern.

Getting started

  • If you have some knowledge to share about Qt, then this wiki is the place to share it. But restrict your articles to Qt related topics
  • Please make sure that the page you want to create doesn't already exist. Use the search field on the top right for this purpose. If there is already a page on that topic, it will show up in the search results.
  • Since this is a wiki, you can edit all of the contents on most pages.
  • If there is no such page you can create one by clicking the link Create the page "search term" on this wiki! in the search results.
  • Don't pollute the history of a page by doing tests; use the Sandbox instead.

How to edit a page

The Qt wiki is powered by MediaWiki, the wiki engine used by Wikipedia and many other wikis around the web.

When editing a page, there is a toolbar that allows the insertion of the most common syntax elements. The wiki code syntax is pretty straightforward and you can write it directly without using the toolbar. Have a look at the MediaWiki cheatsheet for a quick reference.

Please, remember to always use the preview option to check your edits before you save, to prevent polluting the version history with needless entries fixing errors.

How to make your pages easy to use

Help fellow developers find the great insights you're sharing by following a few simple guidelines:

Write like you're coding

Good wikis, like good code, are easy to scan and maintain. Each article should cover one topic (much like a class). Each paragraph should cover a single aspect of the topic (like a function).

Use headers for scannability

Long articles are easier to read if you add some informative headers. Please use the MediaWiki heading level (==) for your introduction and then === and ==== levels to outline your discussion. (The editor includes buttons for them.) Try to write your headers so they outline what you have to say all by themselves, because you can then:

Add a table of Contents

When readers find your article, they will scan the first page to figure out if it's what they're looking for. If your article is not much longer than one page, all you need to do is write it. If it's much longer than that, use a table of content to show the reader what's to come. Your opening paragraph plus table of content should be all the reader needs to know whether to click down or click away.

A table of contents is added automatically as soon as you included three headings, regardless of their depth. Sometimes you don't want to have a table of contents generated (e.g. because the page you create is a table of contents) you can put the magic word __NOTOC__ at the beginning of you page.

Add categories

Add category tags to insert a link to your article in the appropriate summary pages. By adding your article to existing categories you help readers find your content.

If you want to create a new category and summary page, just tag your article to a category that does not yet exist like so: [[Category:Wiki Help]]

Collaboration

Wikis are meant for collaborative editing. To make it as easy as possible for everybody please follow some basic rules:

  • Discuss your pages on the Talk subpage that can be reached via the top toolbar
  • Write in an understandable, informative, but not too formal language.
  • Structure your pages with subheadings and a healthy amount of paragraphs for easier understanding and better reading.
  • Explain acronyms, at least at first use.
  • Use meaningful but straight to the point page names.
  • Don't mindlessly throw away other people's work.
  • Use [[Category:...]] to group pages by topic.

Category pages

Whenever you create a new category for your page the wiki software will create a landing page for it. This page is editable just like any other page. Just click on the link displayed on your page and edit away. All pages within the respective category will be displayed on this page. Why not start it with an introduction to the topic?

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|QWidget}}
  • {{DocLink|QWidget|properties}}
  • {{DocLink|QWidget|size-prop|size()}}
  • {{DocLink|QtWidgets-Index||Qt Widgets}}
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

Template:Ambox inserts a notification box {{Ambox|text=Some notification text}}
Some notification text
Template:WarningBox inserts a warning box {{WarningBox|text=Some warning text}}
Some warning text
Template:Cleanup inserts a notice that the article needs improvement, and puts the article in Category:Articles needing cleanup. You can specify the reason for the tag. {{Cleanup|reason=The text is too repetitive.}}
This article may require cleanup to meet the Qt Wiki's quality standards. Reason: The text is too repetitive.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.
Template:Delete inserts a notice that the article is nominated for deletion, and puts the article in Category:Delete. You can specify the reason for the tag. {{Delete|reason=This page is empty.}}
This article is nominated for deletion. Reason: This page is empty.
Please raise your support/opposition to this nomination in the article's Discussion page.

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.

Code 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++/Qt toolkit. You can change the language with the lang="" attribute.

For example, you can use these settings:

  • Javascript/QML : <code lang="javascript">
  • Qt .pro : <code lang="make">
  • Command Lines : <code lang="bash">
  • XML : <code lang="xml">

Zusammenarbeit

Wikis wurden zur gemeinschaftlichen Arbeit an Inhalten entworfen. Um das so einfach wie möglich zu gestalten, orientiere dich bitte an den folgenden grundlegenden Regeln:

  • Nutze eine verständliche, informative, aber nicht zu gestelzte Sprache
  • Gliedere deine Seiten mittels Überschriften und einer angemessenen Zahl von Absätzen, um Verständlichkeit und Lesefluss zu fördern
  • Erkläre Abkürzungen — spätestens bei ihrer ersten Benutzung
  • Nutze griffige Seitennamen
  • Verwirf nicht leichtfertig anderer Menschen Arbeit
  • Nutze Tags um Seiten zu gruppieren