Latest Neocron News and Information
- New test server patch #563 has been released to Vedeena
Difference between revisions of "Neocron Wiki:Templates"
From Neocron Wiki
m |
|||
Line 30: | Line 30: | ||
==Example Templates== | ==Example Templates== | ||
− | ''An example of the code used to make | + | ''An example of the code used to make the <nowiki>{{Move}}</nowiki> template'' |
+ | |||
+ | <pre> | ||
+ | <center> | ||
+ | <div class="tempbox-purple"> | ||
+ | <table width="98%" align="center"> | ||
+ | <tr> | ||
+ | <td width="48px" rowspan="3">[[Image:Icon-move.png|left|48px|Move]] </td> | ||
+ | <td>It has been suggested that this article should be moved to '''{{{1}}}''' </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td>{{hspc}}Please see the [[{{PAGENAME}}:Discussion|discussion]] here for more information</td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | <br> | ||
+ | </center> | ||
+ | |||
+ | <includeonly>[[Category:candidates_for_moving|{{PAGENAME}}]]</includeonly> | ||
+ | </pre> | ||
+ | |||
+ | When the template is transcluded onto the page using <nowiki>{{Move|Pagename}}</nowiki> then this is rendered: | ||
+ | |||
+ | {{Move|Pagename}} |
Revision as of 22:40, 26 March 2008
|
Templates
What are they used for, when should they be used, who should use them..etc.
Adding a Template
How to add a template, where to add the template, etc.
Editing a Template
How/why should a template be edited?
Creating a new Template
Guide to creating a new Template
Included CSS commands
Template based CSS commands
Example Templates
An example of the code used to make the {{Move}} template
<center> <div class="tempbox-purple"> <table width="98%" align="center"> <tr> <td width="48px" rowspan="3">[[Image:Icon-move.png|left|48px|Move]] </td> <td>It has been suggested that this article should be moved to '''{{{1}}}''' </td> </tr> <tr> <td>{{hspc}}Please see the [[{{PAGENAME}}:Discussion|discussion]] here for more information</td> </tr> </table> </div> <br> </center> <includeonly>[[Category:candidates_for_moving|{{PAGENAME}}]]</includeonly>
When the template is transcluded onto the page using {{Move|Pagename}} then this is rendered:
It has been suggested that this article should be moved to Pagename | |
|