MTCategoryTrackbackCount
カテゴリで受け付けたトラックバックの数を表示します。
- 使い方
<mt:CategoryIfAllowPings>
<div id="trackback">
<h2>トラックバック</h2>
<label for="trackback-url">このカテゴリのトラックバック URL: </label>
<input type="text" id="trackback-url" name="ping_url" value="<$mt:CategoryTrackbackLink$>" readonly="readonly" onclick="this.focus(); this.select();" onkeypress="this.focus(); this.select();" />
<mt:If tag="CategoryTrackbackCount">
<p><a href="<$mt:CategoryArchiveLink$>"><$mt:CategoryLabel$></a> を参照している記事: <span class="count">(<$mt:CategoryTrackbackCount$> 件)</span></p>
<mt:Pings>
<mt:PingsHeader>
<div class="section">
</mt:PingsHeader>
<dl id="trackback_<$mt:PingID$>" class="<mt:If name="__odd__">odd<mt:Else>even</mt:If>">
<dt><a href="<$mt:PingURL$>"><$mt:PingTitle$></a><cite><$mt:PingBlogName$></cite><span class="datetime"><abbr title="<$mt:PingDate format="%Y-%m-%dT%H:%M:%S"$><$mt:BlogTimezone$>"><$mt:PingDate format="%b %e, %Y"$></abbr></span></dt>
<dd><$mt:PingExcerpt$></dd>
</dl>
<mt:PingsFooter>
</div>
</mt:PingsFooter>
</mt:Pings>
</mt:If>
</div>
</mt:CategoryIfAllowPings>
モディファイア
- singular="text"
-
カウントが 1 件のときに表示するメッセージを指定します。
- plural="text"
-
カウントが 2 件以上のときに表示するメッセージを指定します。メッセージに # を含むと、# が実際の件数に変換されます。
- none="text"
-
カウントが 0 件のときに表示するメッセージを指定します。