WordPress:Sandbox
Demo Sandbox[ ]
Demo Sandbox[ ]
<!—在这里发表评论,用来在网页上发表评论,便于以后编辑-->
If you are a new user, please take note of the 6 "Codex tools" links in the top right corner of this page. On your left and right are WordPress navigation links. The middle column is where your changes will show. Enjoy!
如果你是个新用户,请注意这个页面的有顶拐角的6 "Codex 工具"。在你的左边和右边是WordPress导航链接。你在中间的栏中显示更改。玩的开心!
The "Sandbox" is used to Help Leave Examples in a page for future editors. Also check out Codex Styles, Formatting, and Layout for more tips on the structure and presentation of the Codex.
"Sandbox"是用来Help Leave Examples in a page for future editors。同时查看Codex 样式,格式和布局查找更多关于Codex结构和样式的小贴士。
ANNOUNCEMENT: Guidelines Updated as of March 7模板:Newpage
声明: 从3月7日开始,就更新了指南模板:Newpage
TEST TEST TEST------------
测试 测试 测试------------
Viva La Sasau
<!—新的部分 --> Viva La Sasau
AFHAM[ ]
AFHAM[ ]
food supplier fabulous
feel the taste and feel good
食品供应商难以置信的
品尝感觉一下
try the best food and feel the revelations of tremendous recipe spiced and hardened.
品尝最好的美食,探查优异的食谱怎样调出美食的。
place order now and get 20 % discount today......
现在订购,今天能够得到20%的折扣......
feel the spices and get rid of your stress through the taste..
品尝美食,缓解工作生活压力。..
choice is yours and order now
由你决定,现在订购吧
<!—公共饮食业 -->
Subsection 1.1.2.A
New section[ ]
hello
子部分1.1.2.A[ ]
新部分[ ]
你好
Headline text[ ]
bar foo[ ]
大字标题文本[ ]
bar foo[ ]
- Donec non orci eleifend enim luctus sagittis.
- Donec venenatis adipiscing odio.
- Maecenas placerat.
- Curabitur bibendum tristique sem.
- Etiam lobortis posuere risus.
- Nunc interdum tortor sit amet elit.
- Integer nec lectus nec ante sagittis accumsan.
- Praesent convallis.
<!—新的子部分 -->
IsaacSchlueter 16:11, 13 Sep 2005 (GMT)
IsaacSchlueter 2005年9月13日,16:11 (格林尼治标准时间)
Subsection 1.1.3[ ]
子部分 1.1.3[ ]
<!—自由地处理这个文本-->
Aenean ultricies[ ]
Aenean ultricies neque. Quisque sapien. Pellentesque nulla metus, aliquam id, viverra a, ultricies in, risus. In hac habitasse platea dictumst. Donec eget turpis. Aenean ut lectus. Nam sed enim sit amet lacus sodales sagittis. Morbi nec sem. Mauris elit. Curabitur ullamcorper, ligula in luctus blandit, elit mi posuere nisl, et tincidunt ligula lorem nec ante.
Vivamus accumsan justo a risus. Aliquam ac orci ut quam luctus dictum. Nunc neque nibh, dapibus at, accumsan vitae, consectetuer eu, justo. Integer dignissim tempor diam. Cras nibh wisi, commodo sit amet, scelerisque sed, aliquet quis, neque. Curabitur blandit lacus vitae purus pellentesque blandit. Proin quis pede. Phasellus vestibulum. Integer fermentum, lacus vitae dictum sollicitudin, urna leo eleifend leo, ut congue enim tellus sed arcu. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed lorem.
Aliquam sem urna, tincidunt nec, molestie quis, viverra vel, leo. Nam eleifend. Fusce volutpat venenatis neque. Sed sodales, arcu eu sodales viverra, ligula turpis consequat sem, et gravida risus lorem id dui. Duis pede. In vulputate magna vel eros. Ut dictum leo et tellus. Praesent volutpat. Sed quam. Sed luctus lacinia dolor. Pellentesque vel urna id est ullamcorper venenatis. Sed posuere vestibulum libero. Vestibulum tincidunt elementum nunc. Integer scelerisque mattis lacus. Suspendisse auctor elit id felis. Curabitur placerat magna quis elit. Donec auctor nonummy arcu. Vivamus porttitor tincidunt mauris. Ut at massa eget libero bibendum nonummy.
Lorem ipsum text generated at http://www.lipsum.com/feed/html
Aenean ultricies[ ]
Aenean ultricies neque. Quisque sapien. Pellentesque nulla metus, aliquam id, viverra a, ultricies in, risus. In hac habitasse platea dictumst. Donec eget turpis. Aenean ut lectus. Nam sed enim sit amet lacus sodales sagittis. Morbi nec sem. Mauris elit. Curabitur ullamcorper, ligula in luctus blandit, elit mi posuere nisl, et tincidunt ligula lorem nec ante.
Vivamus accumsan justo a risus. Aliquam ac orci ut quam luctus dictum. Nunc neque nibh, dapibus at, accumsan vitae, consectetuer eu, justo. Integer dignissim tempor diam. Cras nibh wisi, commodo sit amet, scelerisque sed, aliquet quis, neque. Curabitur blandit lacus vitae purus pellentesque blandit. Proin quis pede. Phasellus vestibulum. Integer fermentum, lacus vitae dictum sollicitudin, urna leo eleifend leo, ut congue enim tellus sed arcu. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Sed lorem.
Aliquam sem urna, tincidunt nec, molestie quis, viverra vel, leo. Nam eleifend. Fusce volutpat venenatis neque. Sed sodales, arcu eu sodales viverra, ligula turpis consequat sem, et gravida risus lorem id dui. Duis pede. In vulputate magna vel eros. Ut dictum leo et tellus. Praesent volutpat. Sed quam. Sed luctus lacinia dolor. Pellentesque vel urna id est ullamcorper venenatis. Sed posuere vestibulum libero. Vestibulum tincidunt elementum nunc. Integer scelerisque mattis lacus. Suspendisse auctor elit id felis. Curabitur placerat magna quis elit. Donec auctor nonummy arcu. Vivamus porttitor tincidunt mauris. Ut at massa eget libero bibendum nonummy.
Lorem ipsum 文本在http://www.lipsum.com/feed/html创建
<!—新的子部分-->
I need to test the signature ~~ Jim Westergren 11:26, 28 Oct 2006 (GMT) Correct?
我需要测试署名~~ Jim Westergren2006年10月28日, 11:26 (格林尼治标准时间) 正确吗?
Subsection 1.1.4[ ]
子部分1.1.4[ ]
<!—自由处理这个文本 -->
Code Example[ ]
代码例子[ ]
This is what it looks like when using pre tags:
这是使用pre标签的时候,代码的样式:
<?php echo "Hello, world!\n";?>
<?php echo "你好, 世界!\n";?>
This is what it looks like when using a space before a line of code to autoformat the <pre> tag:
在一行代码之前使用空格为<pre>标签自动设置格式的时候,这个标签的形式:
<?php echo "Hello, world!\n";?>
<?php echo "你好, 世界!\n";?>
This is what it looks like in code tags:
这是代码在code标签中的形式:
<?php echo "Hello, world!\n";?>
<?php echo "你好, 世界!\n";?>
Notice that the use of <code>
does not put the code example in its own box but continues the sentence, even if there are single line breaks. The Codex requires a double line break to signify a "space" line break.
注意,使用code><code>并不能将代码例子放入框中,即使有单个的行分隔符,句子仍然会继续。Codex需要两个行分隔符来表示用"空格" 行分隔符。
When using code in text like index.php, if you use the <code>
tag, it makes a blue background behind the text that gives it a cluttered look and makes the code a little harder to see.
If you put the code in a <tt> tag, the blue background is gone and the type is monospaced and "code-like" and much easier to read and cleaner. Documentation in the WordPress Codex tends to use a lot of code within the text, so we prefer the use of <tt> over <code>
for a cleaner look.
在文本,如index.php中使用代码的时候,如果你使用<code>
标签,这个标签会使得文本出现蓝色背景,使得文本看起来混乱,更不容易看到代码。
如果你将代码放入<tt>标签,蓝色背景消失了,而且类型是monospaced 和"类似代码"的,更容易阅读,也更清晰。WordPress Codex中的文件似乎在文本内使用了许多代码,因此比起<code>
,我们更想要使用<tt>,以得到更清晰的外观。
Another section[ ]
另一个部分[ ]
Ah, so this is how sections work! (by adding ='s)
啊,这就是这个部分的运行方式!(通过添加='s)
System.err.prinln("Fatal error!");
System.err.prinln("致命错误!");
<!—新部分 -->
Stan's section[ ]
Stan的部分[ ]
here's yet another section...
..how about a format nullifier between sections?
下面是另一个部分...
..how about a format nullifier between sections?
Other Design Elements to Test[ ]
需要测试的其它设计元素[ ]
Link Examples[ ]
链接例子[ ]
To NOT show a link in an example which uses a link use <nowiki>:
不要显示例子中的链接,例子使用链接用法<nowiki>:
<a title="example" href="<nowiki>http://example.com/</nowiki>">
<a 标题="例子" href="<nowiki>http://example.com/</nowiki>">
To create an example link, link to the heading in which that example is being used. If you are in an article called "Using WordPress" and showing an example under the heading "Link Examples", then the example links to the categories would be:
要创建例子链接,链接到使用例子的标头。如果你正在阅读"使用 WordPress",而且显示标头"链接例子"下面的例子,那么类别的例子链接是:
* [[WordPress:#Link_Examples|My Life Stories]]
* [[WordPress:#Link_Examples|My Family]]
* [[WordPress:#Link_Examples|Sharing]]
* [[WordPress:#Link_Examples|Facts and Fiction]]
* [[WordPress:#Link_Examples|我的生活故事]]
* [[WordPress:#Link_Examples|我的家庭]]
* [[WordPress:#Link_Examples|分享]]
* [[WordPress:#Link_Examples|现实和虚幻]]
And the results would look like this, using the demonstration code from above (click it and see the effect):
使用上述的示范代码(点击代码,查看结果),结果看起来像:
- [[WordPress:#Link_Examples|My Life Stories]]
- [[WordPress:#Link_Examples|My Family]]
- [[WordPress:#Link_Examples|Sharing]]
- [[WordPress:#Link_Examples|Facts and Fiction]]
- [[WordPress:#Link_Examples|我的生活故事]]
- [[WordPress:#Link_Examples|我的家庭]]
- [[WordPress:#Link_Examples|分享]]
- [[WordPress:#Link_Examples|事实和虚幻]]
To create the look of an example link, without having it actually behave like a link, you can use the span tag combined with underline to style a fake link:
要设置例子链接的外观,使得其不显示为链接,你可以将span标签与下划线用在一起,创建伪链接:
See <span style="color:blue"><u>this article</u></span> for more information
See <span style="color:blue"><u>这篇文章</u></span> 更多信息
See this article for more information.
See 这篇文章更多信息。
Images Within the Codex[ ]
To use images within the Codex:
Codex内的图像[ ]
使用Codex内的图像:
[[WordPress:Image:Kubrick_Single.jpg|right|thumbnail|WordPress Default Theme]]
right|thumbnail|WordPress Default Theme - Single Post LookWill create the image floated to the right in a thumbnail with a caption.
[[WordPress:Image:Kubrick_Single.jpg|right|thumbnail|WordPress 默认主题]]
right|thumbnail|WordPress 默认主题 – 单篇文章外观会创建带有标题的缩略图,悬浮在右边。
Realistic CSS[ ]
Realistic CSS[ ]
When a realistic example is required to show what the usage would look like in a post, use the following as an example - modifying it as needed to change the padding, width, and colors. In general, avoid using font-family references, relying on the default fonts with the Codex in order to avoid font issues with various browsers and computer systems.
当需要真正的例子显示这个用法在文章中产生的效果的时候,将下面的内容作为例子使用-更改这个例子,因为需要更改padding,宽度,和颜色。一般来说,避免使用字体集,要使用Codex中的默认字体,这样可以避免不同的浏览器和电脑系统产生的字体问题。
Box in which to provide demonstration of what a code looks like when used in the "real world". I can use spans to style sections and other CSS inline styles to customize the look like for this list:
框中显示了"现实生活"中代码看起来像是怎样的。我可以使用 spans设计部分和其它的CSS内联样式来自定义这个列表的外观:
- A List Item in Small Caps
- 用小型大写字母所写的列表内容
- List Item in Italic and Bold
- 使用斜体和粗体列出内容
- Change Size and Color
- 更改大小和颜色
There are limits, like you can't recreate a hover, but for the most part, all inline CSS styles can be used on the Codex to recreate a realistic example of what the usage will generate.
这些是限制,就如你不能够重新创建个hover,但是从整体来看,可以在Codex上使用所有的内联CSS样式,重新创建现实例子中的用法。
And the code is this:
代码是:
<div style="border:1px solid blue; width:50%; margin: 20px; padding:20px">
<pre><div style="border:1px solid blue; width:50%; margin: 20px; padding:20px">
Box in which to provide demonstration of what a code
looks like when used in the "real world". I can use
<span style="color:red; font-weight:bold">spans to
style sections</span> and other CSS inline styles
to customize the look like for this list:
<ul>
框内显示了代码在"现实世界"中的外观。我可以使用<span style="color:red; font-weight:bold">spans设计部分</span> 使用其它的CSS inline 样式
自定义这个列表的外观:
<ul>
<li style="color:green; font-variant:small-caps">A List Item in Small Caps</li>
<li style="color:green; font-variant:small-caps">用小型大写字母列出的列表</li>
<li style="color:blue; font-style:italic; font-weight: bold">List Item in Italic and Bold</li>
<li style="color:blue; font-style:italic; font-weight: bold">用斜体和粗体列出的列表</li>
<li style="color:maroon; font-weight:bold; font-size: 120%">Change Size and Color</li></ul>
<li style="color:maroon; font-weight:bold; font-size: 120%">更改大小和颜色</li></ul>
There are limits, like you can't recreate a hover,
but for the most part, all inline CSS styles can be
used on the Codex to recreate a realistic example of
what the usage will generate.</div>
有一些限制 ,就如你不能够创建hover,但是总体而言,可以在Codex上使用所有的inline CSS样式,重新创建用法在现实生活中使用的例子。</div>
<!—公共饮食业 -->
Subsection 1.1.2.A
New section[ ]
<!—新的子部分 -->
<!—新的子部分-->
<?php echo "Hello, world!\n";?>
<?php echo "你好, 世界!\n";?>
<code>
does not put the code example in its own box but continues the sentence, even if there are single line breaks. The Codex requires a double line break to signify a "space" line break.
<code>
tag, it makes a blue background behind the text that gives it a cluttered look and makes the code a little harder to see.
If you put the code in a <tt> tag, the blue background is gone and the type is monospaced and "code-like" and much easier to read and cleaner. Documentation in the WordPress Codex tends to use a lot of code within the text, so we prefer the use of <tt> over <code>
for a cleaner look.
<code>
标签,这个标签会使得文本出现蓝色背景,使得文本看起来混乱,更不容易看到代码。
如果你将代码放入<tt>标签,蓝色背景消失了,而且类型是monospaced 和"类似代码"的,更容易阅读,也更清晰。WordPress Codex中的文件似乎在文本内使用了许多代码,因此比起<code>
,我们更想要使用<tt>,以得到更清晰的外观。
- [[WordPress:#Link_Examples|My Life Stories]]
- [[WordPress:#Link_Examples|My Family]]
- [[WordPress:#Link_Examples|Sharing]]
- [[WordPress:#Link_Examples|Facts and Fiction]]
- [[WordPress:#Link_Examples|我的生活故事]]
- [[WordPress:#Link_Examples|我的家庭]]
- [[WordPress:#Link_Examples|分享]]
- [[WordPress:#Link_Examples|事实和虚幻]]
- A List Item in Small Caps
- 用小型大写字母所写的列表内容
- List Item in Italic and Bold
- 使用斜体和粗体列出内容
- Change Size and Color
- 更改大小和颜色
There are limits, like you can't recreate a hover, but for the most part, all inline CSS styles can be used on the Codex to recreate a realistic example of what the usage will generate.
这些是限制,就如你不能够重新创建个hover,但是从整体来看,可以在Codex上使用所有的内联CSS样式,重新创建现实例子中的用法。
And the code is this: