青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

posts - 319, comments - 22, trackbacks - 0, articles - 11
  C++博客 :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

WikiSyntax (來源Google)

Posted on 2011-11-09 06:52 RTY 閱讀(558) 評論(0)  編輯 收藏 引用 所屬分類: 編程常識轉載隨筆需要注意的
The reference to the wiki syntax for Google Code projects
Restrict-AddWikiComment-Commit
Updated Aug 17, 2011 by dbentley@google.com

Wiki Syntax

Introduction

Each wiki page is stored in a .wiki file under the /wiki directory in a project's repository. Each file's name is the same as the wiki page name. And, each wiki file consists of optional pragma lines followed by the content of the page.

Pragmas

Optional pragma lines provide metadata about the page and how it should be displayed. These lines are only processed if they appear at the top of the file. Each pragma line begins with a pound-sign (#) and the pragma name, followed by a value.

Pragma Value
#summary One-line summary of the page
#labels Comma-separated list of labels (filled in automatically via the web UI)
#sidebar See Side navigation

Wiki-style markup

Paragraphs

Use one or more blank lines to separate paragraphs.

Typeface

Name/Sample Markup
italic _italic_
bold *bold*
code `code`
code {{{code}}}
superscript ^super^script
subscript ,,sub,,script
strikeout ~~strikeout~~

You can mix these typefaces in some ways:

Markup Result
_*bold* in italics_ bold in italics
*_italics_ in bold* italics in bold
*~~strike~~ works too* strike works too
~~as well as _this_ way round~~ as well as this way round

Code

If you have a multiline code block that you want to display verbatim, use the multiline code delimiter:

{{{
def fib(n):
  if n == 0 or n == 1:
    return n
  else:
    # This recursion is not good for large numbers.
    return fib(n-1) + fib(n-2)
}}}

Which results in:

def fib(n):
  if n == 0 or n == 1:
    return n
  else:
    # This recursion is not good for large numbers.
    return fib(n-1) + fib(n-2)

For more control over the syntax higlighting, the <code> tag allows you to specify a file extension:

<code language="xml">
<hello target="world"/>
</code>

To disable highlighting entirely, use the <pre> tag.

Headings

= Heading =
== Subheading ==
=== Level 3 ===
==== Level 4 ====
===== Level 5 =====
====== Level 6 ======

Dividers

Four or more dashes on a line by themselves results in a horizontal rule.

Lists

Google Code wikis support both bulleted and numbered lists. A list must be indented at least one space to be recognized as such. You can also nest lists one within the other by appropriate use of indenting:

The following is:
  * A list
  * Of bulleted items
    # This is a numbered sublist
    # Which is done by indenting further
  * And back to the main bulleted list

 * This is also a list
 * With a single leading space
 * Notice that it is rendered
  # At the same levels
  # As the above lists.
 * Despite the different indentation levels.

The following is:

  • A list
  • Of bulleted items
    1. This is a numbered sublist
    2. Which is done by indenting further
  • And back to the main bulleted list
  • This is also a list
  • With a single leading space
  • Notice that it is rendered
    1. At the same levels
    2. As the above lists.
  • Despite the different indentation levels.

Quoting

Block quotes place emphasis on a particular extract of text in your page. Block quotes are created by indenting a paragraph by at least one space:

Someone once said:

  This sentence will be quoted in the future as the canonical example
  of a quote that is so important that it should be visually separate
  from the rest of the text in which it appears.

Someone once said:

This sentence will be quoted in the future as the canonical example of a quote that is so important that it should be visually separate from the rest of the text in which it appears.

Links

Links are central to the wiki principle, as they create the web of content. Google Code wiki permits both internal (within the wiki) and external links, and in some cases automatically creates a link when it recognizes either a WikiWord or an URL.

Internal wiki links

Internal links within a wiki are created using the syntax below. If you add a wiki link to a page that does not exist, the link will appear with a LittleLink? to project committers and owners. Clicking that link will take you to the page creation form where you can enter content for that page.

If you are not logged in, wiki links that point to non-existent pages will appear as plain text, without the link to the page creation form. When you create the target page, the link will become a normal hyperlink for all viewers of the page.

WikiSyntax is identified and linked automatically

Wikipage is not identified, so if you have a page named [Wikipage] you
need to link it explicitly.

If the WikiSyntax page is actually about reindeers, you can provide a
description, so that people know you are actually linking to a page on
[WikiSyntax reindeer flotillas].

If you want to mention !WikiSyntax without it being autolinked, use an
exclamation mark to prevent linking.

WikiSyntax is identified and linked automatically

Wikipage is not identified, so if you have a page named Wikipage you need to link it explicitly.

If the WikiSyntax page is actually about reindeers, you can provide a description, so that people know you are actually linking to a page on reindeer flotillas.

If you want to mention WikiSyntax without it being autolinked, use an exclamation mark to prevent linking.

Links to anchors within a page

Each heading defines a HTML anchor with the same name as the heading, but with spaces replaced by underscores. You can create a link to a specific heading on a page like this:

[WikiSyntax#Wiki-style_markup]

And it will render as: WikiSyntax#Wiki-style_markup.

Links to issues and revisions

You can easily link to issues and revisions using the following syntax.

  • issue 123 will be autolinked to issue number 123 in the current project. You can include a # or not. If the issue has been closed, the link will appear as a cross-out rather than an underline. Hovering your mouse over such a link shows the issue summary.
  • issue PROJECTNAME:122 will be autolinked to that issue number in the specified project. This is useful when your project depends on work being done in related projects.
  • r123 will be autolinked to the revision detail page for that revision in the current project.

There is currently no way to disable this type of autolinking. See issue 996.

For example: Please add a comment on issue 123 rather than adding more review comments to r456. 

Renders as: Please add a comment on  issue 123  rather than adding more review comments to r456.

Links to external pages

You can of course link to external pages from your own wiki pages, using a syntax similar to that for internal links:

Plain URLs such as http://www.google.com/ or ftp://ftp.kernel.org/ are
automatically made into links.

You can also provide some descriptive text. For example, the following
link points to the [http://www.google.com Google home page].

If your link points to an image, it will get inserted as an image tag
into the page:

http://code.google.com/images/code_sm.png

You can also make the image into a link, by setting the image URL as
the description of the URL you want to link:

[http://code.google.com/ http://code.google.com/images/code_sm.png]

Plain URLs such as http://www.google.com/ or ftp://ftp.kernel.org/ are automatically made into links.

You can also provide some descriptive text. For example, the following link points to the Google home page.

You can also make the image into a link, by setting the image URL as the description of the URL you want to link:

[http://code.google.com/ http://code.google.com/images/code_sm.png]

Links to images

If your link points to an image (that is, if it ends in .png, .gif, .jpg or .jpeg), it will get inserted as an image into the page:

http://code.google.com/images/code_sm.png

If the image is produced by a server-side script, you may need to add a nonsense query string parameter to the end so that the URL ends with a supported image filename extension.

http://chart.apis.google.com/chart?chs=200x125&chd=t:48.14,33.79,19.77|83.18,18.73,12.04&cht=bvg&nonsense=something_that_ends_with.png

Tables

Tables are created by entering the content of each cell separated by || delimiters. You can insert other inline wiki syntax in table cells, including typeface formatting and links.

|| *Year* || *Temperature (low)* || *Temperature (high)* ||
|| 1900 || -10 || 25 ||
|| 1910 || -15 || 30 ||
|| 1920 || -10 || 32 ||
|| 1930 || _N/A_ || _N/A_ ||
|| 1940 || -2 || 40 ||
Year Temperature (low) Temperature (high)
1900 -10 25
1910 -15 30
1920 -10 32
1930 N/A N/A
1940 -2 40

HTML support

To aid in the presentation of a wiki page there is some support for HTML. HTML tags are only supported in wiki pages, not in page comments.

HTML syntax can be used in conjunction with wiki syntax, but it is recommended against doing so where possible.

The following HTML tags and attributes are currently supported:

HTML TagSupported Attributes
atitle dir lang href
btitle dir lang
brtitle dir lang
blockquotetitle dir lang
codetitle dir lang language [1]
ddtitle dir lang
divtitle dir lang
dltitle dir lang
dttitle dir lang
emtitle dir lang
fonttitle dir lang face size color
h1title dir lang
h2title dir lang
h3title dir lang
h4title dir lang
h5title dir lang
ititle dir lang
imgtitle dir lang src alt border height width align
lititle dir lang
oltitle dir lang type start
ptitle dir lang align
pretitle dir lang
qtitle dir lang
stitle dir lang
spantitle dir lang
striketitle dir lang
strongtitle dir lang
subtitle dir lang
suptitle dir lang
tabletitle dir lang align valign cellspacing cellpadding border width height
tbodytitle dir lang align valign cellspacing cellpadding border width height
tdtitle dir lang align valign cellspacing cellpadding border width height
tfoottitle dir lang align valign cellspacing cellpadding border width height
thtitle dir lang align valign cellspacing cellpadding border width height
theadtitle dir lang align valign cellspacing cellpadding border width height colspan rowspan
trtitle dir lang align valign cellspacing cellpadding border width height colspan rowspan
tttitle dir lang
utitle dir lang
ultitle dir lang type
vartitle dir lang

[1] The language attribute of the code tag is the file extension of the language used in the code block. It is used as a hint for the syntax highlighter.

Escaping HTML Tags

When you want to display html tags directly on your wiki page (as opposed to rendered), you will need to escape each HTML tag.

HTML tags can be escaped as shown in the table below:

MarkupResult
`<hr>`<hr>
{{{<hr>}}}<hr>



Comments

The wiki supports embedded comments to help explain the contents of a wiki page. Anything inside the comment block is removed from the rendered page, but is visible when editing or viewing the source for that page.

<wiki:comment>
This text will be removed from the rendered page.
</wiki:comment>

+1 Button

Use <g:plusone></g:plusone> to add a +1 button to the page. Example:

<g:plusone size="medium"></g:plusone>

The count, size, and href parameters are supported; see http://code.google.com/apis/+1button/ for documentation.

Gadgets

You can embed Gadgets on your wiki pages with the following syntax:

<wiki:gadget url="http://example.com/gadget.xml" height="200" border="0" /> 

Valid attributes are:

  • url: the URL of the gadget
  • width: the width of the gadget
  • height: the height of the gadget
  • title: a title to display above the gadget
  • border: "0" or "1", whether to draw a border around the gadget
  • up_*: Gadget user preference parameters
  • caja: "0" or "1", whether to use Caja to render the gadget. Caja helps protect users from malicious or accidental errors in third party gadgets.

WorkingWithGoogleGadgets describes how to create gadgets for Google Code. It also provides a few helpful suggestions that can make it easier to publish gadgets and to integrate with other Google products such as iGoogle.

InterestingDeveloperGadgets shows some sample gadgets you may want to include on your project pages.

Videos

You can embed videos with the following syntax:

<wiki:video url="http://www.youtube.com/watch?v=3LkNlTNHZzE"/>

Valid attributes are:

  • url: the URL of the video
  • width: the width of the embedded video
  • height: the height of the embedded video

Right now we support videos from Youtube and Google Video, but other containers can be added to our open source gadgets project.

Navigation

Table of Contents

An inline table of contents can be generated from page headers on a wiki page. Add the following syntax to a page in the location the table of contents should be displayed:

<wiki:toc max_depth="1" />

Valid attributes are:

  • max_depth: the maximum header depth to display in the table of contents

Side navigation

You can specify the sidebar for a wiki page by selecting another wiki page that defines your side navigation. The doctype project uses the sidebar extensively across its wiki.

One way of adding a sidebar is by setting the #sidebar pragma, as shown below. Alternatively, the sidebar pragma can be left blank if no side navigation is desired.

#sidebar TableOfContents

The side navigation that is defined should be in the format of a simple list, as shown below.

 * [Articles HOWTO articles]
    * [ArticlesXSS Web security]
    * [ArticlesDom DOM manipulation]
    * [ArticlesStyle CSS and style]
    * [ArticlesTips Tips and tricks]
  * [DOMReference DOM reference]
  * [HTMLElements HTML reference]
  * [CSSReference CSS reference]

A default sidebar page can also be specified for all wiki pages by project owners through the Wiki settings in the Administer tab. If a #sidebar pragma is also specified, it will take precedence on the page.

Localizing Wiki Content

Along with the default language for the wiki, which can be set through the Wiki settings in the Administer tab, additional languages are also supported. If more than one language is available, based on a user's language preference (e.g. browser language), the wiki will try to serve the page for the appropriate language. If no wiki page exists for that language, it will fall back to the default language. Comments, however, are shared amongst all translations of a wiki page.

New translations for a page cannot be added through the web interface and have to be added through the Subversion repository.

To add a translation of a page, first checkout the wiki from Subversion:

svn checkout https://yourproject.googlecode.com/svn/wiki/ yourdirectory -username yourusername

Then create a new directory under /wiki/ using the two letter ISO-639 code as the name of that directory. Place all translated files in the new directory and submit those changes to the Subversion repository.

The following is an example of a valid wiki directory:

wiki/
   ja/
      ProjectHistory.wiki
      StyleGuide.wiki
   zh-Hans/
      ProjectHistory.wiki
      StyleGuide.wiki
   zh-Hant/
      ProjectHistory.wiki
      StyleGuide.wiki
   ProjectHistory.wiki
   StyleGuide.wiki

Once the files been be submitted to the project's subversion repository, they can now be edited through the wiki's web editor. The process is the same for Mercurial or Git projects, except that the wiki lives in the root directory (not wiki/) of https://wiki.yourproject.googlecode.com/hg/ or https://wiki.yourproject.googlecode.com/git/.

Note: The wiki accepts a subset of ISO-639 two letter language codes, where a few of the codes (such as zh_Hans) contain locale-specific codes. Such locale-specific codes should use a hyphen (zh-Hans) separator. A few example language codes have been specified in the table below.

Language (Locale) Directory Name
Arabic ar
Bulgarian bg
Chinese (China) zh-Hans
Chinese (Taiwan) zh-Hant
Croatian hr
Czech cs
Danish da
Dutch nl
English (United Kingdom) en-GB
English (United States) en-US
Finnish fi
French fr
German de
Greek el
Hebrew he
Hungarian hu
Italian it
Japanese ja
Korean ko
Norwegian no
Polish pl
Portuguese (Brazil) pt-BR
Romanian ro
Russian ru
Slovak sk
Spanish es
Swedish sv
Turkish tr

The content on this page created by Google is licensed under the Creative Commons Attribution 3.0 License. User-generated content is not included in this license.

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            久久综合狠狠综合久久综合88| 亚洲香蕉视频| 欧美粗暴jizz性欧美20| 91久久中文字幕| 亚洲日本欧美日韩高观看| 欧美日本在线| 欧美一区在线看| 久久久亚洲高清| 亚洲精品免费网站| 亚洲一二三级电影| 国产亚洲视频在线| 欧美电影在线观看| 欧美午夜精品| 久久久伊人欧美| 欧美激情一区二区久久久| 亚洲一区二区三区高清不卡| 亚洲专区在线视频| 亚洲成人在线免费| 一区二区三区日韩在线观看| 国产视频在线一区二区| 欧美国产一区二区在线观看| 欧美视频第二页| 美女尤物久久精品| 国产精品国产馆在线真实露脸| 久久精品一区二区| 欧美韩日高清| 久久精品一区二区国产| 欧美日韩精品| 免费观看日韩av| 国产精品女人网站| 亚洲激情视频在线| 国内久久视频| 亚洲一区二三| 日韩亚洲一区二区| 久久夜色精品国产亚洲aⅴ| 亚洲一区二区三区视频| 欧美成人精品1314www| 久久aⅴ国产欧美74aaa| 欧美日韩国产综合新一区| 美脚丝袜一区二区三区在线观看| 国产精品白丝av嫩草影院| 欧美护士18xxxxhd| 国语自产偷拍精品视频偷| 亚洲视频香蕉人妖| 在线亚洲美日韩| 欧美高清不卡| 蜜臀va亚洲va欧美va天堂| 国产欧美一区二区三区久久| 亚洲精品乱码久久久久久久久| 国产一区二区三区四区在线观看| 亚洲美女淫视频| 日韩午夜电影av| 美日韩精品视频免费看| 老鸭窝亚洲一区二区三区| 国产精品乱码一区二区三区| 99亚洲一区二区| 99亚洲视频| 欧美日韩精品免费| 亚洲国产天堂久久综合网| 亚洲国产精品久久精品怡红院| 欧美诱惑福利视频| 国产手机视频精品| 新狼窝色av性久久久久久| 性色一区二区| 国产日韩欧美在线观看| 欧美亚洲免费在线| 欧美伊人久久久久久久久影院| 国产精品久久久久久av福利软件 | 久久综合久色欧美综合狠狠| 国产精品欧美久久| 亚洲一区二区三区精品视频| 亚洲欧美欧美一区二区三区| 国产精品成人免费| 亚洲欧美久久久久一区二区三区| 欧美一区二区视频在线观看| 国产欧美日韩视频| 久久国产精品久久久久久电车| 久久久久国产一区二区| 国产在线日韩| 蘑菇福利视频一区播放| 亚洲人成在线免费观看| 亚洲永久精品大片| 国产亚洲一区二区精品| 久久综合九色欧美综合狠狠| 欧美大香线蕉线伊人久久国产精品| 亚洲激情在线| 欧美日韩一区二区三区高清| 亚洲天堂网在线观看| 久久久久久久激情视频| 亚洲激情视频在线观看| 欧美色中文字幕| 久久爱91午夜羞羞| 亚洲欧洲精品一区二区| 欧美亚洲免费高清在线观看| 在线成人免费观看| 欧美体内she精视频在线观看| 性欧美激情精品| 亚洲日本一区二区三区| 久久激五月天综合精品| 日韩午夜在线电影| 国产噜噜噜噜噜久久久久久久久| 美女精品国产| 亚洲欧美日韩中文在线制服| 牛人盗摄一区二区三区视频| 亚洲一级电影| 亚洲高清一区二区三区| 国产精品家庭影院| 欧美11—12娇小xxxx| 午夜精品成人在线视频| 亚洲国产欧美在线| 久久人人爽人人爽爽久久| 在线视频精品一| 亚洲第一天堂av| 国产欧美日韩视频| 欧美日韩日日夜夜| 美国十次成人| 欧美中在线观看| 亚洲自拍偷拍色片视频| 亚洲国产一区在线观看| 久久人人97超碰国产公开结果 | 欧美一区二区三区精品| 日韩视频欧美视频| 亚洲国产老妈| 一区二区自拍| 红桃视频欧美| 国产日韩欧美二区| 欧美一级专区| 亚洲欧美国产精品桃花| 在线综合+亚洲+欧美中文字幕| 亚洲国产高潮在线观看| 欧美wwwwww| 麻豆久久久9性大片| 久久久噜噜噜久久人人看| 性做久久久久久| 亚洲男女毛片无遮挡| 中国亚洲黄色| 亚洲视频1区2区| 一区二区三区高清| 一本色道久久综合亚洲精品不卡| 亚洲精选久久| 一本久久综合| 亚洲图色在线| 亚洲欧美国产精品va在线观看| 亚洲新中文字幕| 日韩亚洲欧美一区二区三区| 日韩视频在线播放| 在线亚洲成人| 性色av香蕉一区二区| 欧美一区二区三区四区在线观看地址 | 国产精品女人久久久久久| 国产精品久久久久毛片软件| 国产精品一国产精品k频道56| 国产欧美精品| 激情小说另类小说亚洲欧美| 激情亚洲网站| 日韩视频一区二区在线观看| 一区二区三区四区五区视频| 亚洲女优在线| 久久精品亚洲精品国产欧美kt∨| 久久夜色精品国产亚洲aⅴ| 欧美成人高清| 日韩视频一区二区三区| 亚洲一区二区三区免费观看| 欧美一区二区三区免费观看视频| 久久久天天操| 欧美色图五月天| 国外成人网址| 一区二区三区波多野结衣在线观看| 亚洲中午字幕| 免费观看国产成人| 日韩视频免费观看高清在线视频| 午夜一区二区三区在线观看| 麻豆精品在线观看| 欧美午夜国产| 亚洲第一区色| 午夜亚洲性色视频| 女人香蕉久久**毛片精品| 99在线热播精品免费99热| 欧美一区二区福利在线| 欧美精品国产一区| 国产日韩在线一区| 亚洲伦理精品| 久久精品国产在热久久| 亚洲激情国产| 久久久久国产精品一区二区| 欧美日韩一区二区三区免费看| 国产主播一区二区三区| 这里是久久伊人| 欧美第一黄色网| 香蕉久久久久久久av网站| 欧美激情一区二区三区| 国内在线观看一区二区三区| 亚洲一区在线直播| 亚洲国产成人在线视频| 欧美一级电影久久| 欧美日韩亚洲综合在线| 最新中文字幕亚洲| 久久人人97超碰人人澡爱香蕉| 亚洲一区二区在线观看视频| 欧美精品在线一区二区|