Current revision |
Your text |
Line 10: |
Line 10: |
| ;;;;;;;;;;;; this one. They would be interpreted and cause portions | | ;;;;;;;;;;;; this one. They would be interpreted and cause portions |
| ;;;;;;;;;;;; of this comment block to be included in the template | | ;;;;;;;;;;;; of this comment block to be included in the template |
- | ;;;;;;;;;;;; output. For purposes of documentation in this comments | + | ;;;;;;;;;;;; output. For documentation purposes instead of angle |
- | ;;;;;;;;;;;; like this, instead of angle brakets: < >, we will use | + | ;;;;;;;;;;;; brakets: < >, we will use parentheses, such as |
- | ;;;;;;;;;;;; parentheses, such as (noinclude) (/noinclude), | + | ;;;;;;;;;;;; (noinclude) (/noinclude), (includeonly) (/includeonly). |
- | ;;;;;;;;;;;; (includeonly) (/includeonly).
| + | |
| ;;;;;;;;;;;; | | ;;;;;;;;;;;; |
| ;;;;;;;;;;;; To cause this template to produce these tags in its | | ;;;;;;;;;;;; To cause this template to produce these tags in its |
Line 25: |
Line 24: |
| ;;;;;;;;;;;; instead. | | ;;;;;;;;;;;; instead. |
| | | |
- | ;;;;;;;;;;;; The first line in this page (above), displays the | + | ;;;;;;;;;;;; Display the documentation from a separate page only when |
- | ;;;;;;;;;;;; documentation from a separate page only when the template
| + | ;;;;;;;;;;;; the template is viewed. |
- | ;;;;;;;;;;;; is viewed. | + | |
| ;;;;;;;;;;;; | | ;;;;;;;;;;;; |
| ;;;;;;;;;;;; (noinclude){{documentation}}(/noinclude) | | ;;;;;;;;;;;; (noinclude){{documentation}}(/noinclude) |
| | | |
- | ;;;;;;;;;;;; The remainder of the file is processed only when
| + | </noinclude>{{{|<}}}noinclude{{{|>}}} |
- | ;;;;;;;;;;;; transcluded (which should be by subst:)
| + | {{Based On Template|Boilerplate|Templates=y}} |
- | ;;;;;;;;;;;;
| + | This is a template for pages that are about {{subst:PAGENAME}}. |
- | ;;;;;;;;;;;; (includeonly)...(/includeonly)
| + | Include it by saving a blank page with |
| + | {{{|<}}}pre{{{|>}}} |
| + | {{subst:((}}Subst:{{subst:PAGENAME}}{{subst:))}} |
| + | {{{|<}}}/pre{{{|>}}} |
| | | |
- | ;;;;;;;;;;;; Within the transclusion part, comments (like this one)
| + | If you do, what you'll then get is this: |
- | ;;;;;;;;;;;; can be created which will be entirely ignored, by placing
| + | <hr/> |
- | ;;;;;;;;;;;; them in noinclude blocks:
| + | <hr/> |
- | ;;;;;;;;;;;;
| + | {{quote-page|{{subst:FULLPAGENAME}}/Boilerplate}} |
- | ;;;;;;;;;;;; (noinclude) any comment (/noinclude)
| + | {{{|<}}}/noinclude{{{|>}}}<noinclude> |
- | | + | |
- | ;;;;;;;;;;;; The newly created template starts with a
| + | |
- | ;;;;;;;;;;;; (noinclude)...(/noinclude) section which is what happens
| + | |
- | ;;;;;;;;;;;; when the template page is veiwed.
| + | |
- | | + | |
- | </noinclude>{{{|<}}}noinclude{{{|>}}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | ;;;;;;;;;;;; produce: <!-- {{XXXX/Doc/Related}} -->
| + | |
- | </noinclude>{{{|<}}}<noinclude>
| + | |
- | </noinclude>-- <noinclude>
| + | |
- | </noinclude>{{<noinclude>
| + | |
- | </noinclude>{{subst:PAGENAME}}<noinclude>
| + | |
- | </noinclude>/Doc/Related<noinclude>
| + | |
- | </noinclude>}}<noinclude>
| + | |
- | </noinclude> --<noinclude>
| + | |
- | </noinclude>{{{|>}}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>{{Based On Template|Boilerplate|Templates=y}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>This is a template for pages that are about {{subst:PAGENAME}}.<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>Include it by saving a blank page with<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>{{{|<}}}pre{{{|>}}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>{{subst:((}}Subst:{{subst:pagename as template|subst=subst:}}{{subst:))}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>{{{|<}}}/pre{{{|>}}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>If you do, what you'll then get is this:<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>{{quote-page|{{subst:FULLPAGENAME}}/Boilerplate}}<noinclude>
| + | |
- | </noinclude>{{subst:end of line character}}<noinclude>
| + | |
- | | + | |
- | </noinclude>{{{|<}}}/noinclude{{{|>}}}<noinclude>
| + | |
| | | |
| ;;;;;;;;;;;; Only when the template is transcluded, use the | | ;;;;;;;;;;;; Only when the template is transcluded, use the |
- | ;;;;;;;;;;;; following substitution code. | + | ;;;;;;;;;;;; substitution code. |
| ;;;;;;;;;;;; | | ;;;;;;;;;;;; |
- | ;;;;;;;;;;;; (includeonly)...(/includeonly) | + | ;;;;;;;;;;;; (includeonly)<!-- put your code here -->(/includeonly) |
- | | + | |
- | </noinclude>{{{|<}}}includeonly{{{|>}}}<noinclude> | + | |
- | | + | |
- | ;;;;;;;;;;;; Call using {{subst:...}} the specified page. Since
| + | |
- | ;;;;;;;;;;;; we're already being subst'd, this will cause the
| + | |
- | ;;;;;;;;;;;; specified page to be subst'd in immediately.
| + | |
- | | + | |
- | </noinclude>{{subst:((}}subst:<noinclude>
| + | |
- | | + | |
- | ;;;;;;;;;;;; The page that has the boilerplate text. This is a
| + | |
- | ;;;;;;;;;;;; separate page with no (noinclude) or (includeonly)
| + | |
- | ;;;;;;;;;;;; directives, so that it can be used with preload. See
| + | |
- | ;;;;;;;;;;;; Template:Link/Create for example.
| + | |
- | | + | |
- | </noinclude>{{subst:pagename as template|subst=subst:}}/Boilerplate<noinclude>
| + | |
- | | + | |
- | </noinclude>{{subst:))}}<noinclude>
| + | |
| | | |
- | </noinclude>{{{|<}}}/includeonly{{{|>}}}<noinclude> | + | </noinclude>{{{|<}}}includeonly{{{|>}}} |
| + | {{subst:((}}subst:{{subst:PAGENAME}}/Boilerplate{{subst:))}} |
| + | {{{|<}}}/includeonly{{{|>}}}<noinclude> |