(Created page with "Help:内容") |
|||
| (21 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<languages /> | <languages /> | ||
| − | + | 在开始添加或修改内容之前,请先阅读下列文章: | |
| − | * [[Help:Contribute| | + | * [[Help:Contribute (zh_CN)|为TechBase做贡献]] |
| − | * [[Help:Wiki Structure| | + | * [[Help:Wiki Structure (zh_CN)|Wiki结构]] |
| − | * [[Help:Wiki Translation| | + | * [[Help:Wiki Translation (zh_CN)|翻译成其它语言]] |
| − | * [[KDE_TechBase:Migrate_content| | + | * [[KDE_TechBase:Migrate_content|迁移内容]] |
| − | * [[KDE_TechBase:Contributors| | + | * [[KDE_TechBase:Contributors|活跃贡献者]]及其贡献点数 |
| − | == | + | == Wiki语法 == |
| − | + | 要开始学习MediaWiki语法,请阅读下列文章: | |
* [http://en.wikipedia.org/wiki/Help:Editing Help on Editing] | * [http://en.wikipedia.org/wiki/Help:Editing Help on Editing] | ||
* [http://meta.wikimedia.org/wiki/Help:Table Wikitables] | * [http://meta.wikimedia.org/wiki/Help:Table Wikitables] | ||
| Line 20: | Line 20: | ||
* How to [[KDE TechBase:Migrate content|Migrate content]] | * How to [[KDE TechBase:Migrate content|Migrate content]] | ||
| − | == | + | == 技巧 == |
| − | ; | + | ; 语法高亮 |
| − | : | + | : C++ Qt/KDE 代码用<tt><syntaxhighlight lang="cpp"></tt>, <tt><syntaxhighlight lang="cpp" line=""></tt>, <tt><syntaxhighlight lang="cpp-qt"></tt>和<tt></syntaxhighlight></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>。 |
| − | == | + | == 新模板 == |
| − | + | 要获取使用某模板的页面列表,转到对应的模板页(例如 [[Template:movepage]])并点击工具箱中的 "''What links here''"链接。 | |
| − | ; [[Template:movepage|<nowiki>{{movepage| | + | ; [[Template:movepage|<nowiki>{{movepage|url地址}}</nowiki>]] |
| − | : | + | : 使用此模板来将页面标记为内容尚未完成。 |
| − | ; [[Template:Improve|<nowiki>{{improve| | + | ; [[Template:Improve|<nowiki>{{improve|说明}}</nowiki>]] |
| − | : | + | : 如果页面中的内容需要进行清理,或其中包含空白章节,或者还有未尽事项,可以使用此模板 |
| + | 来对页面进行标记。如果需要,还可以添加相关的说明(可选)。 | ||
| − | ; [[Template:tip|<nowiki>{{tip| | + | ; [[Template:tip|<nowiki>{{tip|文本内容}}</nowiki>]] |
| − | : | + | : 使用此模板来为读者增加一个技巧项。 |
| − | ; [[Template:note|<nowiki>{{note| | + | ; [[Template:note|<nowiki>{{note|文本内容}}</nowiki>]] |
| − | : | + | : 使用此模板来添加一个解释性的注解。 |
| − | ; [[Template:warning|<nowiki>{{warning| | + | ; [[Template:warning|<nowiki>{{warning|文本内容}}</nowiki>]] |
| − | : | + | : 使用此模板来增加一个警告信息。 |
| − | ; [[Template:qt|<nowiki>{{qt| | + | ; [[Template:qt|<nowiki>{{qt|类名}}</nowiki>]] and [[Template:qt3|<nowiki>{{qt3|类名}}</nowiki>]] |
| − | : | + | : 使用此模板来生成指向某个Qt类的链接,如QWidget。对于Qt3的类,使用<nowiki>{{qt3|类名}}</nowiki> |
| − | ; [[Template:class|<nowiki>{{class| | + | ; [[Template:class|<nowiki>{{class|类名}}</nowiki>]] |
| − | : | + | : 使用此模板来生成指向某个KDE类的链接,如KDialog。 |
| − | ; [[Template:path|<nowiki>{{path| | + | ; [[Template:path|<nowiki>{{path|路径或文件名}}</nowiki>]] |
| − | : | + | : 使用此模板来表示路径或文件名,这样可以保证它们使用统一的样式来显示。 |
| − | ; [[Template:bug|<nowiki>{{bug| | + | ; [[Template:bug|<nowiki>{{bug|bugID号}}</nowiki>]] |
| − | : | + | : 使用此模板来生成指向KDE bugzilla系统中某个bug的链接。 |
; [[Template:KDE3|<nowiki>{{KDE3}}</nowiki>]] | ; [[Template:KDE3|<nowiki>{{KDE3}}</nowiki>]] | ||
| − | : | + | : 使用此模板来将页面中的内容标记为同样适用于KDE3。'''不要标记那些技术上未知的页面。'''对于KDE4的内容, 使用<nowiki>[[Category:KDE4]]</nowiki>模板。 |
; [[Template:TutorialBrowser|<nowiki>{{TutorialBrowser|series|name|pre|next|reading}}</nowiki>]] | ; [[Template:TutorialBrowser|<nowiki>{{TutorialBrowser|series|name|pre|next|reading}}</nowiki>]] | ||
| − | : | + | : 用于教程导航的模板 |
| − | ; [[Template:Box|<nowiki>{{Box| | + | ;[[Template:Box|<nowiki>{{Box|标题|文本|宽度|float}}</nowiki>]] - 已经过时,请使用 Box1 |
| − | : | + | : 使用此模板来创建一个包含标题和文本的文本框。宽度参数是可选的,既可以设置为绝对尺寸(如,400px),也可以设置为相对值(如50%)。最后一个参数是float,它也是可选的,缺省值为center。 |
| + | |||
| + | ; [[Template:Box1|<nowiki>{{Box1|文本|标题|图标|颜色编码}}</nowiki>]] | ||
| + | : 使用此模板创建带标题和文本的对话框。颜色代码是可选的。通常可以使用简化模板 [[Template:Info]], [[Template:Note]], [[Template:Tip]], [[Template:Warning]] 或 [[Template:Remember]]; 它们可以带标题和可选的内容。 | ||
在开始添加或修改内容之前,请先阅读下列文章:
要开始学习MediaWiki语法,请阅读下列文章:
要获取使用某模板的页面列表,转到对应的模板页(例如 Template:movepage)并点击工具箱中的 "What links here"链接。
来对页面进行标记。如果需要,还可以添加相关的说明(可选)。