「テンプレート:Documentation」の版間の差分
編集の要約なし |
編集の要約なし |
||
1行目: | 1行目: | ||
< | {{documentation/core2 | ||
{{# | | heading = {{{heading|¬}}} <!--Empty but defined means no header--> | ||
< | | heading-style = {{{heading-style|}}} | ||
| content = {{{content|}}} | |||
| link box = {{{link box|}}} <!--So "link box=off" works--> | |||
<!--Some namespaces must have the /doc, /sandbox and /testcases | |||
in talk space--> | |||
| docspace = | |||
{{#switch: {{SUBJECTSPACE}} | |||
| {{ns:0}} | |||
| {{ns:File}} | |||
| {{ns:MediaWiki}} | |||
| {{ns:Category}} = {{TALKSPACE}} | |||
| #default = {{SUBJECTSPACE}} | |||
}} | |||
| 1 = {{{1|}}} <!--Other docname, if fed--> | |||
<!--The namespace is added in /core2--> | |||
| template page = | |||
{{#switch: {{SUBPAGENAME}} | |||
| sandbox | |||
| testcases = {{BASEPAGENAME}} | |||
| #default = {{PAGENAME}} | |||
}} | |||
}}<!--End of green doc box--><noinclude> | |||
<!-- Add categories and interwikis to the /doc subpage, not here! --> | |||
</noinclude> |
2011年10月6日 (木) 15:31時点における最新版
[edit] [ ] ファイル:Template-info.svg Template documentation
Put documentation about a <template> in <template>/doc and then at the end of <template> put this:
<noinclude>{{Documentation}}</noinclude>
in a single line.
Template:Documentation will look if <template>/doc exists and if yes it will include <template>/doc in <template> page itself only when looking directly at the <template> page (not when you use actually use the <template> itself).
The above documentation is transcluded from テンプレート:Documentation/doc. (edit | history) Editors can experiment in this template's sandbox (create) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |