站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
WordPress:Styling Page-Links
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
=查看网页链接标签= The default look for the page-links is shown above. The web page you are on isn't highlighted as a link but shown as a solid number. If you do only a few multi-page posts, this might be all you need to have the reader continue reading the pages in sequence. 网页链接的默认外观在上面显示了。你所在的网页没有作为链接,而是作为solid number显示。如果你只有几篇拥有多个网页的文章,你可能需要这个,使得读者继续按顺序阅读网页。 There are two template tags that may be used to style your page-links tag. The [[WordPress:Template_Tags/link_pages|link_pages()]] and [[WordPress:Template_Tags/wp_link_pages|wp_link_pages()]] template tags. The <tt>link_pages()</tt> tag uses ''strings'' in quotes as parameters and the <tt>wp_link_pages()</tt> uses [[WordPress:Template_Tags/How_to_Pass_Tag_Parameters#Tags_with_PHP_function-style_parameters|boolean phrases]] as parameters. Both do basically the same thing. 有两个模板标签,可以用来设计网页链接标签。[[WordPress:Template_Tags/link_pages|link_pages()]] 和[[WordPress:Template_Tags/wp_link_pages|wp_link_pages()]]模板标签。<tt>link_pages()</tt>标签在引用中使用''字符串''作为参数而且<tt>wp_link_pages()</tt>使用[[WordPress:Template_Tags/How_to_Pass_Tag_Parameters#Tags_with_PHP_function-style_parameters|boolean phrases]]作为参数。两个基本上是相同的。 The default usage, shown above, for the <tt>wp_link_pages()</tt> tag is: <tt>wp_link_pages()</tt>标签的默认用法,如上显示,是: <pre><?php wp_link_pages(); ?></pre> <pre><?php wp_link_pages(); ?></pre> The parameters we'll be working with for the template tag are: 我们处理模板标签的参数是: * '''before:''' Text to put before all the links. Defaults to <code><p>Pages:</code>. * '''after:''' Text to put after all the links. Defaults to <code></p></code>. * '''next_or_number:''' Indicates whether page numbers should be used. Valid values are <code>number</code> (Default) and <code>next</code> * '''nextpagelink:''' Text for link to next page. Defaults to <code>Next page</code>. * '''previouspagelink: (''string'') Text for link to previous page. Defaults to <code>Previous page</code>. * '''pagelink:''' Format string for page numbers. The <code> % </code> in the parameter string will be replaced with the page number, so <code>Page %</code> generates "Page 1", "Page 2", etc. Defaults to <code>%</code>, just the page number. You've seen the default look. Let's play with some other possibilities. * '''before:''' 放置在所有链接之前的文本。默认为<code><p>Pages:</code>. * '''after:''' 放置在所有链接之后的文本。默认为<code></p></code>. * '''next_or_number:''' 暗示是否应该使用网页页码。有效的参数值是<code>number</code> (默认) 和 <code>next</code> * '''nextpagelink:''' 链接到下一个网页的链接文本。默认为<code>Next page</code>. * '''previouspagelink: (''string'') 链接到上一个网页的链接文本。默认为<code>Previous page</code>. * '''pagelink:''' 网页页码的格式字符串。参数字符串中的 <code> % </code>会由网页页码所取代,因此 <code>Page %</code> 产生 "Page 1", "Page 2", 等等。默认为<code>%</code>,只是网页页码。 你已经看到了默认外观。让我们处理一些其它外观内容。
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)