No edit summary |
will make one later |
||
| Line 3: | Line 3: | ||
If you would like to experiment with templates somewhere, go to your '''User Page''' and go to the URL. Add "/sandbox" to the end of it and create a page there. You can edit this page however you wish. | If you would like to experiment with templates somewhere, go to your '''User Page''' and go to the URL. Add "/sandbox" to the end of it and create a page there. You can edit this page however you wish. | ||
== Quotes == | |||
For now, we have {{t|Quote}}, which results in something like this: | |||
{{Quote|hiiiii}} | |||
This will be later improved to contain more information. | |||
== Infobox Example == | == Infobox Example == | ||
{{NPC | {{NPC | ||
| Line 22: | Line 26: | ||
== Userbox Example == | == Userbox Example == | ||
There's a very good userbox template on the wiki. It can be customized immensely, as seen here. | |||
{{Userbox}} | {{Userbox}} | ||
{{Userbox | |||
| border-c = <!--border color (default=id-c)--> | |||
| border-s = <!--border width in pixels (default=1)--> 1 | |||
| float = <!--left|right|none (default=left)--> | |||
| id = <!--id image and/or text--> [[File:GadgerIcon.png|center|frameless|80x80px]] | |||
| id-a = <!--id horizontal alignment left/center/right/justify (default=center)--> | |||
| id-c = <!--id background color (default=#d0d0d0)--> | |||
| id-fc = <!--id font color (default=black)--> | |||
| id-h = <!--id box height in pixels (default=45)--> | |||
| id-lh = <!--id line height (default=1.25em)--> | |||
| id-op = <!--id other CSS parameters--> | |||
| id-p = <!--id cell padding (default=0 1px 0 0)--> | |||
| id-s = <!--id text size in points (default=14)--> | |||
| id-w = <!--id box width in pixels (default=45)--> | |||
| info = <!--info text and/or image--> This user is normal about [[Gadger]]. | |||
| info-a = <!--info horizontal alignment left/center/right/justify (default=left)--> | |||
| info-c = <!--info background color (default=#e0e0e0)--> #C1B09E | |||
| info-fc = <!--info font color (default=black)--> #fff | |||
| info-lh = <!--info line height (default=1.25em)--> | |||
| info-op = <!--info other CSS parameters--> | |||
| info-p = <!--info padding (default=0 4px 0 4px)--> | |||
| info-s = <!--info text size in points (default=8)--> | |||
| nocat = <!--block page category declarations (default=false)--> | |||
| usercategory = <!--user category (optional)--> | |||
}} | |||
<br> | |||
== Horizontal Line == | |||
If you ever wanted to use a horizontal line (like the one you can insert in a word document) {{t|line}} is the template. | |||
{{line}} | |||
There | == Spotify Embeds == | ||
Want to embed a playlist or song onto your userpage? Need to embed a playlist for a Renova page? There is an extension that allows for this. It should be self explanatory on how to use this, and you can embed <code>playlist</code>, <code>album</code>, and/or <code>track</code>. | |||
<br> | |||
<br> | |||
<spotify>playlist/6SiMIlgtfZ0zkMExLRSco4</spotify> | |||
<br> | |||
You may want to use a smaller box for single tracks. Use the {{t|Spotify small}} template for this special case. | |||
{{Spotify small|track|5qxIOX5SX5iPVpEt81xP4L}} | |||
Revision as of 05:33, 11 March 2025
The purpose of this article is to showcase templates in a way that can be inspected using the Edit Source feature. Many of these templates can be customized or used for personal pages. This should act as a reference for how templates can be used and/or changed. For specific information on what templates are used on what articles, see NBITTRPG Wiki:Manual of Style/Templates.
If you would like to experiment with templates somewhere, go to your User Page and go to the URL. Add "/sandbox" to the end of it and create a page there. You can edit this page however you wish.
Quotes
For now, we have {{Quote}}, which results in something like this:
“ hiiiii „
This will be later improved to contain more information.
Infobox Example
This wiki uses the Portable Infoboxes extension, which is a port of an extension used on Fandom to create the infoboxes used for NPC pages and the like. While it's possible to create infoboxes purely in CSS, this is a more simplified way of doing so. Regardless, there are ways to customize infoboxes so that they're the color or style you like.
Userbox Example
There's a very good userbox template on the wiki. It can be customized immensely, as seen here.
| id | info |
|---|
| This user is normal about Gadger. |
Horizontal Line
If you ever wanted to use a horizontal line (like the one you can insert in a word document) {{line}} is the template.
Spotify Embeds
Want to embed a playlist or song onto your userpage? Need to embed a playlist for a Renova page? There is an extension that allows for this. It should be self explanatory on how to use this, and you can embed playlist, album, and/or track.
You may want to use a smaller box for single tracks. Use the {{Spotify small}} template for this special case.

