差别

这里会显示出您选择的修订版和当前版本之间的差别。

到此差别页面的链接

两侧同时换到之前的修订记录 前一修订版
后一修订版
前一修订版
wiki:syntax [2015/08/03 17:07] – [格式化语法] zhanglhwiki:syntax [2024/05/26 19:05] (当前版本) – 外部编辑 127.0.0.1
行 1: 行 1:
-====== 中华人民共和国企业所得税法====== +====== Formatting Syntax ======
-主席令[2007]第63号 2007年3月16日+
  
-(2007年3月16日第十届全国人民代表大会第五次会议通过2007年3月16日中华人民共和国主席令第六十三号公布 自2008年1月1日起施行)+[[doku>DokuWiki]] supports some simple markup language, which tries to make the datafiles to be as readable as possible. This page contains all possible syntax you may use when editing the pages. Simply have a look at the source of this page by pressing "Edit this page". If you want to try something, just use the [[playground:playground|playground]] page. The simpler markup is easily accessible via [[doku>toolbar|quickbuttons]], too.
  
-第一章 总则+===== Basic Text Formatting =====
  
-第二章 应纳税所得额+DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. Of course you can **__//''combine''//__** all these.
  
-第三章 应纳税额+  DokuWiki supports **bold**, //italic//, __underlined__ and ''monospaced'' texts. 
 +  Of course you can **__//''combine''//__** all these.
  
-第四章 税收优惠+You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
  
-第五章 源泉扣缴+  You can use <sub>subscript</sub> and <sup>superscript</sup>, too.
  
-第六章 特别纳税调整+You can mark something as <del>deleted</del> as well.
  
-第七章 征收管理+  You can mark something as <del>deleted</del> as well.
  
-第八章 附则+**Paragraphs** are created from blank lines. If you want to **force a newline** without a paragraph, you can use two backslashes followed by a whitespace or the end of line.
  
-第一章 总则+This is some text with some linebreaks\\ Note that the 
 +two backslashes are only recognized at the end of a line\\ 
 +or followed by\\ a whitespace \\this happens without it.
  
-第一条 在中华人民共和国境内,企业和其他取得收入的组织(以下统称企业)为企业所得税的纳税人,依照本法的规定缴纳企业所得税。个人独资企业、合伙企业不适用本法。+  This is some text with some linebreaks\\ Note that the 
 +  two backslashes are only recognized at the end of a line\\ 
 +  or followed by\\ a whitespace \\this happens without it.
  
-第二条 企业分为居民企业和非居民企业。+You should use forced newlines only if really needed.
  
-本法所称居民企业,是指依法在中国境内成立,或者依照外国(地区)法律成立但实际管理机构在中国境内的企业。+===== Links =====
  
-本法所称非居民企业,是指依照外国(地区)法律成立且实际管理机构不在中国境内,但在中国境内设立机构、场所的,或者在中国境内未设立机构、场所,但有来源于中国境内所得的企业。+DokuWiki supports multiple ways of creating links.
  
-第三条 居民企业应当就其来源于中国境内、境外的所得缴纳企业所得税。+==== External ====
  
-非居民企业在中国境内设立机构、场所的,应当就其所设机构、场所取得的来源于中国境内的所得,以及发生在中国境外但与其所设机构、场所有实际联系的所得,缴纳企业所得税。+External links are recognized automagically: http://www.google.com or simply www.google.com - You can set the link text as well: [[http://www.google.com|This Link points to google]]. Email addresses like this one: <andi@splitbrain.org> are recognized, too.
  
-非居民企业在中国境内未设立机构、场所的,或者虽设立机构、场所但取得的所得与其所设机构、场所没有实际联系的,应当就其来源于中国境内的所得缴纳企业所得税。+  DokuWiki supports multiple ways of creating links. External links are recognized 
 +  automagically: http://www.google.com or simply www.google.com - You can set 
 +  link text as well: [[http://www.google.com|This Link points to google]]. Email 
 +  addresses like this one: <andi@splitbrain.org> are recognized, too.
  
-第四条 企业所得税的税率为25%。非居民企业取得本法第三条第三款规定的所得,适用税率为20%。+==== Internal ====
  
-第二章 应纳税所得额+Internal links are created by using square brackets. You can either just give a [[pagename]] or use an additional [[pagename|link text]].
  
-第五条 企业每一纳税年度的收入总额,减除不征税收入、免税收入、各项扣除以及允许弥补的以前年度亏损后的余额,为应纳税所得额。+  Internal links are created by using square brackets. You can either just give 
 +  a [[pagename]] or use an additional [[pagename|link text]].
  
-第六条 企业以货币形式和非货币形式从各种来源取得的收入,为收入总额。包括:+[[doku>pagename|Wiki pagenames]] are converted to lowercase automatically, special characters are not allowed.
  
-(一)销售货物收入;+You can use [[some:namespaces]] by using a colon in the pagename.
  
-(二)提供劳务收入;+  You can use [[some:namespaces]] by using a colon in the pagename.
  
-(三)转让财产收入;+For details about namespaces see [[doku>namespaces]].
  
-(四)股息、红利等权益性投资收益;+Linking to a specific section is possible, too. Just add the section name behind a hash character as known from HTML. This links to [[syntax#internal|this Section]].
  
-(五)利息收入;+  This links to [[syntax#internal|this Section]].
  
-(六)租金收入;+Notes:
  
-(七)特许权使用费收入;+  * Links to [[syntax|existing pages]] are shown in a different style from [[nonexisting]] ones. 
 +  * DokuWiki does not use [[wp>CamelCase]] to automatically create links by default, but this behavior can be enabled in the [[doku>config]] file. Hint: If DokuWiki is a link, then it's enabled. 
 +  * When a section's heading is changed, its bookmark changes, too. So don't rely on section linking too much.
  
-(八)接受捐赠收入;+==== Interwiki ====
  
-(九)其他收入。+DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
  
-第七条 收入总额中的下列收入为不征税收入:+  DokuWiki supports [[doku>Interwiki]] links. These are quick links to other Wikis. 
 +  For example this is a link to Wikipedia's page about Wikis: [[wp>Wiki]].
  
-(一)财政拨款;+==== Windows Shares ====
  
-(二)依法收取并纳入财政管理的行政事业性收费、政府性基金;+Windows shares like [[\\server\share|this]] are recognized, too. Please note that these only make sense in a homogeneous user group like a corporate [[wp>Intranet]].
  
-(三)国务院规定的其他不征税收入。+  Windows Shares like [[\\server\share|this]] are recognized, too.
  
-第八条 企业实际发生的与取得收入有关的、合理的支出,包括成本、费用、税金、损失和其他支出,准予在计算应纳税所得额时扣除。+Notes:
  
-第九条 企业发生的公益性捐赠支出,在年度利润总额12%以内的部分,准予在计算应纳税所得额时扣除。+  * For security reasons direct browsing of windows shares only works in Microsoft Internet Explorer per default (and only in the "local zone"). 
 +  * For Mozilla and Firefox it can be enabled through different workaround mentioned in the [[http://kb.mozillazine.org/Links_to_local_pages_do_not_work|Mozilla Knowledge Base]]. However, there will still be a JavaScript warning about trying to open a Windows Share. To remove this warning (for all users), put the following line in ''conf/lang/en/lang.php'' (more details at [[doku>localization#changing_some_localized_texts_and_strings_in_your_installation|localization]]): <code - conf/lang/en/lang.php> 
 +<?php 
 +/** 
 + * Customization of the english language file 
 + * Copy only the strings that needs to be modified 
 + */ 
 +$lang['js']['nosmblinks'] = ''; 
 +</code>
  
-第十条 在计算应纳税所得额时,下列支出不得扣除:+==== Image Links ====
  
-(一)向投资者支付的股息、红利等权益性投资收益款项;+You can also use an image to link to another internal or external page by combining the syntax for links and [[#images_and_other_files|images]] (see below) like this:
  
-(二)企业所得税税款;+  [[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-(三)税收滞纳金;+[[http://php.net|{{wiki:dokuwiki-128.png}}]]
  
-(四)罚金、罚款和被没收财物的损失;+Please note: The image formatting is the only formatting syntax accepted in link names.
  
-(五)本法第九条规定以外的捐赠支出;+The whole [[#images_and_other_files|image]] and [[#links|link]] syntax is supported (including image resizing, internal and external images and URLs and interwiki links).
  
-(六)赞助支出;+===== Footnotes =====
  
-(七)未经核定的准备金支出;+You can add footnotes ((This is a footnote)) by using double parentheses.
  
-(八)与取得收入无关的其他支出。+  You can add footnotes ((This is a footnote)) by using double parentheses.
  
-第十一条 在计算应纳税所得额时,企业按照规定计算的固定资产折旧,准予扣除。+===== Sectioning =====
  
-下列固定资产不得计算折旧扣除:+You can use up to five different levels of headlines to structure your content. If you have more than three headlines, a table of contents is generated automatically -- this can be disabled by including the string ''<nowiki>~~NOTOC~~</nowiki>'' in the document.
  
-(一)房屋、建筑物以外未投入使用的固定资产;+==== Headline Level 3 ==== 
 +=== Headline Level 4 === 
 +== Headline Level 5 ==
  
-(二)以经营租赁方式租入的固定资产;+  ==== Headline Level 3 ==== 
 +  === Headline Level 4 === 
 +  == Headline Level 5 ==
  
-(三)以融资租赁方式租出的固定资产;+By using four or more dashes, you can make a horizontal line:
  
-(四)已足额提取折旧仍继续使用的固定资产;+----
  
-(五)与经营活动无关的固定资产;+===== Media Files =====
  
-(六)单独估价作为固定资产入账的土地;+You can include external and internal [[doku>images|images, videos and audio files]] with curly brackets. Optionally you can specify the size of them.
  
-(七)其他不得计算折旧扣除的固定资产。+Real size:                        {{wiki:dokuwiki-128.png}}
  
-第十二条 在计算应纳税所得额时,企业按照规定计算的无形资产摊销费用,准予扣除。+Resize to given width:            {{wiki:dokuwiki-128.png?50}}
  
-下列无形资产不得计算摊销费用扣除:+Resize to given width and height((when the aspect ratio of the given width and height doesn't match that of the image, it will be cropped to the new ratio before resizing)): {{wiki:dokuwiki-128.png?200x50}}
  
-(一)自行开发的支出已在计算应纳税所得额时扣除的无形资产;+Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
  
-(二)自创商誉;+  Real size:                        {{wiki:dokuwiki-128.png}} 
 +  Resize to given width:            {{wiki:dokuwiki-128.png?50}} 
 +  Resize to given width and height: {{wiki:dokuwiki-128.png?200x50}} 
 +  Resized external image:           {{https://www.php.net/images/php.gif?200x50}}
  
-(三)与经营活动无关的无形资产; 
  
-(四)其他不得计算摊销费用扣除的无形资产。+By using left or right whitespaces you can choose the alignment.
  
-第十三条 在计算应纳税所得额时,企业发生的下列支出作为长期待摊费用,按照规定摊销的,准予扣除:+{{ wiki:dokuwiki-128.png}}
  
-(一)已足额提取折旧的固定资产的改建支出;+{{wiki:dokuwiki-128.png }}
  
-(二)租入固定资产的改建支出;+{{ wiki:dokuwiki-128.png }}
  
-(三)固定资产的大修理支出;+  {{ wiki:dokuwiki-128.png}} 
 +  {{wiki:dokuwiki-128.png }} 
 +  {{ wiki:dokuwiki-128.png }}
  
-(四)其他应当作为长期待摊费用的支出。+Of course, you can add a title (displayed as a tooltip by most browsers), too.
  
-第十四条 企业对外投资期间,投资资产的成本在计算应纳税所得额时不得扣除。+{{ wiki:dokuwiki-128.png |This is the caption}}
  
-第十五条 企业使用或者销售存货,按照规定计算的存货成本,准予在计算应纳税所得额时扣除。+  {{ wiki:dokuwiki-128.png |This is the caption}}
  
-第十六条 企业转让资产,该项资产的净值,准予在计算应纳税所得额时扣除。+For linking an image to another page see [[#Image Links]] above.
  
-第十七条 企业在汇总计算缴纳企业所得税时,其境外营业机构的亏损不得抵减境内营业机构的盈利。+==== Supported Media Formats ====
  
-第十八条 企业纳税年度发生的亏损,准予向以后年度结转,用以后年度的所得弥补,但结转年限最长不得超过五年。+DokuWiki can embed the following media formats directly.
  
-第十九条 非居民企业取得本法第三条第三款规定的所得,按照下列方法计算其应纳税所得额:+| Image | ''gif'', ''jpg'', ''png'' 
 +| Video | ''webm'', ''ogv'', ''mp4''
 +| Audio | ''ogg'', ''mp3'', ''wav'' 
 +| Flash | ''swf''                    |
  
-(一)股息、红利等权益性投资收益和利息、租金、特许权使用费所得,以收入全额为应纳税所得额;+If you specify a filename that is not a supported media format, then it will be displayed as a link instead.
  
-(二)转让财产所得,以收入全额减除财产净值后的余额为应纳税所得额;+By adding ''?linkonly'' you provide a link to the media without displaying it inline
  
-(三)其他所得,参照前两项规定的方法计算应纳税所得额。+  {{wiki:dokuwiki-128.png?linkonly}}
  
-第二十条 本章规定的收入、扣除的具体范围、标准和资产的税务处理的具体办法,由国务院财政、税务主管部门规定。+{{wiki:dokuwiki-128.png?linkonly}} This is just a link to the image.
  
-第二十一条 在计算应纳税所得额时,企业财务、会计处理办法与税收法律、行政法规的规定不一致的,应当依照税收法律、行政法规的规定计算。+==== Fallback Formats ====
  
-第三章 应纳税额+Unfortunately not all browsers understand all video and audio formats. To mitigate the problem, you can upload your file in different formats for maximum browser compatibility.
  
-第二十二条 企业的应纳税所得额乘以适用税率,减除依照本法关于税收优惠的规定减免和抵免的税额后的余额,为应纳税额。+For example consider this embedded mp4 video:
  
-第二十三条 企业取得的下列所得已在境外缴纳的所得税税额,可以从其当期应纳税额中抵免,抵免限额为该项所得依照本法规定计算的应纳税额;超过抵免限额的部分,可以在以后五个年度内,用每年度抵免限额抵免当年应抵税额后的余额进行抵补:+  {{video.mp4|A funny video}}
  
-(一)居民企业来源于中国境外的应税所得;+When you upload a ''video.webm'' and ''video.ogv'' next to the referenced ''video.mp4'', DokuWiki will automatically add them as alternatives so that one of the three files is understood by your browser.
  
-(二)非居民企业在中国境内设立机构、场所,取得发生在中国境外但与该机构、场所有实际联系的应税所得。+Additionally DokuWiki supports a "poster" image which will be shown before the video has started. That image needs to have the same filename as the video and be either a jpg or png file. In the example above a ''video.jpg'' file would work.
  
-第二十四条 居民企业从其直接或者间接控制的外国企业分得的来源于中国境外的股息、红利等权益性投资收益,外国企业在境外实际缴纳的所得税税额中属于该项所得负担的部分,可以作为该居民企业的可抵免境外所得税税额,在本法第二十三条规定的抵免限额内抵免。+===== Lists =====
  
-第四章  税收优惠 +Dokuwiki supports ordered and unordered lists. To create a list item, indent your text by two spaces and use a ''*'' for unordered lists or a ''-'' for ordered ones.
  
-第二十五条 国家对重点扶持和鼓励发展的产业和项目,给予企业所得税优惠。+  * This is a list 
 +  * The second item 
 +    * You may have different levels 
 +  * Another item
  
-第二十六条 企业的下列收入为免税收入:+  - The same list but ordered 
 +  - Another item 
 +    - Just use indention for deeper levels 
 +  - That's it
  
-(一)国债利息收入;+<code> 
 +  * This is a list 
 +  * The second item 
 +    * You may have different levels 
 +  * Another item
  
-(二)符合条件的居民企业之间的股息、红利等权益性投资收益;+  - The same list but ordered 
 +  - Another item 
 +    - Just use indention for deeper levels 
 +  - That's it 
 +</code>
  
-(三)在中国境内设立机构、场所的非居民企业从居民企业取得与该机构、场所有实际联系的股息、红利等权益性投资收益;+Also take a look at the [[doku>faq:lists|FAQ on list items]].
  
-(四)符合条件的非营利组织的收入。 +===== Text Conversions =====
- +
-第二十七条 企业的下列所得,可以免征、减征企业所得税: +
- +
-(一)从事农、林、牧、渔业项目的所得; +
- +
-(二)从事国家重点扶持的公共基础设施项目投资经营的所得; +
- +
-(三)从事符合条件的环境保护、节能节水项目的所得; +
- +
-(四)符合条件的技术转让所得; +
- +
-(五)本法第三条第三款规定的所得。 +
- +
-第二十八条 符合条件的小型微利企业,减按20%的税率征收企业所得税。国家需要重点扶持的高新技术企业,减按15%的税率征收企业所得税。 +
- +
-第二十九条 民族自治地方的自治机关对本民族自治地方的企业应缴纳的企业所得税中属于地方分享的部分,可以决定减征或者免征。自治州、自治县决定减征或者免征的,须报省、自治区、直辖市人民政府批准。 +
- +
-第三十条 企业的下列支出,可以在计算应纳税所得额时加计扣除: +
- +
-(一)开发新技术、新产品、新工艺发生的研究开发费用; +
- +
-(二)安置残疾人员及国家鼓励安置的其他就业人员所支付的工资。 +
- +
-第三十一条 创业投资企业从事国家需要重点扶持和鼓励的创业投资,可以按投资额的一定比例抵扣应纳税所得额。 +
- +
-第三十二条 企业的固定资产由于技术进步等原因,确需加速折旧的,可以缩短折旧年限或者采取加速折旧的方法。 +
- +
-第三十三条 企业综合利用资源,生产符合国家产业政策规定的产品所取得的收入,可以在计算应纳税所得额时减计收入。 +
- +
-第三十四条 企业购置用于环境保护、节能节水、安全生产等专用设备的投资额,可以按一定比例实行税额抵免。 +
- +
-第三十五条 本法规定的税收优惠的具体办法,由国务院规定。 +
- +
-第三十六条 根据国民经济和社会发展的需要,或者由于突发事件等原因对企业经营活动产生重大影响的,国务院可以制定企业所得税专项优惠政策,报全国人民代表大会常务委员会备案。 +
- +
-第五章  源泉扣税 +
- +
-第三十七条 对非居民企业取得本法第三条第三款规定的所得应缴纳的所得税,实行源泉扣缴,以支付人为扣缴义务人。税款由扣缴义务人在每次支付或者到期应支付时,从支付或者到期应支付的款项中扣缴。 +
- +
-第三十八条 对非居民企业在中国境内取得工程作业和劳务所得应缴纳的所得税,税务机关可以指定工程价款或者劳务费的支付人为扣缴义务人。 +
- +
-第三十九条 依照本法第三十七条、第三十八条规定应当扣缴的所得税,扣缴义务人未依法扣缴或者无法履行扣缴义务的,由纳税人在所得发生地缴纳。纳税人未依法缴纳的,税务机关可以从该纳税人在中国境内其他收入项目的支付人应付的款项中,追缴该纳税人的应纳税款。 +
- +
-第四十条 扣缴义务人每次代扣的税款,应当自代扣之日起七日内缴入国库,并向所在地的税务机关报送扣缴企业所得税报告表。 +
- +
-第六章  特别纳税调整 +
- +
-第四十一条 企业与其关联方之间的业务往来,不符合独立交易原则而减少企业或者其关联方应纳税收入或者所得额的,税务机关有权按照合理方法调整。企业与其关联方共同开发、受让无形资产,或者共同提供、接受劳务发生的成本,在计算应纳税所得额时应当按照独立交易原则进行分摊。 +
- +
-第四十二条 企业可以向税务机关提出与其关联方之间业务往来的定价原则和计算方法,税务机关与企业协商、确认后,达成预约定价安排。 +
- +
-第四十三条 企业向税务机关报送年度企业所得税纳税申报表时,应当就其与关联方之间的业务往来,附送年度关联业务往来报告表。税务机关在进行关联业务调查时,企业及其关联方,以及与关联业务调查有关的其他企业,应当按照规定提供相关资料。 +
- +
-第四十四条 企业不提供与其关联方之间业务往来资料,或者提供虚假、不完整资料,未能真实反映其关联业务往来情况的,税务机关有权依法核定其应纳税所得额。 +
- +
-第四十五条 由居民企业,或者由居民企业和中国居民控制的设立在实际税负明显低于本法第四条第一款规定税率水平的国家(地区)的企业,并非由于合理的经营需要而对利润不作分配或者减少分配的,上述利润中应归属于该居民企业的部分,应当计入该居民企业的当期收入。 +
- +
-第四十六条 企业从其关联方接受的债权性投资与权益性投资的比例超过规定标准而发生的利息支出,不得在计算应纳税所得额时扣除。 +
- +
-第四十七条 企业实施其他不具有合理商业目的的安排而减少其应纳税收入或者所得额的,税务机关有权按照合理方法调整。 +
- +
-第四十八条 税务机关依照本章规定作出纳税调整,需要补征税款的,应当补征税款,并按照国务院规定加收利息。 +
- +
-第七章 征收管理 +
- +
-第四十九条 企业所得税的征收管理除本法规定外,依照《中华人民共和国税收征收管理法》的规定执行。 +
- +
-第五十条 除税收法律、行政法规另有规定外,居民企业以企业登记注册地为纳税地点;但登记注册地在境外的,以实际管理机构所在地为纳税地点。居民企业在中国境内设立不具有法人资格的营业机构的,应当汇总计算并缴纳企业所得税。 +
- +
-第五十一条 非居民企业取得本法第三条第二款规定的所得,以机构、场所所在地为纳税地点。非居民企业在中国境内设立两个或者两个以上机构、场所的,经税务机关审核批准,可以选择由其主要机构、场所汇总缴纳企业所得税。非居民企业取得本法第三条第三款规定的所得,以扣缴义务人所在地为纳税地点。 +
- +
-第五十二条 除国务院另有规定外,企业之间不得合并缴纳企业所得税。 +
- +
-第五十三条 企业所得税按纳税年度计算。纳税年度自公历1月1日起至12月31日止。企业在一个纳税年度中间开业,或者终止经营活动,使该纳税年度的实际经营期不足十二个月的,应当以其实际经营期为一个纳税年度。企业依法清算时,应当以清算期间作为一个纳税年度。 +
- +
-第五十四条 企业所得税分月或者分季预缴。 +
- +
-企业应当自月份或者季度终了之日起十五日内,向税务机关报送预缴企业所得税纳税申报表,预缴税款。 +
- +
-企业应当自年度终了之日起五个月内,向税务机关报送年度企业所得税纳税申报表,并汇算清缴,结清应缴应退税款。 +
- +
-企业在报送企业所得税纳税申报表时,应当按照规定附送财务会计报告和其他有关资料。 +
- +
-第五十五条 企业在年度中间终止经营活动的,应当自实际经营终止之日起六十日内,向税务机关办理当期企业所得税汇算清缴。企业应当在办理注销登记前,就其清算所得向税务机关申报并依法缴纳企业所得税。 +
- +
-第五十六条 依照本法缴纳的企业所得税,以人民币计算。所得以人民币以外的货币计算的,应当折合成人民币计算并缴纳税款。 +
- +
-第八章 附则 +
- +
-第五十七条 本法公布前已经批准设立的企业,依照当时的税收法律、行政法规规定,享受低税率优惠的,按照国务院规定,可以在本法施行后五年内,逐步过渡到本法规定的税率;享受定期减免税优惠的,按照国务院规定,可以在本法施行后继续享受到期满为止,但因未获利而尚未享受优惠的,优惠期限从本法施行年度起计算。 +
- +
-法律设置的发展对外经济合作和技术交流的特定地区内,以及国务院已规定执行上述地区特殊政策的地区内新设立的国家需要重点扶持的高新技术企业,可以享受过渡性税收优惠,具体办法由国务院规定。 +
- +
-国家已确定的其他鼓励类企业,可以按照国务院规定享受减免税优惠。 +
- +
-第五十八条 中华人民共和国政府同外国政府订立的有关税收的协定与本法有不同规定的,依照协定的规定办理。 +
- +
-第五十九条 国务院根据本法制定实施条例。 +
- +
- 第六十条 本法自2008年1月1日起施行。1991年4月9日第七届全国人民代表大会第四次会议通过的《中华人民共和国外商投资企业和外国企业所得税法》和1993年12月13日国务院发布的《中华人民共和国企业所得税暂行条例》同时废止。 +
- +
-===== 基本文字格式 ===== +
-DokuWiki支持**粗体**,//斜体//,__下划线__以及''等宽体''等格式。当然,您可以**__//''混合使用''//__**这些格式。 +
- +
-  DokuWiki支持**粗体**,//斜体//,__下划线__以及''等宽体''等格式。 +
-  当然,您可以**__//''混合使用''//__**这些格式。 +
- +
-您也可以使用<sub>下标</sub>和<sup>上标</sup>。 +
- +
-  您也可以使用<sub>下标</sub>和<sup>上标</sup>。 +
- +
-同时也可以使用<del>删除线</del>标记某些信息。 +
- +
-  同时也可以使用<del>删除线</del>标记某些信息。 +
- +
-**段落**是由空行所建立的。如果您想**强制换行**而不建立段落,您可以使用两个连续的反斜杠接空格或回车作为标记。请看样例: +
- +
-这是一些有着换行标记的文字。\\ 请注意 +
-双反斜杠只在回车符之前\\ +
-或者接在\\ 一个空格之前的时候才有效。\\而这样就并不起作用。 +
- +
-  这是一些有着换行标记的文字。\\ 请注意 +
-  双反斜杠只在回车符之前\\ +
-  或者接在\\ 一个空格之前的时候才有效。\\而这样就并不起作用。 +
- +
-请仅在必须的时候使用强制换行标记。 +
-===== 链接 ===== +
- +
-DokuWiki支持以多种形式创建链接。 +
- +
-==== 外部链接 ==== +
- +
-外部链接会被自动地识别:http://www.google.com,或者简单地写作www.google.com——您也可以设置链接文本:[[http://www.google.com|此链接指向google]]。类似这样的电子邮件地址:<andi@splitbrain.org>也可以被识别。 +
- +
-  DokuWiki支持以多种形式创建链接。外部链接会被自动地识别: +
-  http://www.google.com,或者简单地写作www.google.com +
-  ——您也可以设置链接文本:[[http://www.google.com|此链接指向google]]。 +
-  类似这样的电子邮件地址:<andi@splitbrain.org>也可以被识别。 +
- +
-==== 内部链接 ==== +
- +
-内部链接可以用方括号创建。您可以只给出[[页面名]],或附加[[页面名|链接文本]]。 +
- +
-  内部链接可以用方括号创建。您可以只给出 +
-  [[页面名]],或附加[[页面名|链接文本]]。 +
- +
-[[doku>pagename|Wiki的页面名]]会被自动地转换为小写字母,并且不允许使用特殊字符。 +
- +
-您可以通过在页面名中添加冒号的方式来使用[[某目录:命名空间]]。 +
- +
-  您可以通过在页面名中添加冒号的方式来使用[[某目录:命名空间]]。 +
- +
-如果您需要更多有关“命名空间(namespaces)”的详细信息,请参见[[doku>namespaces]]。 +
- +
-链接到一个特定章节也是可能的。只需要在#号后面加上章节的名称。这是一个指向[[syntax#内部链接|本节]]的链接。 +
- +
-  这是一个指向[[syntax#内部链接|本节]]的链接。 +
- +
-注意: +
-  * 指向[[syntax|已存在页面]]的和[[nonexisting|不存在页面]]的链接,其外观是不同的。 +
-  * 默认情况下,DokuWiki不使用[[wp>CamelCase]]来自动建立链接。但这一设定可以在[[doku>config|配置文件]]中激活。提示:如果DokuWiki显示为链接,则说明已激活。 +
-  * 当一节的标题改变时,它的书签也会改变。因此,请不要过于依赖章节链接。 +
- +
-==== Wiki间链接 ==== +
- +
-DokuWiki支持[[doku>Interwiki]](Wiki间链接)。他们是到其他Wiki的快速链接。例如,这是一个指向Wikipedia上Wiki条目的链接:[[wp>Wiki]]。 +
- +
-  DokuWiki支持[[doku>Interwiki]](Wiki间链接)。他们是到其他Wiki的快速链接。 +
-  例如,这是一个指向Wikipedia上Wiki条目的链接:[[wp>Wiki]] +
-==== Windows共享文件夹 ==== +
- +
-Windows共享文件夹,例如[[\\server\share|这个]]也可以被识别。请注意,这只在企业[[wp>Intranet|内部网]]等局域网环境中才有意义。 +
- +
-  Windows共享文件夹,例如[[\\server\share|这个]]也可以被识别。 +
- +
-注: +
- +
-  * 出于安全原因,只有在微软IE浏览器上才能够直接访问Windows共享文件夹(并且仅在“本地区域”)。 +
-  * 对于Mozilla和Firefox可以通过[[http://kb.mozillazine.org/Firefox_:_Issues_:_Links_to_Local_Pages_Don%27t_Work|Mozilla知识库]]中提到的不同解决方法启用。但是,打开一个windows共享文件夹时仍然会有一个JavaScript告警。要去除这个警告(为所有用户),把下面一行放入"conf/userscript.js"中; +
- +
-  LANG.nosmblinks = ''; +
-==== 图像链接 ==== +
- +
-您也可以通过结合链接和[[#图像和其它文件|图像]](见下文)的语法,用图像来链接到一个内部或者外部的页面。如下所示: +
- +
-  [[http://www.php.net|{{wiki:dokuwiki-128.png}}]] +
- +
-[[http://www.php.net|{{wiki:dokuwiki-128.png}}]] +
- +
-请注意:图像的格式化语法是链接文本唯一接受的格式化语法。 +
- +
-所有的图像和链接语法都是支持的(包括图像大小调整、内部和外部的图像与链接以及wiki内链接)。 +
- +
-===== 脚注 ===== +
- +
-您可以使用两个连续小括号来添加脚注((这是一个脚注))。 +
- +
-  您可以使用两个连续小括号来添加脚注((这是一个脚注))。 +
- +
-===== 分节 ===== +
- +
-您可以使用多达5层的标题来组织您的内容。如果您使用了三个以上的标题,将自动生成目录——这可以通过在页面加入''<nowiki>~~NOTOC~~</nowiki>''字样来禁用。 +
- +
-==== H3标题 ==== +
-=== H4标题 === +
-== H5标题 == +
- +
-  ==== H3标题 ==== +
-  === H4标题 === +
-  == H5标题 == +
- +
-您可以通过4个以上连续的“-”号来创建一条水平分割线: +
- +
----- +
- +
- +
-===== 图像和其它文件 ===== +
- +
-您可以用两个大括号在页面中加入外部或内部的[[doku>images|图像]]。您还可以指定它们的大小。 +
- +
-原始大小:                        {{wiki:dokuwiki-128.png}} +
- +
- +
-指定宽度:                        {{wiki:dokuwiki-128.png?50}} +
- +
-指定宽度和高度((当指定的长宽比与图像的不一致,在调整图像大小前,其将先被裁剪到新的比例)):                  {{wiki:dokuwiki-128.png?200x50}} +
- +
-重新指定宽度和高度的外部图像:    {{http://de3.php.net/images/php.gif?200x50}} +
- +
-  原始大小:                        {{wiki:dokuwiki-128.png}} +
-  指定宽度:                        {{wiki:dokuwiki-128.png?50}} +
-  指定宽度和高度((当指定的长宽比与图像的不一致,在调整图像大小前,其将先被裁剪到新的比例)):                  {{wiki:dokuwiki-128.png?200*50}} +
-  重新指定宽度和高度的外部图像:    {{http://de3.php.net/images/php.gif?200x50}} +
- +
-通过使用左空格或右空格,您可以选择对齐方式。 +
- +
-{{ wiki:dokuwiki-128.png}} +
- +
-{{wiki:dokuwiki-128.png }} +
- +
-{{ wiki:dokuwiki-128.png }} +
- +
-  {{ wiki:dokuwiki-128.png}} +
-  {{wiki:dokuwiki-128.png }} +
-  {{ wiki:dokuwiki-128.png }} +
- +
-当然,您也可以指定一个标题(多数浏览器显示为提示文本((鼠标悬停可以看到)))。 +
- +
-{{ wiki:dokuwiki-128.png |这是标题}} +
- +
-  {{ wiki:dokuwiki-128.png |这是标题}} +
- +
-如果您指定的文件名(无论是外部的还是内部的)不是一个图像(''gif,jpeg,png''),那么它将被显示为一个链接。 +
- +
-对于将图像链接到其他页面,参见上面的[[#图像链接]]。 +
-===== 列表 ===== +
- +
-DokuWiki支持带编号或不带编号的列表。要创建列表,在文字前加入两个空格,然后使用''*''标记不带编号的列表,用''-''标记带编号的列表。 +
- +
-  * 这是一个列表 +
-  * 第二项 +
-    * 您可以有不同的层次 +
-  * 另一项 +
- +
-  - 带编号的列表 +
-  - 另一项 +
-    - 用缩进表示更深的层 +
-  - 就这样 +
- +
-<code> +
-  * 这是一个列表 +
-  * 第二项 +
-    * 您可以有不同的层次 +
-  * 另一项 +
- +
-  - 带编号的列表 +
-  - 另一项 +
-    - 用缩进表示更深的层 +
-  - 就这样 +
-</code>+
  
-===== 文本转换 =====+DokuWiki can convert certain pre-defined characters or strings into images or other text or HTML.
  
-DokuWiki可以将预定义的字符或者字符串转换成图像、其他文本或HTML+The text to image conversion is mainly done for smileys. And the text to HTML conversion is used for typography replacements, but can be configured to use other HTML as well.
  
-文本转换为图像主要用于表情符号。文本到HTML的转换用于排版的字符替换,但也可以配置为使用其他HTML。 +==== Text to Image Conversions ====
-==== 文本到图像的转换 ====+
  
-DokuWiki会将一些常用的 [[wp>emoticon|表情符号]]转换为相应图像。这些[[doku>Smileys|表情符号]]和其他图像可以被配置和扩展。这是DokuWiki中包含的表情符号的概况:+DokuWiki converts commonly used [[wp>emoticon]]s to their graphical equivalents. Those [[doku>Smileys]] and other images can be configured and extended. Here is an overview of Smileys included in DokuWiki:
  
   * 8-) %%  8-)  %%   * 8-) %%  8-)  %%
行 484: 行 247:
   * ;-) %%  ;-)  %%   * ;-) %%  ;-)  %%
   * ^_^ %%  ^_^  %%   * ^_^ %%  ^_^  %%
 +  * m(  %%  m(   %%
   * :?: %%  :?:  %%   * :?: %%  :?:  %%
   * :!: %%  :!:  %%   * :!: %%  :!:  %%
行 490: 行 254:
   * DELETEME %% DELETEME %%   * DELETEME %% DELETEME %%
  
 +==== Text to HTML Conversions ====
  
-==== 文本到HTML的转换 ==== +Typography: [[DokuWiki]] can convert simple text characters to their typographically correct entities. Here is an example of recognized characters.
- +
-印刷:[[DokuWiki]]可以将特定字符转换为印刷时所用的样式。这是可识别的字符示例。+
  
 -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r) -> <- <-> => <= <=> >> << -- --- 640x480 (c) (tm) (r)
行 503: 行 266:
 </code> </code>
  
-同样的做法可以产生任何类型的HTML,只需要添加到[[doku>entities|模式文件]]+The same can be done to produce any kind of HTML, it just needs to be added to the [[doku>entities|pattern file]].
  
-这里有三个例外,它们并非来自模式文件:乘号(640x480)'单引号'"双引号"。它们可以通过[[doku>config:typography|配置选项]]关闭。+There are three exceptions which do not come from that pattern file: multiplication entity (640x480)'singleand "double quotes". They can be turned off through a [[doku>config:typography|config option]].
  
-===== 引用 =====+===== Quoting =====
  
-有时您想将某些文本标记为回复或者评论。您可以使用下列语法:+Some times you want to mark some text to show it's a reply or comment. You can use the following syntax:
  
 <code> <code>
-我想我们应该做这件事+I think we should do it
  
-不,我们不应该+No we shouldn't
  
->> 好吧,我说我们应该+>> Well, I say we should
  
-真的?+Really?
  
->> 是!+>> Yes!
  
->>> 那来做吧!+>>> Then lets do it!
 </code> </code>
  
-我想我们应该做这件事+I think we should do it
  
-不,我们不应该+No we shouldn't
  
->> 好吧,我说我们应该+>> Well, I say we should
  
-真的?+Really?
  
->> 是!+>> Yes!
  
->>> 那来做吧!+>>> Then lets do it!
  
-===== 表格 =====+===== Tables =====
  
-DokuWiki支持用简单的语法创建表格。 +DokuWiki supports a simple syntax to create tables.
  
-标题       标题        标题      +Heading      Heading       Heading          
-(1,1)        (1,2)         (1,3)       +Row Col    Row Col     Row Col        
-(2,1)        | 一些跨列合并(注意两条竖线)   || +Row Col    | some colspan (note the double pipe) || 
-(3,1)        (3,2)         (3,3)       |+Row Col    Row Col     Row Col        |
  
-表格的每一行都以分隔符 ''|'' (普通行)或者 ''^'' (标题行)作为开头和结束。+Table rows have to start and end with a ''|'' for normal rows or a ''^'' for headers.
  
-  ^ 标题       标题        标题      +  ^ Heading      Heading       Heading          
-  | (1,1)        (1,2)         (1,3)       +  | Row Col    Row Col     Row Col        
-  | (2,1)        | 一些跨列合并(注意两条竖线)   || +  | Row Col    | some colspan (note the double pipe) || 
-  | (3,1)        (3,2)         (3,3)       |+  | Row Col    Row Col     Row Col        |
  
-要水平合并单元格,只需要将后一个单元格设置为空即可,如上面演示的一样。请确保每一行有相同数量的单元格分隔符!+To connect cells horizontally, just make the next cell completely empty as shown above. Be sure to have always the same amount of cell separators!
  
-竖直的标题列也是可以实现的:+Vertical tableheaders are possible, too.
  
-         标题         标题2          ^ +             Heading            Heading 2          ^ 
-标题3    | (1,2         (1,3)          +Heading 3    | Row Col 2          | Row Col        
-标题4    | 不再合并单元格                +Heading 4    | no colspan this time                    
-标题5    | (2,2         (2,3)          |+Heading 5    | Row Col 2          | Row Col        |
  
-可以看到,单元格前面的分隔符决定了单元格的格式。+As you can see, it's the cell separator before a cell which decides about the formatting:
  
-  |          标题         标题2          ^ +  |              Heading            Heading 2          ^ 
-  ^ 标题3    | (1,2         (1,3)          +  ^ Heading 3    | Row Col 2          | Row Col        
-  ^ 标题4    | 不再合并单元格                +  ^ Heading 4    | no colspan this time                    
-  ^ 标题5    | (2,2         (2,3)          |+  ^ Heading 5    | Row Col 2          | Row Col        |
  
-跨行合并单元格(垂直合并单元格)也是可以实现的,通过在下面的相邻单元格输入'':::''可以把两个相邻行的单元格合并。+You can have rowspans (vertically connected cellsby adding ''%%:::%%'' into the cells below the one to which they should connect.
  
-标题 标题               标题    +Heading      Heading                  Heading          
-|(1,1)对该单元垂直合并        |(1,3)+Row Col    this cell spans vertically Row Col        
-|(2,1)| :::                  |(2,3)+Row Col    | :::                        Row Col        
-|(3,1)| :::                  |(2,3)|+Row Col    | :::                        Row Col        |
  
-除跨行合并语法外,单元格中不能包含其他任何内容。+Apart from the rowspan syntax those cells should not contain anything else.
  
-  ^ 标题1 ^ 标题              标题  +  ^ Heading      Heading                  Heading          
-  |(1,1)对该单元垂直合并       |(1,3)+  | Row Col    this cell spans vertically Row Col        
-  |(2,1)| :::                  |(2,3)+  | Row Col    | :::                        Row Col        
-  |(3,1)| :::                  |(2,3)|+  | Row Col    | :::                        Row Col        |
  
 +You can align the table contents, too. Just add at least two whitespaces at the opposite end of your text: Add two spaces on the left to align right, two spaces on the right to align left and two spaces at least at both ends for centered text.
  
-您可以对齐表格的文字。只需在文本的相反方向添加至少两个空格:如果需要右对齐,在左边添加两个空格;反之,则在右边添加。在两边均添加空格可以实现居中对齐。 +^           Table with alignment           ^^^ 
- +        right   center    |left          
-^           有对齐的表格                   ^^^ +|left                  right   center    |
-       右对齐    居中     |左对齐        +
-|左对齐               右对齐    居中     |+
 | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx | | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-下面是源文件中的样子:+This is how it looks in the source:
  
-  ^           有对齐的表格                   ^^^ +  ^           Table with alignment           ^^^ 
-  |        右对齐    居中     |左对齐        +  |         right   center    |left          
-  |左对齐               右对齐    居中     |+  |left                  right   center    |
   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |   | xxxxxxxxxxxx | xxxxxxxxxxxx | xxxxxxxxxxxx |
  
-注意:不支持垂直对齐。+Note: Vertical alignment is not supported.
  
-===== 无格式化 =====+===== No Formatting =====
  
-如果您需要文本完全显示为它键入的样子(没有任何格式化),用''%%<nowiki>%%''标签包围这个区域,或更简单地用两个百分号''<nowiki>%%</nowiki>''+If you need to display text exactly like it is typed (without any formatting), enclose the area either with ''%%<nowiki>%%'' tags or even simpler, with double percent signs ''<nowiki>%%</nowiki>''.
  
 <nowiki> <nowiki>
-这是一些包含这样的地址:http://www.splitbrain.org,以及**格式**的文字,但它没有被解析。+This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.
 </nowiki> </nowiki>
-对于带有表情符号的%%;-)的//__这段__文本//%%也一样。+The same is true for %%//__this__ text// with a smiley ;-)%%.
  
   <nowiki>   <nowiki>
-  这是一些包含这样的地址:http://www.splitbrain.org,以及**格式**的文字,但它没有被解析。+  This is some text which contains addresses like this: http://www.splitbrain.org and **formatting**, but nothing is done with it.
   </nowiki>   </nowiki>
-  对于带有表情符号的%%;-)的//__这段__文本//%%也一样。+  The same is true for %%//__this__ text// with a smiley ;-)%%.
  
-===== 代码块 =====+===== Code Blocks =====
  
-您可以将代码块包含到文档中,可以通过缩进两个空格(像前面例子中所用的)或者使用标签''%%<code>%%''''%%<file>%%''+You can include code blocks into your documents by either indenting them by at least two spaces (like used for the previous examples) or by using the tags ''%%<code>%%'' or ''%%<file>%%''.
  
-  这是缩进了两个空格的文本。+  This is text is indented by two spaces.
  
 <code> <code>
-这是预格式化的代码,所有空格都被保留:像              <-这样+This is preformatted code all spaces are preserved: like              <-this
 </code> </code>
  
 <file> <file>
-这非常相似,但您可以用它来表明您引用了一个文件。+This is pretty much the same, but you could use it to show that you quoted a file.
 </file> </file>
  
-这些区块由下面的源码创建:+Those blocks were created by this source:
  
-    这是缩进了两个空格的文本。+    This is text is indented by two spaces.
  
   <code>   <code>
-  这是预格式化的代码,所有空格都被保留:像              <-这样+  This is preformatted code all spaces are preserved: like              <-this
   </code>   </code>
  
   <file>   <file>
-  这非常相似,但您可以用它来表明您引用了一个文件。+  This is pretty much the same, but you could use it to show that you quoted a file.
   </file>   </file>
-   
-==== 语法高亮 ==== 
  
-[[wiki:DokuWiki]] 可以高亮源代码,使它更容易阅读。它使用[[http://qbnz.com/highlighter/|GeSHi]]通用语法高亮器——因此支持任何GeSHi所支持的语言。语法和前面章节中代码与文件块的一样,但这时所用语言的名称被放入标签中。例如''<nowiki><code java></nowiki>''或者''<nowiki><file java></nowiki>''+==== Syntax Highlighting ==== 
 + 
 +[[wiki:DokuWiki]] can highlight sourcecode, which makes it easier to read. It uses the [[http://qbnz.com/highlighter/|GeSHi]] Generic Syntax Highlighter -- so any language supported by GeSHi is supported. The syntax uses the same code and file blocks described in the previous section, but this time the name of the language syntax to be highlighted is included inside the tag, e.g. ''<nowiki><code java></nowiki>'' or ''<nowiki><file java></nowiki>''.
  
 <code java> <code java>
行 656: 行 418:
 </code> </code>
  
-当前可以识别下列语言字符串://4csabapactionscript-french, actionscript, actionscript3, adaapacheapplescriptasmaspautohotkeyautoitavisynthawkbashbasic4glbfbibtexblitzbasicbnfboo, c, c_mac, caddclcadlispcfdgcfmcilclojurecmakecobolcppcpp-qtcsharpcsscuesheet, d, dcsdelphidiffdivdosdoteiffelemailerlangfofortranfreebasicfsharpgambas, genero, gdbglslgmlgnuplotgroovy, gettext, haskellhq9plushtmlidliniinnointercaliojava5javajavascriptjquerykixtartklonecklonecpplatexlisplocobasiclogtalklolcodelotusformulaslotusscriptlscriptlsl2luam68kmakemapbasicmatlabmirc, modula3, mmixmpasmmxmlmysqlnewlispnsisoberon2objcocaml-briefocamloobas, oracle8, oracle11pascal, perl, perl6perphp-briefphp, pike, pic16pixelbenderplsqlpovraypowerbuilderpowershellprogressprologpropertiesprovidexpurebasicpythonqbasicrailsrebolregrobotsrsplusrubysasscalaschemescilabsdlbasicsmalltalksmartysqlsystemverilogtclteratermtextthinbasictsqltyposcriptvbnetvbverilogvhdlvimvisualfoxprovisualprologwhitespace, winbatch, whoisxmlxorg_confxppz80//+The following language strings are currently recognized: //4cs 6502acme 6502kickass 6502tasm 68000devpac abap actionscript3 actionscript ada aimms algol68 apache applescript apt_sources arm asm asp asymptote autoconf autohotkey autoit avisynth awk bascomavr bash basic4gl batch bf biblatex bibtex blitzbasic bnf boo caddcl cadlisp ceylon cfdg cfm chaiscript chapel cil c_loadrunner clojure c_mac cmake cobol coffeescript c cpp cpp-qt cpp-winapi csharp css cuesheet c_winapi dart dcl dcpu16 dcs delphi diff div dos dot d ecmascript eiffel email epc e erlang euphoria ezt f1 falcon fo fortran freebasic freeswitch fsharp gambas gdb genero genie gettext glsl gml gnuplot go groovy gwbasic haskell haxe hicest hq9plus html html4strict html5 icon idl ini inno intercal io ispfpanel java5 java javascript jcl j jquery julia kixtart klonec klonecpp kotlin latex lb ldif lisp llvm locobasic logtalk lolcode lotusformulas lotusscript lscript lsl2 lua m68k magiksf make mapbasic mathematica matlab mercury metapost mirc mk-61 mmix modula2 modula3 mpasm mxml mysql nagios netrexx newlisp nginx nimrod nsis oberon2 objc objeck ocaml-brief ocaml octave oobas oorexx oracle11 oracle8 oxygene oz parasail parigp pascal pcre perl6 perl per pf phix php-brief php pic16 pike pixelbender pli plsql postgresql postscript povray powerbuilder powershell proftpd progress prolog properties providex purebasic pycon pys60 python qbasic qml q racket rails rbs rebol reg rexx robots roff rpmspec rsplus ruby rust sas sass scala scheme scilab scl sdlbasic smalltalk smarty spark sparql sql sshconfig standardml stonescript swift systemverilog tclegg tcl teraterm texgraph text thinbasic tsql twig typoscript unicon upc urbi uscript vala vbnet vb vbscript vedit verilog vhdl vim visualfoxpro visualprolog whitespace whois winbatch wolfram xbasic xml xojo xorg_conf xpp yaml z80 zxbasic//
  
-==== 可下载的代码块 ====+There are additional [[doku>syntax_highlighting|advanced options]] available for syntax highlighting, such as highlighting lines or adding line numbers.
  
-当您使用上面的''%%<code>%%''或''%%<file>%%''语法,您或许希望让显示的代码也可以被下载。您可以通过在语言代码后面指定一个文件名来实现:+==== Downloadable Code Blocks ====
  
 +When you use the ''%%<code>%%'' or ''%%<file>%%'' syntax as above, you might want to make the shown code available for download as well. You can do this by specifying a file name after language code like this:
  
 <code> <code>
行 673: 行 436:
 </file> </file>
  
-如果您不想要任何高亮,但想要一个可下载的文件,指定破折号(''-'')作为语言代码:''%%<code - myfile.foo>%%''+If you don't want any highlighting but want a downloadable file, specify a dash (''-''as the language code: ''%%<code - myfile.foo>%%''.
  
-===== 嵌入HTML和PHP =====+===== RSS/ATOM Feed Aggregation ===== 
 +[[DokuWiki]] can integrate data from external XML feeds. For parsing the XML feeds, [[http://simplepie.org/|SimplePie]] is used. All formats understood by SimplePie can be used in DokuWiki as well. You can influence the rendering by multiple additional space separated parameters:
  
-您可以嵌入原始HTML或PHP代码到文件中,通过使用''%%<html>%%''或''%%<php>%%''标签。(如果您需要包围区块级别的元素,使用大写字母的标签。)+^ Parameter  ^ Description ^ 
 +| any number | will be used as maximum number items to show, defaults to 8 | 
 +| reverse    | display the last items in the feed first | 
 +| author     | show item authors names | 
 +| date       | show item dates | 
 +| description| show the item description. All HTML tags will be stripped | 
 +| nosort     | do not sort the items in the feed | 
 +| //n//[dhm] | refresh period, where d=days, h=hours, m=minutes. (e.g. 12h = 12 hours). |
  
-HTML例子:+The refresh period defaults to 4 hours. Any value below 10 minutes will be treated as 10 minutes. [[wiki:DokuWiki]] will generally try to supply a cached version of a page, obviously this is inappropriate when the page contains dynamic external content. The parameter tells [[wiki:DokuWiki]] to re-render the page if it is more than //refresh period// since the page was last rendered.
  
-<code> +By default the feed will be sorted by date, newest items first. You can sort it by oldest first using the ''reverse'' parameter, or display the feed as is with ''nosort''.
-<html> +
-这是一些<span style="color:red;font-size:150%;">行内HTML</span> +
-</html> +
-<HTML> +
-<p style="border:2px dashed red;">这是一些区块HTML</p> +
-</HTML> +
-</code>+
  
-<html> +**Example:**
-这是一些<span style="color:red;font-size:150%;">行内HTML</span> +
-</html> +
-<HTML> +
-<p style="border:2px dashed red;">这是一些区块HTML</p> +
-</HTML>+
  
-PHP例子:+  {{rss>http://slashdot.org/index.rss 5 author date 1h }}
  
-<code> +{{rss>http://slashdot.org/index.rss 5 author date 1h }}
-<php> +
-echo 'PHP生成的标志:'; +
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP标志!" />'; +
-echo '(生成行内HTML)'; +
-</php> +
-<PHP> +
-echo '<table class="inline"><tr><td>同样,不过是区块级别的元素:</td>'; +
-echo '<td><img src="' $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP标志!" /></td>'; +
-echo '</tr></table>'; +
-</PHP> +
-</code>+
  
-<php> 
-echo 'PHP生成的标志:'; 
-echo '<img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP标志!" />'; 
-echo '(生成行内HTML)'; 
-</php> 
-<PHP> 
-echo '<table class="inline"><tr><td>同样,不过是区块级别的元素:</td>'; 
-echo '<td><img src="' . $_SERVER['PHP_SELF'] . '?=' . php_logo_guid() . '" alt="PHP标志!" /></td>'; 
-echo '</tr></table>'; 
-</PHP> 
  
-**请注意**:HTML和PHP嵌入默认在配置中被禁用。如果禁用,代码被显示出来而不是执行。+===== Control Macros =====
  
-===== RSS/ATOM Feed聚合=====+Some syntax influences how DokuWiki renders a page without creating any output it self. The following control macros are availble:
  
-[[DokuWiki]]能够从外部的XML feed中聚合数据。为了解析这些XML feed,使用了[[http://simplepie.org/|SimplePie]]。所有的能够被SimplePie理解的格式都可以在DokuWiki中使用。您可以通过多个参数来改变渲染,参数之间用空格隔开:+^ Macro           ^ Description | 
 +| %%~~NOTOC~~%%   | If this macro is found on the page, no table of contents will be created | 
 +| %%~~NOCACHE~~%% | DokuWiki caches all output by defaultSometimes this might not be wanted (eg. when the %%<php>%% syntax above is used), adding this macro will force DokuWiki to rerender a page on every call |
  
-^ 参数  ^ 描述 ^ +===== Syntax Plugins =====
-| any number | 最多显示多少内容项;默认是8 | +
-| reverse    | 将最新条目显示在前面 | +
-| author     | 显示条目的作者名 | +
-| date       | 显示条目日期 | +
-| description| 显示条目的描述;如果[[doku>config:htmlok|HTML]]被禁用,所有的标签将被过滤掉 | +
-| //n//[dhm] | 刷新周期,其中,d=天数,h=小时数,m=分。例如,12h=12个小时。 | +
- +
-刷新周期默认是4小时。小于或者等于10分钟均视为10分钟。[[wiki:DokuWiki]]通常会提供页面的缓存版,显然,这种做法不适用于包含动态外部内容的页面。上面的参数告诉[[wiki:DokuWiki]],如果离上次重新解释的时间已经超出了//刷新周期//,则重新解释页面。 +
- +
-**范例:** +
- +
-  {{rss>http://slashdot.org/index.rss 5 author date 1h }} +
- +
-{{rss>http://slashdot.org/index.rss 5 author date 1h }}+
  
-===== 控制宏 =====+DokuWiki's syntax can be extended by [[doku>plugins|Plugins]]. How the installed plugins are used is described on their appropriate description pages. The following syntax plugins are available in this particular DokuWiki installation:
  
-一些语法会影响DokuWiki对页面的解释,而自身不输出任何内容。可用的控制宏如下:+~~INFO:syntaxplugins~~
  
-^ 宏           ^ 描述| 
-| %%~~NOTOC~~%%   | 如果页面出现该控制宏,将不会创建目录| 
-| %%~~NOCACHE~~%% | DokuWiki默认会缓存所有的输出。有时并不希望这样(例如,当使用了上面的%%<php>%%语法),增加这个控制宏将强制DokuWiki在每次访问时重新解析页面| 
-===== 语法插件 ===== 
  • /var/services/web/dokuwiki/data/attic/wiki/syntax.1438592851.txt.gz
  • 最后更改: 2024/05/19 20:55
  • (外部编辑)