Project:Templates

From Girlfriend Kari Wiki
Jump to: navigation, search

Templates are a really useful part of every wiki. They can specify a portion of text that can be reused by other pages, which is what most contributors should know that they are used for. Templates can also be used to create larger, more complex elements such as infoboxes and message boxes. They can also be used to shorten syntax that is done to create certain stuff.

For an example of template re-usability, the main page utilizes several templates in order to update data without having to actually edit the main page itself. The main page should rarely be updated itself, but rather its templates should be. Templates can be found by searching for Template:(TemplateName). For example, the event template is located at Template:Event.

For more information on how to use templates, visit Project:Using Templates.

Since VisualEditor is disabled on templates, you can feel free to use the various sandboxes on this wiki (Sandbox, Sandbox 1, Sandbox 2, and so forth) to create text that appears the way you want it to, if necessary. You can then copy the source code from that page onto the template page, but make sure to keep the documentation at the top of the page in-tact! (The stuff in the noinclude tag.)

For contributors, feel free to create templates as necessary.

For those that understand how wikis work well, we encourage you to create documentation for various templates that are harder to use or more difficult to understand. This includes setting up various complex templates that include the use of modules or other necessary elements. Please make sure to add documentation to the templates whenever possible, so its easier for other contributors to reuse.

This wiki uses Scribunto, which allows for the use of Lua scripts for Templates to easily do the latter of the above statement. If you don't understand this statement, don't worry too much about it.

Currently available Templates (ones that are used in a more standard-format, rather than just making text reusable):

To those who know what they're doing with templates and modules: Feel free to add more as necessary. The site has a lot of templates and modules already, but these are currently only the most basic ones used to get Main and Infobox working.