「テンプレート:Documentation」の版間の差分
(ページの作成: <table class="nmbox" style="border:1px solid #AAAAAA; border-collapse:collapse; clear:both; font-size:85%; margin: 0.25em 0;"> <tr style="background: #EEF3E2"> {{#if:{{{image|}}}...) |
編集の要約なし |
||
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> | </noinclude> |
2011年10月4日 (火) 07:20時点における版
[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. |