NBITTRPG Wiki:Manual of Style/Templates: Difference between revisions

fixed syntax highlighting errors
m format fix we have {{t}} now
 
Line 1: Line 1:
{{MoSNavBox}}
{{MoSNavBox}}
This is a page for specific information on template categorization and language used to describe them on this wiki. It's also an instructional page on how to use existing templates.
This is a page for specific information on template categorization and language used to describe them on this wiki. It's also an instructional page on how to use existing templates. To make your own template, go to the URL and after the ".xyz/", type Template:[Template Name]. This will bring you to an entirely new page that you can then create a template on.
__TOC__
To make your own template, go to the URL and after the ".xyz/", type Template:[Template Name]. This will bring you to an entirely new page that you can then create a template on.


== Template Types ==
== Template Types ==
Line 14: Line 12:
When making and naming navigation boxes, please try and integrate "navbox" somewhere into the name of the template. This helps avoid confusion on what templates do what, as many templates may have similar names.
When making and naming navigation boxes, please try and integrate "navbox" somewhere into the name of the template. This helps avoid confusion on what templates do what, as many templates may have similar names.
=== Message Templates ===
=== Message Templates ===
Message templates inform users regarding information contained on a page. These are the templates like <code><nowiki>{{</nowiki>Stub<nowiki>}}</nowiki></code> or <code><nowiki>{{</nowiki>Spoilers<nowiki>}}</nowiki></code>.
Message templates inform users regarding information contained on a page. These are the templates like {{t|Stub}} or {{t|Spoilers}}.


There are no special rules in regard to naming these upon creation, just that they're kept short, and singular. This is to prevent confusion over categories, which are usually written in plural.
There are no special rules in regard to naming these upon creation, just that they're kept short, and singular. This is to prevent confusion over categories, which are usually written in plural.
Line 28: Line 26:
For other types of navigational boxes, they should be placed at the '''top''' like an infobox. An example would be the navigational box on the [[{{SITENAME}}:Manual of Style]].
For other types of navigational boxes, they should be placed at the '''top''' like an infobox. An example would be the navigational box on the [[{{SITENAME}}:Manual of Style]].
=== Message Templates ===
=== Message Templates ===
<code><nowiki>{{</nowiki>Stub<nowiki>}}</nowiki></code> is used for incomplete or pages with a lot of incorrect information. This is placed on top of the page above all other templates. Please be liberal with your usage of this template and add it to anything that's not finished. It helps people find pages to work on.  
{{t|Stub}} is used for incomplete or pages with a lot of incorrect information. This is placed on top of the page above all other templates. Please be liberal with your usage of this template and add it to anything that's not finished. It helps people find pages to work on.  


:: If you need to specify a reason for marking something as a stub, write <code><nowiki>{{</nowiki>Stub|Reason<nowiki>}}</nowiki></code> and replace "Reason" with a sentence explaining why.
:: If you need to specify a reason for marking something as a stub, write {{t|Stub|Reason}} and replace <Reason> with a sentence explaining why.


<code><nowiki>{{</nowiki>Spoilers<nowiki>}}</nowiki></code> is used for pages that have content that may spoil major plot points in their related campaign. This may be used for deaths, identity reveals, and much more if applicable. You may also be liberal with usage of this template. This also does not need to be listed at the top of the page and can be moved downwards. Doing this, however, may make it look ugly, so you might as well put it at the top.
{{t|Spoilers}} is used for pages that have content that may spoil major plot points in their related campaign. This may be used for deaths, identity reveals, and much more if applicable. You may also be liberal with usage of this template. This also does not need to be listed at the top of the page and can be moved downwards. Doing this, however, may make it look ugly, so you might as well put it at the top.


<code><nowiki>{{</nowiki>Delete<nowiki>}}</nowiki></code> is used for pages that are unnecessary or have been made on accident. This is to make sure the people with permissions to delete the page can see it and can be useful for allowing discussion before it's deleted.
{{t|Delete}} is used for pages that are unnecessary or have been made on accident. This is to make sure the people with permissions to delete the page can see it and can be useful for allowing discussion before it's deleted.


<code><nowiki>{{</nowiki>Cite<nowiki>}}</nowiki></code> is used for passages or claims that you believe require a citation. Can be used however you wish for added comedic effect, even.
{{t|Cite}} is used for passages or claims that you believe require a citation. Can be used however you wish for added comedic effect, even.
__NOEDITSECTION__
__NOEDITSECTION__