WordPress: Function Reference/wptexturize:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
无编辑摘要
无编辑摘要
 
第1行: 第1行:
{{stub}}
{{stub}}
{{stub}}
 
== Description ==


== 描述==
== 描述==


This returns given text with some transformations:
这个函数返回已经更改的文本。
这个函数返回已经更改的文本。
== Usage ==


== 用法 ==
== 用法 ==


%%% <?php wptexturize(); ?> %%%
%%% <?php wptexturize(); ?> %%%
%%% <?php wptexturize(); ?> %%%
(List is incomplete, but gives you an idea.)


(列表不完整,但是能够向你提供一些信息。)
(列表不完整,但是能够向你提供一些信息。)
{|  
{|  
| --  
| --  
第31行: 第21行:
| ellipsis  
| ellipsis  
|}
|}
{|
| --
| en-dash
|-
| ---
| em-dash
|-
| ...
| ellipsis
|}
There is a small "cockney" list of transformations, as well. The following common phrases will have typographic quotes added to them:


也有一个关于更改内容的"cockney"列表。下面的常见的短语 ,添加有typographic quotes:
也有一个关于更改内容的"cockney"列表。下面的常见的短语 ,添加有typographic quotes:
* 'tain't
* 'twere
* 'twas
* 'tis
* 'twill
* 'til
* 'bout
* 'nuff
* 'round
* 'cause
* 'tain't
* 'tain't
* 'twere
* 'twere
第71行: 第34行:
* 'cause
* 'cause


== Parameters ==
== 参数 ==
== 参数 ==
<!--
; userid : (''integer'') The id of the user whose data you want to update.
-->


<!--
<!--
; userid : (''integer'')你想要更新用户数据的用户的ID。
; userid : (''integer'')你想要更新用户数据的用户的ID。
-->
-->

2008年7月28日 (一) 09:40的最新版本

This page is [[WordPress::Category:Stubs|marked]] as incomplete. You can help Codex by expanding it.


描述[ ]

这个函数返回已经更改的文本。

用法[ ]

%%% <?php wptexturize(); ?> %%%

(列表不完整,但是能够向你提供一些信息。)

-- en-dash
--- em-dash
... ellipsis

也有一个关于更改内容的"cockney"列表。下面的常见的短语 ,添加有typographic quotes:

  • 'tain't
  • 'twere
  • 'twas
  • 'tis
  • 'twill
  • 'til
  • 'bout
  • 'nuff
  • 'round
  • 'cause

参数[ ]