编辑“WordPress:Template Tags/the weekday”
该编辑可以被撤销。 请检查下面的对比以核实您想要撤销的内容,然后发布下面的更改以完成撤销。
最后版本 | 您的文本 | ||
第1行: | 第1行: | ||
{{Deprecated}} | |||
== Description == | |||
{{取消的}} | {{取消的}} | ||
== 描述 == | == 描述 == | ||
Displays the day of the week (e.g. Friday). This tag must be used within [[WordPress:The Loop]]. | |||
显示星期几(例如,星期五)。必须在[[WordPress:The Loop|The Loop]]内使用这个标签。 | 显示星期几(例如,星期五)。必须在[[WordPress:The Loop|The Loop]]内使用这个标签。 | ||
== Replace With == | |||
== 取代 == | == 取代 == | ||
要取代这个标签,请使用[[WordPress:Template_Tags/the_time| | To replace this tag, use [[WordPress:Template_Tags/the_time|the_time()]] with <tt>'l'</tt> as the format string: | ||
要取代这个标签,请使用[[WordPress:Template_Tags/the_time|the_时间()]],用<tt>'l'</tt>作为格式字符串: | |||
<?php the_time('l'); ?> | <?php the_time('l'); ?> | ||
<?php the_时间('l'); ?> | |||
See [[WordPress:Formatting Date and Time]] for information on date and time format string use. | |||
请看看[[WordPress:Formatting Date and Time|日期和时间格式]]关于日期和时间字符串的使用的信息。 | 请看看[[WordPress:Formatting Date and Time|日期和时间格式]]关于日期和时间字符串的使用的信息。 | ||
== Usage == | |||
%%% <?php the_weekday() ?> %%% | |||
== 用法 == | == 用法 == | ||
%%% <?php | %%% <?php the_星期几() ?> %%% | ||
== Example == | |||
== 例子 == | == 例子 == | ||
<p>This was posted on a <?php the_weekday() ?>.</p> | <p>This was posted on a <?php the_weekday() ?>.</p> | ||
<p>这篇文章发表于 <?php the_星期几() ?>.</p> | |||
== Parameters == | |||
== 参数== | == 参数== | ||
This tag does not accept any parameters. | |||
这个标签不接受任何参数。 | 这个标签不接受任何参数。 | ||
== Related == | |||
{{Tag Date Tags}} | |||
{{No Param Tag Footer}} | |||
== 相关的 == | == 相关的 == |