This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
jp:template [2007/01/24 09:42] – amatubu | jp:template [2008/02/09 19:04] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 19: | Line 19: | ||
テンプレートがどのように機能するのかをより良く理解するために、テンプレートが「履歴」ページをどのように | テンプレートがどのように機能するのかをより良く理解するために、テンプレートが「履歴」ページをどのように | ||
- | 作り上げるのかを見てみましょう。:< | + | 作り上げるのかを見てみましょう。: |
+ | < | ||
history-page.thtml | history-page.thtml | ||
- | < | + | common-top.thtml |
- | | + | common-middle.thtml |
history-page.thtml | history-page.thtml | ||
- | < | + | history-navigator-widget.thtml |
history-page.thtml | history-page.thtml | ||
- | < | + | history-search-filter-widget.thtml |
history-page.thtml | history-page.thtml | ||
- | < | + | history-navigator-widget.thtml |
- | | + | common-bottom.thtml |
</ | </ | ||
Line 36: | Line 37: | ||
他のどのテンプレートを使うかを決めます。 | 他のどのテンプレートを使うかを決めます。 | ||
- | すべてのページは、// | + | すべてのページは、// |
- | < | + | '' |
// | // | ||
- | このページ固有の内容は // | + | このページ固有の内容は // |
そこから、// | そこから、// | ||
- | インクルードします。<br> | + | インクルードします。 |
- | 終了する前に // | + | 終了する前に // |
- | それから // | + | それから // |
閉じます。 | 閉じます。 | ||
Line 60: | Line 61: | ||
理解を深めるために、サンプルを見てみましょう: | 理解を深めるために、サンプルを見てみましょう: | ||
< | < | ||
- | < | + | < |
- | < | + | |
<tr bgcolor=" | <tr bgcolor=" | ||
< | < | ||
Line 76: | Line 77: | ||
</tr> | </tr> | ||
< | < | ||
- | </ | + | </ |
+ | </ | ||
この例では変数であらわされる行数のテーブルが表示されます。 | この例では変数であらわされる行数のテーブルが表示されます。 | ||
この行数はこのテンプレートを読み込む Perl スクリプトによって決められます。変数で指定された行数を実現するために、TMPL_LOOP というテンプレートのタグが使用されます。 | この行数はこのテンプレートを読み込む Perl スクリプトによって決められます。変数で指定された行数を実現するために、TMPL_LOOP というテンプレートのタグが使用されます。 | ||
Line 95: | Line 97: | ||
が選ばれました。 | が選ばれました。 | ||
このモジュールについてのさらにくわしい説明は、次のサイトで得ることができます(英語): | このモジュールについてのさらにくわしい説明は、次のサイトで得ることができます(英語): | ||
- | < | + | [[http:// |
- | [[:Template | 原文]] | + | [[devel:Template | 原文]] |
[[: | [[: | ||
[[:jp | POPFile ドキュメンテーションプロジェクト]] | [[:jp | POPFile ドキュメンテーションプロジェクト]] | ||
- |
Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.