|
|
1行目: |
1行目: |
− | 原文・最新版: [[:en:Templates|WordPress Codex » Templates]]
| + | テンプレートとは、ウェブ上で WordPressサイトをどのように表示させるかをコントロールするファイルです。テンプレートファイルは、あなたの WordPress の [[用語集#MySQL|MySQL]] データベースより情報を取得し、ウェブブラウザへ送る [[用語集#HTML|HTML]] コードを生成します。WordPress では、強力な[[:ja:Using Themes|テーマ]]システムによって、一つのテーマの中にあるテンプレートファイルを、あなたの好きなだけ自由に定義できるようになっています。各テンプレートファイルは、ある特定の状況下で使われるように設定できます。テーマの作成についての詳細は、[[テーマの作成]] をご覧ください。 |
| | | |
− | __TOC__
| + | == 関連ページ == |
− | テンプレートとは、ウェブ上で WordPressサイトをどのように表示させるかをコントロールするファイルです。テンプレートファイルは、あなたの WordPress の [[Glossary#MySQL|MySQL]] データベースより情報を取得し、ウェブブラウザへ送る [[Glossary#HTML|HTML]] コードを生成します。WordPress では、強力な[[:ja:Using Themes|テーマ]]システムによって、一つのテーマの中にあるテンプレートファイルを、あなたの好きなだけ自由に定義できるようになっています。各テンプレートファイルは、ある特定の状況下で使われるように設定できます。テーマの作成についての詳細は、[[「テーマの作成」]] をご覧ください。
| + | ; [[WordPress サイトデザイン リファレンス#テンプレートファイル|WordPress サイトデザイン リファレンス]] |
| + | : テンプレートの仕組み・各種ページの作り方・カスタマイズ方法などについて説明しているページをご案内しています。 |
| | | |
− | 以下のリンク先:
| + | {{Notice|提案|テーマ・デザイン関係のページ編成について、|ノート:WordPress サイトデザイン リファレンス|ページ編成の検討}} |
− | * 訳すつもりのページ → 当サイト
| + | |
− | * WPJ Codex に和訳済みページあり(最新ではないかも) → WPJ Codex
| + | |
− | * その他 → Codex
| + | |
| | | |
− | == テーマ全般 ==
| + | {{原文|Templates}} |
− | (General Theme Articles)
| + | |
− | | + | |
− | ; [[:ja:Using Themes|テーマの使い方]] : テーマとテンプレートの使い方・インストールについての基本情報 ([[:en:Using Themes|Using Themes]])
| + | |
− | ; [[プラグインとテーマの 2.1 への移行]] : テーマを WordPress 2.1 に対応させる方法についての情報
| + | |
− | ; [[テーマの作成]] : あなたのテーマのデザインと作り方<!-- 「development」→「開発」だと硬いか -->。テーマの仕組み・構成ファイルなど。配布テーマをカスタマイズしたいときにも。 ([[:en:Theme Development|Theme Development]])
| + | |
− | ; [[:en:Designing Themes for Public Release|Designing Themes for Public Release]] : 公開用 WordPress テーマのデザイン・作成方法
| + | |
− | ; [[:en:Themes/Theme_Compatibility/2.2|Version 2.2 Theme Compatibility List]] : WordPress 2.2 互換テーマの一覧
| + | |
− | ; [[:en:Site Architecture 1.5|Site Architecture 1.5]] : Standard site architecture of the Default and Classic themes, which you are encouraged to follow in your Themes
| + | |
− | ; [[:en:Creating Admin Themes|Creating Admin Themes]] : 管理パネルの外観を変えるプラグインの作り方
| + | |
− | ; [[:en:Upgrade 1.2 to 1.5|Upgrade 1.2 to 1.5]] : Contains information on how to upgrade from a 1.2 template to a 1.5 Theme
| + | |
− | | + | |
− | 外部情報:
| + | |
− | * [http://www.cypherhackz.net/archives/2006/12/13/make-your-own-wordpress-theme-part-1/ Make your Own Wordpress Theme by Fauzi Mohd Darus]
| + | |
− | *[http://boren.nu/archives/2004/11/10/anatomy-of-a-wordpress-theme/ Ryan Boren's Anatomy of a Theme]
| + | |
− | *[http://www.transycan.net/blogtest/2005/03/31/visual-anatomy-of-a-wp-15-theme/ Moshu's Visual Anatomy of a WP v1.5 Theme]
| + | |
− | *[http://www.chrisjdavis.org/2005/05/26/secrets-of-wp-theming-part-1/ Chris J. Davis' Secrets of WP Theming, Part 1]
| + | |
− | *[http://www.chrisjdavis.org/2005/06/02/secrets-pt-2/ Chris J. Davis' Secrets of WP Theming, Part 2]
| + | |
− | *[http://www.chrisjdavis.org/2005/06/13/secrets-pt-3/ Chris J. Davis' Secrets of WP Theming, Part 3]
| + | |
− | * [http://www.urbangiraffe.com/2005/04/12/themeguide1/ Dissection of a WordPress Theme]
| + | |
− | *[http://www.codescheme.net/how-to-design-a-wordpress-theme/ Design your First WordPress Theme]
| + | |
− | * [http://www.anekostudios.com/2006/09/21/how-to-create-a-wordpress-template-or-theme/ How to create a WordPress Template or Theme tutorial]
| + | |
− | * [http://mattread.com/archives/2005/04/wordpress-is-not-php/ WordPress is Not PHP - Template Files]
| + | |
− | * [http://mattread.com/archives/2005/04/wordpress-is-not-php/#comment-1846 WordPress is PHP]
| + | |
− | | + | |
− | == テンプレートファイル ==
| + | |
− | (Template File Articles)
| + | |
− | | + | |
− | === 基礎・全般 ===
| + | |
− | (General References)
| + | |
− | | + | |
− | ; [[:ja:Stepping Into Templates|Stepping Into Templates]](和訳途中) : [[:ja:Using Themes|WordPressテーマ]]の構成要素であるテンプレートファイル入門。1つのウェブページを生成するためにテンプレートファイルがどのような働きをするか、テンプレートファイルへの他のテンプレートファイルの読み込み方の説明。 ([[:en:Stepping Into Templates|Stepping Into Templates]])
| + | |
− | ; [[:ja:Template Hierarchy|Template Hierarchy]] : 様々なページを生成するためのテンプレートの優先順序についての説明。ウェブログで要求されたページを生成する過程で、WordPress がチェックするテンプレートの簡潔なリスト。 ([[:en:Template Hierarchy|Template Hierarchy]])
| + | |
− | ; [[:ja:The Loop|ループ]](和訳途中) : テンプレートファイルの一部分、コンテンツ部を生成する Wordpressループの説明 ([[:en:The Loop|The Loop]])
| + | |
− | ; [[:en:The Loop in Action|The Loop in Action]] : Wordpress ループについての詳細
| + | |
− | | + | |
− | === ヘッダ・フッタ・サイドバー・コンテンツ部 ===
| + | |
− | (Header, Footer, Sidebar, and Content Sections)
| + | |
− | | + | |
− | ;[[:en:Designing Headers|Designing Headers]] : <tt>header.php</tt> テンプレートファイルのカスタマイズ
| + | |
− | ;[[:en:Adding Post Feeds to the Header|Adding Post Feeds to the Header]] : ヘッダ・テンプレートファイルへの RSS フィードリンクの追加方法
| + | |
− | ;[[:en:Customizing Your Sidebar|Customizing Your Sidebar]] : <tt>sidebar.php</tt> テンプレートファイルのカスタマイズ
| + | |
− | ;[[:en:Customizing the Read More|Customizing the Read More]] : 抜粋につける「続きを読む(Read More)」リンクの見た目のカスタマイズ
| + | |
− | ;[[:en:Next and Previous Links|Next and Previous Links]] : 次/前の記事・ページへのリンクの見た目のカスタマイズ
| + | |
− | ;[[:en:Styling Page-Links|Styling Page-Links]] : How to break up single posts into multiple pages, and customize their links
| + | |
− | ;[[:en:Separating Categories|Separating Categories]] : 各記事に表示するカテゴリリストの区切り文字の変え方(= <tt>[[テンプレートタグ/the category|the_category()]]</tt> のセパレータの話)
| + | |
− | ;[[カスタムフィールドの使い方]] : 投稿記事へのカスタム・メタデータの追加、表示方法 ([[:en:Using Custom Fields|Using Custom Fields]])
| + | |
− | ;[[:en:Adding Asides|Adding Asides]] : How to add side notes to your blog posts
| + | |
− | ; [[:en:FAQ_Working_with_WordPress#Can_I_have_popup_comments.3F|Enabling Popup Comments]]: コメントをポップアップウィンドウに表示させる方法
| + | |
− | | + | |
− | === アーカイブ・カテゴリ・特別ページ ===
| + | |
− | (Archives, Categories, and Special Pages)
| + | |
− | | + | |
− | ; [[:en:Creating a Static Front Page|Creating a Static Front Page]] : サイトの静的ホームページやスプラッシュ・ページの作り方
| + | |
− | ; [[:en:Author Templates|Author Templates]] : 著者とその投稿記事を表示する <tt>author.php</tt> テンプレートファイルのカスタマイズ
| + | |
− | ; [[:en:Category Templates|Category Templates]] : 様々なカテゴリアーカイブのためのテンプレートの定義・カスタマイズ
| + | |
− | ; [[:en:Alphabetizing Posts|Alphabetizing Posts]] : カテゴリページの表示順を時系列ではなくアルファベット順にする方法
| + | |
− | ; [[:en:Creating an Archive Index|Creating an Archive Index]] : 日付単位で投稿記事を表示する <tt>archives.php</tt> テンプレートファイルのカスタマイズ
| + | |
− | ; [[:ja:Pages|WordPressページ]] : WordPressページ、テンプレートと WordPressページとの関係についての説明 ([[:en:Pages|Pages]])
| + | |
− | ; [[:en:Styling Theme Forms|Styling Theme Forms]] : コメント・検索等のフォームの作り方
| + | |
− | ; [[:en:Creating a Search Page|Creating a Search Page]] : <tt>search.php</tt> テンプレートファイルのカスタマイズ
| + | |
− | ; [[:en:Creating an Error 404 Page|Creating an Error 404 Page]] : 凝った Error 404 ページを表示させるテンプレートファイルの作り方
| + | |
− | ; [[:en:Displaying Posts Using a Custom Select Query|Displaying Posts Using a Custom Select Query]]: ページに表示する記事を変える方法
| + | |
− | | + | |
− | 外部資料:
| + | |
− | * [http://www.cameraontheroad.com/?p=623 Creating Multiple Single Posts for Different Categories]
| + | |
− | | + | |
− | == テンプレートタグ ==
| + | |
− | (Template Tags Articles)
| + | |
− | | + | |
− | ; [[:en:Stepping Into Template Tags|Stepping Into Template Tags]] : テンプレートファイルで使われるテンプレートタグ入門
| + | |
− | ; [[テンプレートタグ]] : データベースから情報を取得してウェブ上に表示するための関数群。例えば、記事の内容(本文)は、テンプレートタグ <tt>[[テンプレートタグ/the_content|the_content()]]</tt> によって表示される。 ([[:en:Template Tags|Template Tags]])
| + | |
− | ; [[:en:Template_Tags/Anatomy_of_a_Template_Tag|Anatomy of a Template Tag]] : テンプレートタグの構造・使用法・パラメータの理解
| + | |
− | ; [[:ja:Include Tags|インクルードタグ]] : テンプレートファイルに WordPress の基本テンプレート(サイドバーなど)を読み込むときに利用できるタグの説明 ([[:en:Include Tags|Include Tags]])
| + | |
− | ; [[:ja:Conditional Tags|条件分岐タグ]] : このタグ(<tt>[[:ja:Conditional Tags#The Main Page|is_home()]]</tt> のように いずれも <tt>is_''something''()</tt> という形式)は、表示中のページの種類(例: メインページ、カテゴリアーカイブ等)を判定します。このタグの返す値に応じてテンプレートの出力を制御したいときに、テンプレート内で使えます。 ([[:en:Conditional Tags|Conditional Tags]])
| + | |
− | ; [[:en:Template_Tags/query_posts|Query Posts Template Tag]] : ページに表示する記事をコントロールするテンプレートタグ <tt>query_posts</tt> の説明
| + | |
− | ;[[テンプレートタグ/wp_list_pages]] : WordPressページの一覧を作成するテンプレートタグ <tt>wp_list_pages()</tt> の説明 ([[:en:Template_Tags/wp_list_pages|List Pages Template Tag]])
| + | |
− | | + | |
− | 外部資料:
| + | |
− | *[http://boren.nu/archives/2004/10/16/templates-and-the-is-functions/ Templates and "is" functions, by Ryan]
| + | |
− | * [http://www.headzoo.com/wptcs.png Theme cheatsheet]
| + | |
− | * [http://florchakh.com/2007/04/17/mashup-of-posts-on-your-wordpress-homepage.html Using the_content and the_excerpt tags within the Loop at the same time].
| + | |
− | | + | |
− | == CSS・デザイン・レイアウト ==
| + | |
− | (CSS, Design, and Layout)
| + | |
− | | + | |
− | ; [[:en:CSS|CSS]] : How to integrate CSS into WordPress, with list of other WordPress CSS references
| + | |
− | ; [[:en:Blog Design and Layout|Blog Design and Layout]] : WordPress のブログデザインとレイアウトについての記事・資料一覧
| + | |
− | ; [[:en:Know Your Sources#CSS|Know Your Sources#CSS]] : List of general CSS references
| + | |
− | | + | |
− | 外部資料:
| + | |
− | * [http://flumpcakes.co.uk/css/optimiser/ Flumpcakes CSS Optimizer] - Optimize your CSS file. ''Contains a possibly "not safe for work" header image.''
| + | |
− | *[http://creativecommons.org/image/ Creative Commons Images]:Search for Creative Commons images that are free to share and use online.
| + | |
− | *[http://www.imageafter.com/ Image * After]:A free stock image library for commercial and personal use.
| + | |
− | *[http://www.sxc.hu/ stock.xchng]:Photographs available free of charge to the public.
| + | |
− | *[http://www.freedigitalphotos.net freedigitalphotos.net]:Free photos for commercial and non-commercial use.
| + | |
− | *[http://www.informaticafriuli.com/category/web-friuli/template-informatica-friuli/ informaticafriuli.com]:Free wordpress theme and template.
| + | |
− | | + | |
− | == Tools, Testing and Validating ==
| + | |
− | | + | |
− | ; [[:en:CSS Fixing_Browser Bugs|CSS Fixing_Browser Bugs]]
| + | |
− | ; [[:en:CSS Troubleshooting|CSS Troubleshooting]]
| + | |
− | ; [[:en:Validating a Website|Validating a Website]]
| + | |
− | ; [[:en:Glossary#Text_editor|Plain Text Editors]] :A list of plain text editors for all platforms.
| + | |
− | | + | |
− | == 外部資料(日本語) ==
| + | |
− | | + | |
− | 後で分類
| + | |
− | | + | |
− | * [http://wptags.com/ Wptags.com] -- テーマファイルをアレンジするうえで必要な「テンプレートタグ」の機能と使い方を説明。さらなる詳細や使用例は Codex 参照。
| + | |
− | * [http://tekapo.com/st/wp/ Standing Tall » WordPress テーマの詳説] -- [http://www.urbangiraffe.com/ John Godley] による[http://www.urbangiraffe.com/themes/guides 「UrbanGiraffe » WordPress Theme Guide」]の翻訳。デフォルトテーマを分解して、構造や仕組みを学びながら再構築していく。(taiさん)
| + | |
− | * [http://waviaei.com/files/wptgj/index.html WordPressテーマ:作成&カスタマイズ] -- WordPressテーマの作り方、カスタマイズのポイントやアイデア等を集めたガイド (Toruさん)
| + | |
| | | |
| + | {{DEFAULTSORT:てんふれえと}} |
| [[Category:デザインとレイアウト]] | | [[Category:デザインとレイアウト]] |
| [[Category:テンプレートタグ]] | | [[Category:テンプレートタグ]] |
− | [[Category:テンプレート]] | + | [[Category:テンプレート|*]] |
| + | |
| + | [[en:Templates]] |
| + | [[ja:Templates]] |
| + | [[es:Templates]] |
| + | [[it:Templates]] |
| + | [[ru:Templates]] |
| + | [[zh:Templates]] |
テンプレートとは、ウェブ上で WordPressサイトをどのように表示させるかをコントロールするファイルです。テンプレートファイルは、あなたの WordPress の MySQL データベースより情報を取得し、ウェブブラウザへ送る HTML コードを生成します。WordPress では、強力なテーマシステムによって、一つのテーマの中にあるテンプレートファイルを、あなたの好きなだけ自由に定義できるようになっています。各テンプレートファイルは、ある特定の状況下で使われるように設定できます。テーマの作成についての詳細は、テーマの作成 をご覧ください。