特殊:Badtitle/NS100:DocBookReference:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
第8行: 第8行:
=== General article layout ===
=== General article layout ===
<pre><nowiki>
<pre><nowiki>
<?xml version="1.0" encoding="UTF-8"?>
 
<!DOCTYPE article PUBLIC "-//OASIS//DTD [[UbuntuHelp:DocBook|DocBook]] XML V4.2//EN" "http://docbook.org/xml/4.2/docbookx.dtd">
<?xml version="1.0" encoding="UTF-8"?>
<article>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://docbook.org/xml/4.2/docbookx.dtd">
<title>The Magic of Dragons</title>
<article>
<articleinfo>
  <title>The Magic of Dragons</title>
<author>
  <articleinfo>
<honorific>Dr. H.C</honorific>
 
<firstname>Joseph</firstname>
    <author>
<surname>Fischbecker</surname>
      <honorific>Dr. H.C</honorific>
</author>
      <firstname>Joseph</firstname>
<copyright>
      <surname>Fischbecker</surname>
<year>2004</year>
    </author>
<holder>The Ubuntu Dragons Subproject</holder>
 
</copyright>
    <copyright>
<keywordset>
      <year>2004</year>
<keyword>magic</keyword>
      <holder>The Ubuntu Dragons Subproject</holder>
<keyword>dragons</keyword>
    </copyright>
</keywordset>
 
<abstract>
    <keywordset>
<para>
      <keyword>magic</keyword>
This document deals with the magic of dragons.
      <keyword>dragons</keyword>
</para>
    </keywordset>
</abstract>
 
</articleinfo>
    <abstract>
<sect1>
      <para>
<title>History of Magic</title>
        This document deals with the magic of dragons.
<para>
      </para>
In the middle ages there were two kinds of magic:
    </abstract>
</para>
 
<itemizedlist>
  </articleinfo>
<listitem>
 
Bad magic: mostly used by evil wizards
  <sect1>
</listitem>
 
<listitem>
      <title>History of Magic</title>
Good magic: mostly used by good wizards
      <para>
</listitem>
        In the middle ages there were two kinds of magic:
</itemizedlist>
      </para>
<para>
 
A picture of the flow of mana:
      <itemizedlist>
<mediaobject>
        <listitem>
<imageobject>
          Bad magic: mostly used by evil wizards
<imagedata fileref="bigpicture.png" format="PNG"/>
        </listitem>
</imageobject>
        <listitem>
</mediaobject>
          Good magic: mostly used by good wizards
</para>
        </listitem>
<sect2>
      </itemizedlist>
<title>Evil magic</title>
 
<para>
      <para>
In this subsection you will learn about evil magic.
        A picture of the flow of mana:
</para>
        <mediaobject>
<important>
          <imageobject>
Be very careful. Evil magic is hard to handle!
              <imagedata fileref="bigpicture.png" format="PNG"/>
</important>
          </imageobject>
</sect2>
        </mediaobject>
</sect1>
      </para>
</article>
 
    <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>
</nowiki></pre>
</nowiki></pre>
=== Sections that can be used in the <articleinfo> ===
=== Sections that can be used in the <articleinfo> ===
第69行: 第80行:
=== Including images ===
=== Including images ===
<pre><nowiki>
<pre><nowiki>
<mediaobject>
 
<imageobject>
<mediaobject>
<imagedata fileref="bigpicture.png" format="PNG"/>
    <imageobject>
</imageobject>
      <imagedata fileref="bigpicture.png" format="PNG"/>
</mediaobject>
    </imageobject>
</mediaobject>
</nowiki></pre>
</nowiki></pre>
=== Terminal input/output ===
=== Terminal input/output ===
<pre><nowiki>
<pre><nowiki>
<screen>
 
user = service
<screen>
password = DomAKg07
user = service
</screen>
password = DomAKg07
</screen>
</nowiki></pre>
</nowiki></pre>
=== Lists ===
=== Lists ===
<pre><nowiki>
<pre><nowiki>
<itemizedlist>
<itemizedlist>
<listitem>
  <listitem>
Bad magic: mostly used by evil wizards
    Bad magic: mostly used by evil wizards
</listitem>
  </listitem>
<listitem>
  <listitem>
Good magic: mostly used by good wizards
    Good magic: mostly used by good wizards
</listitem>
  </listitem>
</itemizedlist>
</itemizedlist>
</nowiki></pre>
</nowiki></pre>
=== References ===
=== References ===
If you need to refer to a section in your document place an anchor like this:
If you need to refer to a section in your document place an anchor like this:
<pre><nowiki>
<pre><nowiki>
<sect1 id="install_packages" xreflabel="installing the needed packages">
<sect1 id="install_packages" xreflabel="installing the needed packages">
</nowiki></pre>
</nowiki></pre>
Later you can refer to that section using:
Later you can refer to that section using:
<pre><nowiki>
<pre><nowiki>
See <xref linkend="install_packages"/> for more information.
See <xref linkend="install_packages"/> for more information.
</nowiki></pre>
</nowiki></pre>
Which will render to:
Which will render to:
第106行: 第119行:
=== Tables ===
=== Tables ===
<pre><nowiki>
<pre><nowiki>
<informaltable frame="none">
 
<tgroup cols="2">
<informaltable frame="none">
<thead>
  <tgroup cols="2">
<row>
    <thead>
<entry>Setting</entry>
      <row>
<entry>Meaning</entry>
        <entry>Setting</entry>
</row>
        <entry>Meaning</entry>
</thead>
      </row>
<tbody>
    </thead>
<row>
    <tbody>
<entry>
      <row>
$mydomain = 'yourdomain.org';
        <entry>
</entry>
          $mydomain = 'yourdomain.org';
<entry>
        </entry>
Configure this string to your default domain.
        <entry>
</entry>
          Configure this string to your default domain.
</row>
        </entry>
<row>
      </row>
<entry>
      <row>
@bypass_virus_checks_acl = qw( . );
        <entry>
</entry>
          @bypass_virus_checks_acl = qw( . );
<entry>
        </entry>
If this line is commented out virus checks are enabled.
        <entry>
</entry>
          If this line is commented out virus checks are enabled.
</row>
        </entry>
</tbody>
      </row>
</tgroup>
    </tbody>
</informaltable>
  </tgroup>
</informaltable>
</nowiki></pre>
</nowiki></pre>
=== Notes / Warnings ===
=== Notes / Warnings ===
<pre><nowiki>
<pre><nowiki>
<caution>...</caution>
 
<note>...</note>
<caution>...</caution>
<tip>...</tip>
<note>...</note>
<warning>...</warning>
<tip>...</tip>
<important>...</important>
<warning>...</warning>
<important>...</important>
</nowiki></pre>
</nowiki></pre>
Use them like:
Use them like:
<pre><nowiki>
<pre><nowiki>
<warning>
  <warning>
<title>
    <title>
Careful
      Careful
</title>
    </title>
<para>
    <para>
Dragons may have a bad breath even resulting in bursts of fire.
      Dragons may have a bad breath even resulting in bursts of fire.
</para>
    </para>
</warning>
  </warning>
</nowiki></pre>
</nowiki></pre>
=== Hyperlinks ===
=== Hyperlinks ===
<pre><nowiki>
<pre><nowiki>
<ulink url="http://workaround.org>workaround.org</ulink>
 
<ulink url="http://workaround.org>workaround.org</ulink>
</nowiki></pre>
</nowiki></pre>
'Christoph Haas'
'Christoph Haas'

2007年12月6日 (四) 10:11的版本

{{#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'