アドオン・プラグイン
[既定値] 欄には テンプレートタグを記述することができます。テンプレートタグの分岐等を活用することによって、複雑な入力欄を作成することが可能です。
下記は、野球のスコアボードをスニペットフィールドとして作成した例です。
オプション欄に入力する値
entryscoreboard_team1,entryscoreboard_1_1,entryscoreboard_1_2,entryscoreboard_1_3,entryscoreboard_1_4,entryscoreboard_1_5,entryscoreboard_1_6,entryscoreboard_1_7,entryscoreboard_1_8,entryscoreboard_1_9,entryscoreboard_1_10,entryscoreboard_1_11,entryscoreboard_1_12,entryscoreboard_team2,entryscoreboard_2_1,entryscoreboard_2_2,entryscoreboard_2_3,entryscoreboard_2_4,entryscoreboard_2_5,entryscoreboard_2_6,entryscoreboard_2_7,entryscoreboard_2_8,entryscoreboard_2_9,entryscoreboard_2_10,entryscoreboard_2_11,entryscoreboard_2_12,entryscoreboard_1_total,entryscoreboard_2_total,entryscoreboard_extended
既定値欄に入力するテンプレート
<mt:setvar name="team1_total" value="$entryscoreboard_1_1" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_2" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_3" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_4" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_5" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_6" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_7" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_8" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_9" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_10" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_11" op="+">
<mt:setvar name="team1_total" value="$entryscoreboard_1_12" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_1" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_2" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_3" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_4" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_5" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_6" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_7" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_8" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_9" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_10" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_11" op="+">
<mt:setvar name="team2_total" value="$entryscoreboard_2_12" op="+">
<table>
<tr>
<th style="width:30px;">チーム</th>
<th>1</th><th>2</th><th>3</th><th>4</th><th>5</th><th>6</th><th>7</th><th>8</th><th>9</th>
<mt:if name="entryscoreboard_extended">
<th>10</th><th>11</th><th>12</th>
</mt:if>
<th>計</th>
</tr>
<tr>
<th style="width:30px;"><input style="width:70px;" type="text" class="text" value="<mt:var name="entryscoreboard_team1" escape="html">" name="entryscoreboard_team1" /></th>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_1" escape="html">" name="entryscoreboard_1_1" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_2" escape="html">" name="entryscoreboard_1_2" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_3" escape="html">" name="entryscoreboard_1_3" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_4" escape="html">" name="entryscoreboard_1_4" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_5" escape="html">" name="entryscoreboard_1_5" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_6" escape="html">" name="entryscoreboard_1_6" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_7" escape="html">" name="entryscoreboard_1_7" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_8" escape="html">" name="entryscoreboard_1_8" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_9" escape="html">" name="entryscoreboard_1_9" /></td>
<mt:if name="entryscoreboard_extended">
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_10" escape="html">" name="entryscoreboard_1_10" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_11" escape="html">" name="entryscoreboard_1_11" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_1_12" escape="html">" name="entryscoreboard_1_12" /></td>
</mt:if>
<td><input style="width:46px;" type="text" class="text num" value="<mt:var name="team1_total">" name="entryscoreboard_1_total" /></td></tr>
<tr>
<th><input style="width:70px;" type="text" class="text" value="<mt:var name="entryscoreboard_team2" escape="html">" name="entryscoreboard_team2" /></th>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_1" escape="html">" name="entryscoreboard_2_1" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_2" escape="html">" name="entryscoreboard_2_2" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_3" escape="html">" name="entryscoreboard_2_3" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_4" escape="html">" name="entryscoreboard_2_4" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_5" escape="html">" name="entryscoreboard_2_5" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_6" escape="html">" name="entryscoreboard_2_6" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_7" escape="html">" name="entryscoreboard_2_7" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_8" escape="html">" name="entryscoreboard_2_8" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_9" escape="html">" name="entryscoreboard_2_9" /></td>
<mt:if name="entryscoreboard_extended">
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_10" escape="html">" name="entryscoreboard_2_10" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_11" escape="html">" name="entryscoreboard_2_11" /></td>
<td><input style="width:26px;" type="text" class="text num" value="<mt:var name="entryscoreboard_2_12" escape="html">" name="entryscoreboard_2_12" /></td>
</mt:if>
<td><input style="width:46px;" type="text" class="text num" value="<mt:var name="team2_total">" name="entryscoreboard_2_total" /></td>
</tr>
</table>
<p>
<label><input type="checkbox" name="entryscoreboard_extended" value="1"<mt:if name="entryscoreboard_extended"> checked="checked"</mt:if>/> 延長戦</label>
</p>