Mozilla Community:Templates
From Mozilla Community - Bringing Mozilla Together
A template is a message that is located somewhere on the Mozilla Community that can be used on another Mozilla Community page by adding the name of the template (syntaxed like {{templatename}}) to the page. Whenever the template is changed on its external location, it changes on all the pages it has been placed on, which makes it useful as both a shortcut and for style (simular to SSI).
To create a template, someone would create a page called something like Template:templatename (the template must be in the template namespace). The page they created would contain text that they would like to be on more than one page. Then, they would add {{templatename}} to the pages they wanted the text on.
To produce the text of a template, but not have it look like {{templatename}} when you edit the page, type {{subst:templatename}}
[edit] List of templates
| Type this: | To produce this: | ||
| {{fairuse}}</td> | This work is copyrighted. The individual who uploaded this work and first used it in an article, and subsequent persons who place it into articles assert that this qualifies as fair use of the material under United States copyright law. | ||
| | {{fairusein}}</td> | This work is copyrighted. The person who added this tag asserts that the use of this work in [[w:{{{1}}}|{{{1}}}]] qualified as fair use of the material under United States copyright law. | ||
| {{Noncommercial}} |
| ||
| {{GFDL}}</td> | Permission is granted to copy, distribute and/or modify this image under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. Subject to disclaimers.
| ||
| {{stub}}</td> | |||
| {{sectstub}} |
| ||
| {{Mozmat}} | |||
| {{Logoentry}} |
| ||
| {{Message box|image=lock-icon.jpg|heading=Example|message=Hello!}} |
| ||
| {{Wrongtitle|title=real_title}} |
| ||
| You can modify this to test a template before making one. |
