特殊:Badtitle/NS100:DocBookReference
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/DocBookReference }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/af | • {{#if: UbuntuHelp:DocBookReference|Afrikaans| [[::DocBookReference/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ar | • {{#if: UbuntuHelp:DocBookReference|العربية| [[::DocBookReference/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/az | • {{#if: UbuntuHelp:DocBookReference|azərbaycanca| [[::DocBookReference/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/bcc | • {{#if: UbuntuHelp:DocBookReference|جهلسری بلوچی| [[::DocBookReference/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/bg | • {{#if: UbuntuHelp:DocBookReference|български| [[::DocBookReference/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/br | • {{#if: UbuntuHelp:DocBookReference|brezhoneg| [[::DocBookReference/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ca | • {{#if: UbuntuHelp:DocBookReference|català| [[::DocBookReference/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/cs | • {{#if: UbuntuHelp:DocBookReference|čeština| [[::DocBookReference/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/de | • {{#if: UbuntuHelp:DocBookReference|Deutsch| [[::DocBookReference/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/el | • {{#if: UbuntuHelp:DocBookReference|Ελληνικά| [[::DocBookReference/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/es | • {{#if: UbuntuHelp:DocBookReference|español| [[::DocBookReference/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/fa | • {{#if: UbuntuHelp:DocBookReference|فارسی| [[::DocBookReference/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/fi | • {{#if: UbuntuHelp:DocBookReference|suomi| [[::DocBookReference/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/fr | • {{#if: UbuntuHelp:DocBookReference|français| [[::DocBookReference/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/gu | • {{#if: UbuntuHelp:DocBookReference|ગુજરાતી| [[::DocBookReference/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/he | • {{#if: UbuntuHelp:DocBookReference|עברית| [[::DocBookReference/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/hu | • {{#if: UbuntuHelp:DocBookReference|magyar| [[::DocBookReference/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/id | • {{#if: UbuntuHelp:DocBookReference|Bahasa Indonesia| [[::DocBookReference/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/it | • {{#if: UbuntuHelp:DocBookReference|italiano| [[::DocBookReference/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ja | • {{#if: UbuntuHelp:DocBookReference|日本語| [[::DocBookReference/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ko | • {{#if: UbuntuHelp:DocBookReference|한국어| [[::DocBookReference/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ksh | • {{#if: UbuntuHelp:DocBookReference|Ripoarisch| [[::DocBookReference/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/mr | • {{#if: UbuntuHelp:DocBookReference|मराठी| [[::DocBookReference/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ms | • {{#if: UbuntuHelp:DocBookReference|Bahasa Melayu| [[::DocBookReference/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/nl | • {{#if: UbuntuHelp:DocBookReference|Nederlands| [[::DocBookReference/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/no | • {{#if: UbuntuHelp:DocBookReference|norsk| [[::DocBookReference/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/oc | • {{#if: UbuntuHelp:DocBookReference|occitan| [[::DocBookReference/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/pl | • {{#if: UbuntuHelp:DocBookReference|polski| [[::DocBookReference/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/pt | • {{#if: UbuntuHelp:DocBookReference|português| [[::DocBookReference/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ro | • {{#if: UbuntuHelp:DocBookReference|română| [[::DocBookReference/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/ru | • {{#if: UbuntuHelp:DocBookReference|русский| [[::DocBookReference/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/si | • {{#if: UbuntuHelp:DocBookReference|සිංහල| [[::DocBookReference/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/sq | • {{#if: UbuntuHelp:DocBookReference|shqip| [[::DocBookReference/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/sr | • {{#if: UbuntuHelp:DocBookReference|српски / srpski| [[::DocBookReference/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/sv | • {{#if: UbuntuHelp:DocBookReference|svenska| [[::DocBookReference/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/th | • {{#if: UbuntuHelp:DocBookReference|ไทย| [[::DocBookReference/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/tr | • {{#if: UbuntuHelp:DocBookReference|Türkçe| [[::DocBookReference/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/vi | • {{#if: UbuntuHelp:DocBookReference|Tiếng Việt| [[::DocBookReference/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/yue | • {{#if: UbuntuHelp:DocBookReference|粵語| [[::DocBookReference/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/zh | • {{#if: UbuntuHelp:DocBookReference|中文| [[::DocBookReference/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/zh-hans | • {{#if: UbuntuHelp:DocBookReference|中文(简体)| [[::DocBookReference/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:DocBookReference | UbuntuHelp:DocBookReference | {{#if: | :}}DocBookReference}}/zh-hant | • {{#if: UbuntuHelp:DocBookReference|中文(繁體)| [[::DocBookReference/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:DocBookReference|:DocBookReference|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :DocBookReference/zh | | {{#ifexist: DocBookReference/zh | | {{#ifeq: {{#titleparts:DocBookReference|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:DocBookReference|1|-1|}} | zh | | }}
This reference is incomplete. Just use it to find out how to enter certain contents into your document. See http://www.docbook.org/tdg/en/html/ for the real fun. :) For an introduction on how to write DocBook/XML documents please see the DocBook Wiki entry.
General article layout
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://docbook.org/xml/4.2/docbookx.dtd"> <article> <title>The Magic of Dragons</title> <articleinfo> <author> <honorific>Dr. H.C</honorific> <firstname>Joseph</firstname> <surname>Fischbecker</surname> </author> <copyright> <year>2004</year> <holder>The Ubuntu Dragons Subproject</holder> </copyright> <keywordset> <keyword>magic</keyword> <keyword>dragons</keyword> </keywordset> <abstract> <para> This document deals with the magic of dragons. </para> </abstract> </articleinfo> <sect1> <title>History of Magic</title> <para> In the middle ages there were two kinds of magic: </para> <itemizedlist> <listitem> Bad magic: mostly used by evil wizards </listitem> <listitem> Good magic: mostly used by good wizards </listitem> </itemizedlist> <para> A picture of the flow of mana: <mediaobject> <imageobject> <imagedata fileref="bigpicture.png" format="PNG"/> </imageobject> </mediaobject> </para> <sect2> <title>Evil magic</title> <para> In this subsection you will learn about evil magic. </para> <important> Be very careful. Evil magic is hard to handle! </important> </sect2> </sect1> </article>
Sections that can be used in the <articleinfo>
Please see http://www.docbook.org/tdg/en/html/articleinfo.html
Including images
<mediaobject> <imageobject> <imagedata fileref="bigpicture.png" format="PNG"/> </imageobject> </mediaobject>
Terminal input/output
<screen> user = service password = DomAKg07 </screen>
Lists
<itemizedlist> <listitem> Bad magic: mostly used by evil wizards </listitem> <listitem> Good magic: mostly used by good wizards </listitem> </itemizedlist>
References
If you need to refer to a section in your document place an anchor like this:
<sect1 id="install_packages" xreflabel="installing the needed packages">
Later you can refer to that section using:
See <xref linkend="install_packages"/> for more information.
Which will render to: 'See 'installing the needed packages' for more information.'
Tables
<informaltable frame="none"> <tgroup cols="2"> <thead> <row> <entry>Setting</entry> <entry>Meaning</entry> </row> </thead> <tbody> <row> <entry> $mydomain = 'yourdomain.org'; </entry> <entry> Configure this string to your default domain. </entry> </row> <row> <entry> @bypass_virus_checks_acl = qw( . ); </entry> <entry> If this line is commented out virus checks are enabled. </entry> </row> </tbody> </tgroup> </informaltable>
Notes / Warnings
<caution>...</caution> <note>...</note> <tip>...</tip> <warning>...</warning> <important>...</important>
Use them like:
<warning> <title> Careful </title> <para> Dragons may have a bad breath even resulting in bursts of fire. </para> </warning>
Hyperlinks
<ulink url="http://workaround.org>workaround.org</ulink>
'Christoph Haas'