Help:内容

From KDE TechBase
Revision as of 02:39, 4 August 2012 by Fengchao (talk | contribs) (Created page with "; <nowiki>{{TutorialBrowser|series|name|pre|next|reading}}</nowiki> : 用于教程导航的模板")
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
Other languages:

在开始添加或修改内容之前,请先阅读下列文章:

Wiki语法

要开始学习MediaWiki语法,请阅读下列文章:

技巧

语法高亮
C++ Qt/KDE 代码用<syntaxhighlight lang="cpp">, <syntaxhighlight lang="cpp" line="">, <syntaxhighlight lang="cpp-qt"></syntaxhighlight> 括起来可以进行语法高亮 (C++ 使用 cpp C++,QT 使用 cpp-qt) 行号使用(line=""). 将cpp替换为使用的语言,例如Ruby使用 ruby,Python使用python. .desktop 使用 ini,XML使用xml

新模板

要获取使用某模板的页面列表,转到对应的模板页(例如 Template:movepage)并点击工具箱中的 "What links here"链接。

{{movepage|url地址}}
使用此模板来将页面标记为内容尚未完成。
{{improve|说明}}
如果页面中的内容需要进行清理,或其中包含空白章节,或者还有未尽事项,可以使用此模板

来对页面进行标记。如果需要,还可以添加相关的说明(可选)。

{{tip|文本内容}}
使用此模板来为读者增加一个技巧项。
{{note|文本内容}}
使用此模板来添加一个解释性的注解。
{{warning|文本内容}}
使用此模板来增加一个警告信息。
{{qt|类名}} and {{qt3|类名}}
使用此模板来生成指向某个Qt类的链接,如QWidget。对于Qt3的类,使用{{qt3|类名}}
{{class|类名}}
使用此模板来生成指向某个KDE类的链接,如KDialog。
{{path|路径或文件名}}
使用此模板来表示路径或文件名,这样可以保证它们使用统一的样式来显示。
{{bug|bugID号}}
使用此模板来生成指向KDE bugzilla系统中某个bug的链接。
{{KDE3}}
使用此模板来将页面中的内容标记为同样适用于KDE3。不要标记那些技术上未知的页面。对于KDE4的内容, 使用[[Category:KDE4]]模板。
{{TutorialBrowser|series|name|pre|next|reading}}
用于教程导航的模板
{{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.