「テンプレート:Documentation」の版間の差分

提供:GizmoLabs - だいたい CAD LISP なサイト
編集の要約なし
編集の要約なし
1行目: 1行目:
{{documentation/core2
<includeonly>
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
{{#ifexist:{{FULLPAGENAME}}/doc|{{{{FULLPAGENAME}}/doc}}|}}</includeonly>
| heading-style = {{{heading-style|}}}
<noinclude>{{Template:Documentation/doc}}</noinclude>
| 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月4日 (火) 13:26時点における版

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).

テンプレート:Blend-doc-repository/Template