CLASSICISTRANIERI HOME PAGE - YOUTUBE CHANNEL
SITEMAP
Audiobooks by Valerio Di Stefano: Single Download - Complete Download [TAR] [WIM] [ZIP] [RAR] - Alphabetical Download  [TAR] [WIM] [ZIP] [RAR] - Download Instructions

Make a donation: IBAN: IT36M0708677020000000008016 - BIC/SWIFT:  ICRAITRRU60 - VALERIO DI STEFANO or
Privacy Policy Cookie Policy Terms and Conditions
Wikipedia:Template名前空間 - Wikipedia

Wikipedia:Template名前空間

出典: フリー百科事典『ウィキペディア(Wikipedia)』

注:この文章は英語版より翻訳されたもので、オーソライズされたものではありません。

テンプレートは1ページ以上に渡って同じ内容を複製するために使われる。1つのテンプレートを変更することで、直ちにそれを使用しているページに反映される。

Templates are used to duplicate the same content across more than one page. You can change a template in one place and it will immediately propagate to the pages that use it.

テンプレートは、しばしば、通常のテキストのものとは異なる背景色をもつテキストボックスのように見えます。それらはテンプレート・ネーム空間にあります、つまり、それらは、名前の前に"Template:"を冠するページの中で定義されます。例えば、Template:ネタバレ(それを編集することができる場合にページを見るためにリンクをたどる)というテンプレートを考えてみましょう。記事にテンプレートの内容を挿入するためには、wikiページに{{ネタバレ}}({{ネタバレ}}はテンプレート・タグと呼ばれます)と記入してください。その記事の中にそのタグを含むすべての記事において以下のテキストが表示されるでしょう

Templates often look like text boxes with a different background colour from that of normal text. They are in the template namespace, i.e. they are defined in pages with "Template:" in front of the name. For example, consider the template Template:Spoiler (follow the link to see the page where it can be edited). To insert the template's content into an article, type {{Spoiler}} in the wiki page ( {{Spoiler}} is called a template tag ). Every article with that tag in it will display the following text:

注意 : 以降に、作品の結末など核心部分が記述されています。


この技術は、一般には「transclusion」として知られています。

This technique is commonly known as transclusion.

例えば{{列車トピック}}などの名前空間は許されている、。最初の文字(だけ)はcase-sensitiveではない。したがって、{{cleanup}}と{{Cleanup}}は、同じテンプレートです。しかし、{{cfd}}と{{CfD}}は同じものではない。

Spaces in the name are allowed, e.g. {{train topics}}. The first character (only) is not case-sensitive, so {{cleanup}} and {{Cleanup}} are the same template, but {{cfd}} and {{CfD}} are not.

テンプレートは、さらにその後、テンプレートの出力に挿入される変数を受けいれることができます。

Templates can also accept parameters which are then inserted into the output of the template.

記事名前空間の中のテンプレートは、読者を手助けする情報を提供する。これらはナビゲーションの補助、あるいは内容がsub-standardであるという警告を含むことができる。編集者に役立つだけの情報を提供するテンプレートは記事の会話ページに属します。(??)

Templates in the article namespace provide information to help readers. These can include navigation aids, or warnings that content is sub-standard. Templates that provide information only of service to editors belong on an article's talk page.

テンプレート名前空間において、テンプレートのタイトル名のまわりに二重鍵括弧を使用して(例えば、{{title}}はTemplate:Titleをインポートします)、異なる名前空間のページ内にその名前空間にそのページの内容を含むことは可能です。これは次のように使われる:

With the template namespace it is possible to include the contents of a page in that namespace within a page in a different namespace, using double curly braces around the template title (for example, {{title}} would import Template:Title). This is used to:
  • 一貫したやりかたで記事の中に繰り返されるメッセージをおく場合(スタブ、曖昧さ回避のページなどを示す)
  • 単純なショートカットコマンドを使用して、著作権警告、中立性などのような様々な問題のための決まり文句を挿入する場合
  • 一連の関連する記事をともにリンクするために航海のテンプレートおよび側面記事を作成してください。
  • infoboxesを作成する場合。
大部分は国際的に同じであるテキストのcross-languageのポータビリティを提供する、しかしそれぞれの言語で異なるいくつかの標準の用語を含んでいます;標準の用語はテンプレートページを参照する{{..}}と置き替えられます..テンプレートページは同じ名前をもち、各言語においてローカライズされた内容をもつ。これはtaxoboxes(?)に適用されます。


  • place recurring messages (such as those to denote stubs, disambiguation pages, etc.) into articles in a consistent manner;
  • insert boilerplate messages for various issues like copyright violation, neutrality disputes, etc., using a simple shortcut command; and
  • create navigational templates and sidebars to link series of related articles together.
  • create infoboxes
  • provide cross-language portability of texts which are largely internationally the same, but contain some standard terms different in each language; the standard terms are replaced by {{..}} referring to Template pages which have the same name but localised content in each language. This is applied for taxoboxes.


テンプレートは、主要記事の名前空間の中に記事内容として見せかけるべきではありません。そのかわりに、記事の中に直接テキストをおいてください。

Templates should not masquerade as article content in the main article namespace; instead, place the text directly into the article.

テンプレートはWiktionaryのようなWikimediaの姉妹projectsを除いて外部サイトへの一連のリンクを作成するためには使用されるべきではありません。

Templates should not be used to create serialized links to external sites, with the exception of Wikimedia sisterprojects, such as Wiktionary.

このネーム空間の使用についての説明、とそれについてのより詳しい情報は、m:Templateを見てください。テンプレート名前空間のtopical category sidebarsのリストについては、Wikipedia:トピックを参照してください。

For instructions on using this namespace, and for more information about it, please see m:Template. For a list of topical category sidebars in the Template namespace, see Wikipedia:topics.

(変更)Wikipedia:Template メッセージの一覧 - Wikipedia:決まり文句の一覧

(Changes) Wikipedia:Template messages ? a list of boilerplate messages

(変更)Wikipedia:操作用のテンプレート

(Changes) Wikipedia:Navigational templates ? a list of navigational elements

目次

[編集] インストラクション

Instructions (to be updated)

[編集] テンプレート作成

Template creation
新しいカスタムメッセージを作成するために、テンプレート名前空間に単純に"Template:"に続けてメッセージに対応する名前からなるページを作成する。名前には現在スペースを含むことができる。先頭文字の場合は不適切です。

そのようなページを作成するためには、あなたのブラウザーのアドレスバーにhttp://en.wikipedia.org/wiki/Template名と入力してください。もうひとつの方法はあなたの利用者のページ上で、あるいはサンドボックスの中で、[[Template:mymessage]]のようなリンクを作成し、クリックすることです あなたは(管理者特権を持っているなら)メッセージを保護することを考慮したいかもしれないが、この議論のために会話ページを使ってください。このページに作成するすべてのカスタムメッセージを一覧してください。

In order to create a new custom message, simply create a page in the Template namespace, named "Template:", followed by a name for the message, that contains the text of the message. Names can now contain spaces and initial case is irrelevant. To create such a page, enter http://en.wikipedia.org/wiki/Template:TheNameOfYourTemplate in the address bar of your browser and edit the page. An alternate method is to create a link something like [[Template:mymessage]] on your user page or in the sandbox and then click on it. You may want to consider protecting the messages you create (if you have administrator privileges), but see the talk page for a discussion of this. Please list any custom messages you create on this page.

[編集] ダイナミックか 置換か

Dynamic or subst

Main article: Wikipedia:Template substitution

There are two major ways to include custom messages, {{Your message}} and {{subst:Your message}}. {{subst:Your message}} makes a copy of the message text and places it where you put the tag after you save an article (substitution). Without "subst", the message will be loaded and put on the page every time you view it, a process known as transclusion.
In other words, when the message is updated, you do not need to update a page that uses it if you use {{Your message}}. As a guideline, short temporal messages that will be removed soon should be copied using subst (which has the advantage of showing the message in the wiki source), and standard notices that might remain on a page for months or forever should be transcluded for easy updating. (You should not use {{Your message}} for a message which contains any links which may change in the future. This method doesn't refresh "What links here" unless every article containing the {{Your message}} gets changed after the modification of the link in the message.)
If you need to edit the template message individually after you put it on your page, use subst. If you don't need to edit it, and would rather the message is automatically updated along with changes made to the template, don't use subst.

[編集] テンプレート・ドキュメンテーション

Template documentation

テンプレートは時折、テンプレートのソースを見るだけに使うには難しくなりえます。だから、あなたがテンプレートを文書化することは推奨されます。 これをするために2つの方法があります。 1つの代案は、を使用し、テンプレートへ直接の小さな記述を含めるようにすることです。例えば:

A template can sometimes be difficult to use by only looking at the source of the template, so it's encouraged that you document your template.
There are two different ways to do this.
One alternative is to use <noinclude> to include a minor description direct into the template, for example:
'''This is a {{1}} article.'''<noinclude>
Place this template on any article that requires description. It takes one parameter, an 
adjective used to describe the article. For example, {{article-describe|bad}} produces the text, 
'''This is a bad article.'''
</noinclude>

Another alternative is to use the template talk page for documentation (prefered for templates with multiple parameters etc...). Using this approach, it's recommended to separate documentation and discussion, easiest by using level one sections to separate (this is an exception to the style guideline):

=Documentation=
usage etc...
=Discussion=
other discussion about the template

第2の最も容易な方法は、テンプレートのノートページに{{ subst: doctl}}を記載することです。それは文書に標準的な決まり文句を挿入するでしょう

The easiest approach to accomplish the second approach is to type Template:Tls to the template talk space, that will insert standardized boilerplate text for the documentation.

[編集] 実験用サンドボックス

Sandbox for experiments

テンプレートで実験したければ(and not have your experiments deleted before you are done with them)、テンプレートサンドボックスの中で行ってもよい。また、実験の目的のためにテンプレートX1、x2、X3、X4、X5、X6、X7、X8およびX9を使用してもよい。テスト・テンプレートを含むためには、テンプレートX1に対して、形式{{X1}}、テンプレートx2に対して形式{{x2}}などを使うことができる。

If you wish to experiment with templates (and not have your experiments deleted before you are done with them), you may do so in the Template sandbox. You may also use the templates X1, X2, X3, X4, X5, X6, X7, X8 and X9 for experimental purposes. To include a test template, use the form {{X1}} for template X1, {{X2}} for template X2, etc.

[編集] 歴史

History

Historically, an "msg:" prefix had to be added in front of the template name when it was used on a page. For example, {{msg:stub}} was typed instead of {{stub}}. This is no longer necessary.

Until June 2004, the MediaWiki namespace was used for creating other boilerplate text messages, to be inserted in articles. This function was replaced with the Template namespace during a software upgrade. As a function of the "Template namespace initialisation script", all non-system messages were moved to the new namespace, and many redirects still exist. The initialisation script also replaced MediaWiki: references in articles with Template: in order to bypass the redirects.

For a short time, Wikipedia:Articles for deletion (then known as votes for deletion or VfD) used MediaWiki: messages named in the format "MediaWiki:VfD-articlename". These were moved to the Template: space in June 2004 and are now named "Template:VfD-articlename". This usage is deprecated now in favor of subpages. A (long) list of these VfD vote pages can be found at Wikipedia:VfD votes in the Template namespace.

[編集] 関連項目

See also
  • m:Help:Template for complete syntax reference
  • Wikipedia:Template standardisation
  • Wikipedia:Avoid using meta-templates
Static Wikipedia 2008 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2007 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - en - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Static Wikipedia 2006 (no images)

aa - ab - af - ak - als - am - an - ang - ar - arc - as - ast - av - ay - az - ba - bar - bat_smg - bcl - be - be_x_old - bg - bh - bi - bm - bn - bo - bpy - br - bs - bug - bxr - ca - cbk_zam - cdo - ce - ceb - ch - cho - chr - chy - co - cr - crh - cs - csb - cu - cv - cy - da - de - diq - dsb - dv - dz - ee - el - eml - eo - es - et - eu - ext - fa - ff - fi - fiu_vro - fj - fo - fr - frp - fur - fy - ga - gan - gd - gl - glk - gn - got - gu - gv - ha - hak - haw - he - hi - hif - ho - hr - hsb - ht - hu - hy - hz - ia - id - ie - ig - ii - ik - ilo - io - is - it - iu - ja - jbo - jv - ka - kaa - kab - kg - ki - kj - kk - kl - km - kn - ko - kr - ks - ksh - ku - kv - kw - ky - la - lad - lb - lbe - lg - li - lij - lmo - ln - lo - lt - lv - map_bms - mdf - mg - mh - mi - mk - ml - mn - mo - mr - mt - mus - my - myv - mzn - na - nah - nap - nds - nds_nl - ne - new - ng - nl - nn - no - nov - nrm - nv - ny - oc - om - or - os - pa - pag - pam - pap - pdc - pi - pih - pl - pms - ps - pt - qu - quality - rm - rmy - rn - ro - roa_rup - roa_tara - ru - rw - sa - sah - sc - scn - sco - sd - se - sg - sh - si - simple - sk - sl - sm - sn - so - sr - srn - ss - st - stq - su - sv - sw - szl - ta - te - tet - tg - th - ti - tk - tl - tlh - tn - to - tpi - tr - ts - tt - tum - tw - ty - udm - ug - uk - ur - uz - ve - vec - vi - vls - vo - wa - war - wo - wuu - xal - xh - yi - yo - za - zea - zh - zh_classical - zh_min_nan - zh_yue - zu -

Sub-domains

CDRoms - Magnatune - Librivox - Liber Liber - Encyclopaedia Britannica - Project Gutenberg - Wikipedia 2008 - Wikipedia 2007 - Wikipedia 2006 -

Other Domains

https://www.classicistranieri.it - https://www.ebooksgratis.com - https://www.gutenbergaustralia.com - https://www.englishwikipedia.com - https://www.wikipediazim.com - https://www.wikisourcezim.com - https://www.projectgutenberg.net - https://www.projectgutenberg.es - https://www.radioascolto.com - https://www.debitoformtivo.it - https://www.wikipediaforschools.org - https://www.projectgutenbergzim.com