「テンプレート:Documentation/doc」を編集中
この編集を取り消せます。
下記の差分を確認して、本当に取り消していいか検証してください。よろしければ変更を保存して取り消しを完了してください。
最新版 | 編集中の文章 | ||
1行目: | 1行目: | ||
− | <noinclude>{{Documentation subpage}}</noinclude> | + | <noinclude>{{Documentation subpage}} |
+ | {{timw|Documentation}} | ||
+ | </noinclude> | ||
This template automatically displays a documentation box like you are seeing now, of which the content is transcluded from another page. It is intended for pages which are [[Wikipedia:Transclusion|transcluded]] in other pages, i.e. templates, whether in the template namespace or not. | This template automatically displays a documentation box like you are seeing now, of which the content is transcluded from another page. It is intended for pages which are [[Wikipedia:Transclusion|transcluded]] in other pages, i.e. templates, whether in the template namespace or not. | ||
5行目: | 7行目: | ||
==Usage== | ==Usage== | ||
===Normal=== | ===Normal=== | ||
− | + | <pre> | |
− | or | + | <noinclude>{{documentation}}<noinclude> |
− | + | or <noinclude>{{documentation|template:any page/doc}}<noinclude> | |
+ | </pre> | ||
This code should be added at the bottom of the template code, with no extra space before "<code><noinclude></code>" (which would cause extra space on pages where the template is used). The parameter can be used as shown above to transclude an arbitrary documentation page. | This code should be added at the bottom of the template code, with no extra space before "<code><noinclude></code>" (which would cause extra space on pages where the template is used). The parameter can be used as shown above to transclude an arbitrary documentation page. | ||
− | Add categories and interwiki links to the documentation page inside | + | Add categories and interwiki links to the documentation page inside includeonly tags. |
− | If the documentation page contains | + | If the documentation page contains includeonly or noinclude tags as part of the documentation, replace the "<" with "&lt;". |
===Customizing display=== | ===Customizing display=== | ||
40行目: | 43行目: | ||
[[eo:Ŝablono:Dok]] | [[eo:Ŝablono:Dok]] | ||
[[es:Plantilla:Uso de plantilla]] | [[es:Plantilla:Uso de plantilla]] | ||
− | [[fr:Modèle:Documentation]] | + | [[fr:Modèle:Documentation modèle]] |
[[hsb:Předłoha:Doc]] | [[hsb:Předłoha:Doc]] | ||
[[hu:Sablon:Sablondokumentáció]] | [[hu:Sablon:Sablondokumentáció]] | ||
48行目: | 51行目: | ||
[[pl:Szablon:Dokumentacja]] | [[pl:Szablon:Dokumentacja]] | ||
[[sl:Predloga:Dokumentacija]] | [[sl:Predloga:Dokumentacija]] | ||
− | [[uk:Шаблон: | + | [[uk:Шаблон:Doc]] |
− | [[zh:Template: | + | [[zh:Template:Template doc]] |
</includeonly> | </includeonly> |