adminform.html 管理
diff.html 差分表示
edit.html 編集
error.html 編集などに失敗
form.html ページの新規作成
list.html ページ一覧
login.html ログイン
plugin.html プラグイン選択
success.html 編集などに成功
view.html 閲覧
i.adminform.html 携帯版:管理
i.diff.html 携帯版:差分表示
i.edit.html 携帯版:編集
i.error.html 携帯版:編集などに失敗
i.form.html 携帯版:ページの新規作成
i.list.html 携帯版:ページ一覧
i.login.html 携帯版:ログイン
i.plugin.html 携帯版:プラグイン選択
i.success.html 携帯版:編集などに成功
i.view.html 携帯版:閲覧
header
<%= @contents[:header] %>
adminmenu
<%= @contents[:tools] %>
title
<%= @contents[:title] %>
body
<%= @contents[:body] %>
page_attribute
sidebar
<% if @contents[:sidebar_class] %>
<hr style="display: none">
<div class="<%= @contents[:sidebar_class] %>">
<%= @contents[:sidebar] %>
</div>
<% end %>
footer
<%= @contents[:footer] %>
<%= @contents[:xxxxx] %>
変数 xxxxx の値を出力。
xxxxx の可能性:
lang 言語(ja)
header <HEAD>〜</HEAD>に出力すべき内容
body_enter Wiki本文出力前に出力すべきHTML
body Wiki本文
body_leave Wiki本文出力後に出力すべきHTML
sidebar_class サイドバーを囲む<div>タグのクラス名
sidebar サイドバー(HTML)
footer 著作権表示やHikiのバージョンなど
view_title <H1>〜</H1>に示すべきページ名
view_style 閲覧コンテンツ全体を囲む<div>タグのクラス名
tools 操作メニュー(新規作成 編集 一覧 ...)
last_modified 最終更新時(strftimeで出力フォーマット指定)
keyword キーワード(最終更新時同様、ページ属性の一)
references 被リンクのページへのリンク(HTML)
page_attribute
adminmenu.html
sidemenu
<% @plugin.each_conf_key do |key|%>
<li><a href="<%=@contents[:cgi_name]%>?c=admin;conf=<%=key%>">
<%=@plugin.conf_label( key )%></a></li>
<% end %>
edit.html
(複雑)
diff.html
body
<ul>
<li><%=@conf.msg_diff_add%></li>
<li><%=@conf.msg_diff_del%></li>
</ul>
<hr>
<div class="diff"><%= @contents[:differ] %></div>
error.html
body
<div><%= @contents[:message] %></div>
<div>Please back to <a href="<%= @contents[:cgi_name] %>">
<%= @contents[:frontpage] %></a>.</div>
form.html
body
<% if @contents[:list] %><ul>
<% @contents[:list].each do |i| %><li><%= i %></li><% end %>
</ul><% end %>
<% if @contents[:msg1] %><div><%= @contents[:msg1] %></div><% end %>
<form action="<%= @contents[:cgi_name] %>" method="<%= @contents[:method] %>">
<input type="hidden" value="<%= @contents[:cmd] %>" name="c">
<%= @contents[:msg2] %><input size="30" maxlength="50" name="key" <%= @contents[:key] %>>
<input type="submit" value="<%= @contents[:button] %>">
</form>
list.html
body
<% if @contents[:updatelist] %><ul>
<% @contents[:updatelist].each do |i| %><li><%= i %></li><% end %>
</ul><% end %>
login.html
body
<form action="<%= @contents[:cgi_name] %>" method="post">
<p><%= @conf.msg_login_info %></p>
<% if @contents[:login_result] %><p><%= @contents[:login_result] %></p><% end %>
<input type="hidden" value="<%= @contents[:cmd] %>" name="c">
<input type="hidden" value="<%= @contents[:page] %>" name="p">
<%= @conf.msg_name %>:<input size="30" name="name" type="text"><br>
<%= @conf.msg_password %>:<input size="30" name="password" type="password"><br>
<input type="submit" value="<%= @contents[:button] %>">
</form>
plugin.html
success.html
body
<p><strong><%= @contents[:msg] %></strong></p>
<p><%= @contents[:link] %></p>
view.html
body
<% unless @contents[:body_enter].empty? %><div><%= @contents[:body_enter] %></div><% end %>
<%= @contents[:body] %>
<% unless @contents[:body_leave].empty? %><div><%= @contents[:body_leave] %></div><% end %>
page_attribute
<%=@conf.msg_last_modified%>:<%= @contents[:last_modified].strftime('%Y/%m/%d %H:%M:%S') %><br>
<%=@conf.msg_keyword%>:<%= @contents[:keyword] %><br>
<%=@conf.msg_reference%>:<%= @contents[:references] %><br>
<% unless @contents[:page_attribute].empty? %><div><%= @contents[:page_attribute] %></div><% end %>
Keyword(s):
References: