Difference between revisions of "Template:Documentation"
From Mario Fan Games Galaxy Wiki
m (moved Template:Doc to Template:Documentation: To allow either alias to be used.) |
|||
Line 1: | Line 1: | ||
{{clear}} | {{clear}} | ||
− | <div style="border:1px solid black; margin:1em; margin-top:3em;"><div style="background:# | + | <div style="border:1px solid black; margin:1em; margin-top:3em;"><div style="background:#102; color:#f0f8ff; padding:1em; margin:0em;">'''Template documentation''' <span style="font-size:85%;">(for the above template, sometimes hidden or invisible)</span></div><div style="padding:1em; padding-bottom:0em; margin:0em;">{{tocright}} |
{{{{PAGENAME}}/doc}} | {{{{PAGENAME}}/doc}} | ||
− | </div>{{clear}}<div style="background:# | + | </div>{{clear}}<div style="background:#102; color:#f0f8ff; padding:0.5em; margin:0em; font-size:85%; text-align:right;">Visit [[Template:{{PAGENAME}}/doc]] to edit this text! ([[Template:Documentation|How does this work]]?)</div></div><noinclude> |
{{documentation}}[[Category:Template documentation| ]]</noinclude>[[Category: All templates]] | {{documentation}}[[Category:Template documentation| ]]</noinclude>[[Category: All templates]] |
Revision as of 00:30, 28 November 2012
Template documentation (for the above template, sometimes hidden or invisible)
This template provides a quick documentation for all other templates, to explain its proper use and abilities to members. This documentation is contained in a /doc subpage on the original page.
- Use
- On any template page, add the following code:
<noinclude>{{doc}}</noinclude>
- This will produce a box underneath the template. Click the red text to begin writing documentation.
- Example
- The documentation on {{clear}} links to the page Template:Clear/doc, containing the raw documentation. On its parent page, Template:Clear, the {{doc}} template calls that subpage and displays it within a styled divider.
Visit Template:Documentation/doc to edit this text! (How does this work?)
Template documentation (for the above template, sometimes hidden or invisible)
This template provides a quick documentation for all other templates, to explain its proper use and abilities to members. This documentation is contained in a /doc subpage on the original page.
- Use
- On any template page, add the following code:
<noinclude>{{doc}}</noinclude>
- This will produce a box underneath the template. Click the red text to begin writing documentation.
- Example
- The documentation on {{clear}} links to the page Template:Clear/doc, containing the raw documentation. On its parent page, Template:Clear, the {{doc}} template calls that subpage and displays it within a styled divider.
Visit Template:Documentation/doc to edit this text! (How does this work?)