Difference between revisions of "Help:Contents/zh-cn"

Jump to: navigation, search
(Created page with "; 语法高亮 : C++ Qt/KDE 代码用<tt><syntaxhighlight lang="cpp"></tt>, <tt><syntaxhighlight lang="cpp" line=""></tt>, <tt><syntaxhighlight lang="cpp-qt"&gt...")
(Created page with "== 新模板 ==")
Line 25: Line 25:
 
: C++ Qt/KDE 代码用<tt>&lt;syntaxhighlight lang="cpp"&gt;</tt>, <tt>&lt;syntaxhighlight lang="cpp" line=""&gt;</tt>, <tt>&lt;syntaxhighlight lang="cpp-qt"&gt;</tt>和<tt>&lt;/syntaxhighlight&gt;</tt> 括起来可以进行语法高亮 (C++ 使用 <tt>cpp</tt>  C++,QT 使用 <tt>cpp-qt</tt>) 行号使用(<tt>line=""</tt>). 将<tt>cpp</tt>替换为[http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages 使用的语言],例如Ruby使用 <tt>ruby</tt>,Python使用<tt>python</tt>.  {{path|.desktop}} 使用 <tt>ini</tt>,XML使用<tt>xml</tt>。
 
: C++ Qt/KDE 代码用<tt>&lt;syntaxhighlight lang="cpp"&gt;</tt>, <tt>&lt;syntaxhighlight lang="cpp" line=""&gt;</tt>, <tt>&lt;syntaxhighlight lang="cpp-qt"&gt;</tt>和<tt>&lt;/syntaxhighlight&gt;</tt> 括起来可以进行语法高亮 (C++ 使用 <tt>cpp</tt>  C++,QT 使用 <tt>cpp-qt</tt>) 行号使用(<tt>line=""</tt>). 将<tt>cpp</tt>替换为[http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi#Supported_languages 使用的语言],例如Ruby使用 <tt>ruby</tt>,Python使用<tt>python</tt>.  {{path|.desktop}} 使用 <tt>ini</tt>,XML使用<tt>xml</tt>。
  
== 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.
 
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.

Revision as of 03:35, 4 August 2012

Other languages:English 100% • ‎French 4% • ‎Chinese (China) 100%

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

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

新模板

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/or todos are marked with this template. 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}} and {{qt3|class-name}}
Use this template to generate a link to a Qt class, e.g. QWidget. For Qt3 classes use {{qt3|class-name}}
{{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.
<span class="bsBugLink bsError bsError-NoConnection">{{bug|123456}}</span>
Use this template to automatically create a link to KDE's bugzilla.
{{KDE3}}
Use this template to mark the content of a page as applicable for either KDE 3. Don't tag technology agnostic pages. For KDE4 content, use [[Category:KDE4]].
{{TutorialBrowser|series|name|pre|next|reading}}
A template for tutorial navigation
{{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.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V.Legal