Editing Template:Boilerplate

From PCSAR

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

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}}
-
;;;;;;;;;;;;
+
This is a template for pages that are about ...
-
;;;;;;;;;;;; (includeonly)...(/includeonly)
+
Include it by saving a blank page with
 +
{{{|<}}}pre{{{|>}}}
 +
{{((}}Subst:Event{{))}}
 +
{{{|<}}}/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|Template:Person/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:Person/Boilerplate}}
 +
{{{|<}}}/includeonly{{{|>}}}<noinclude>

Please note that all contributions to PCSAR are considered to be released under the Attribution-Share Alike 3.0 Unported (see PCSAR:Copyrights for details). If you don't want your writing to be edited mercilessly and redistributed at will, then don't submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. DO NOT SUBMIT COPYRIGHTED WORK WITHOUT PERMISSION!


Cancel | Editing help (opens in new window)
Personal tools