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

提供:GizmoLabs - だいたい CAD LISP なサイト
(ページの作成: <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|}}}...)
 
編集の要約なし
 
(同じ利用者による、間の2版が非表示)
1行目: 1行目:
<table class="nmbox" style="border:1px solid #AAAAAA; border-collapse:collapse; clear:both; font-size:85%; margin: 0.25em 0;">
{{documentation/core2
<tr style="background: #EEF3E2">
| heading = {{{heading|¬}}}  <!--Empty but defined means no header-->
{{#if:{{{image|}}}{{{header|}}}
| heading-style = {{{heading-style|}}}
| <th class="mbox-image" style="white-space: nowrap; padding: 4px 1em; border-right: 1px solid #aaaaaa;">{{{image|}}} {{{header|}}}</th>
| content = {{{content|}}}
| <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
| link box = {{{link box|}}}   <!--So "link box=off" works-->
}}
 
<td class="mbox-text" style="background: #F6F9ED;">{{{text|}}}</td>
<!--Some namespaces must have the /doc, /sandbox and /testcases
</tr></table><noinclude>
    in talk space-->
{{documentation}}
| 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月6日 (木) 15:31時点における最新版

[edit] [purge] ファイル: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).

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

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.