About Templates[]
Templates are pieces of code that, when called in a page, substitutes that call with some kind of content.
They are used to automate tasks and to make editing easier and faster.
Some examples of content provided by templates are text, categories, data that involves calculations or logic decisions and formatting/visual features.
How to use templates[]
Some templates require parameters in order to work, and others don't. The order of the parameters is also important. Check each template to see how they work.
Visual Mode[]
Following the update to the new UCP editor, FANDOM now has a tool for adding templates in Visual Mode. You can find it in the "INSERT" section in the visual editor top menu.
With it, you can search for a template by name and after selecting it, you can type its parameters in the provided fields and it will generate the code for you and place it where your caret is.
Source Mode[]
Templates can be typed anywhere in a page with the following syntax:
Syntax[]
Templates are called using double curly brackets.
Inside it, the first word must be the template name (case sensitive, don't forget spaces).
To pass parameters to a template, write them after the template name separating them with a pipe.
Examples[]
- {{TemplateName}}
- {{TemplateName|parameter1}}
- {{TemplateName|parameter1|parameter2}}
Detailed List of templates[]
Below is a detailed list of the most commonly used templates in the wiki and a short description of what they do. Check their documentation page to see what they do and how they work in more detail.
For a complete list of templates, check Category:Templates.
- Birthday - Displays the date in "Monthname Day, Year" format, calculates and displays the age and adds categories.
- Blood - Displays the blood type and adds its category.
- Bwh - Displays bust-waist-hip measurements in both metric and imperial systems.
- Colortext - Displays text in a specified color.
- Height - Displays the height in both metric and imperial systems.
- Kana - Displays a name written with kanji with its spelling in hiragana on top of it.
- Mcolor - Displays the image color of a person given a HEX code and a color name.
- Residence - Links a location to its pages on Wikipedia and adds the corresponding categories. Used for people only.
- Residence Bands - Links a location to its pages on Wikipedia and adds the corresponding categories. Used for bands only.
- Residence Groups - Links a location to its pages on Wikipedia and adds the corresponding categories. Used for groups only.
- Sns - Gather external links in infoboxes by showing clickable icons that links to given profiles in websites.
- Zodiac - Finds the zodiac sign given a date. Displays it with its symbol and adds its category.
Ready to use templates[]
Below is a list of ready to use templates that you can copy and paste to your pages and just change the parameters accordingly.
{{Birthday|year|month|day}} or {{Birthday|month|day}}
{{Blood|A}}
{{Bwh|bust|waist|hip}}
{{Colortext|#000000|Black}} or {{Colortext|#ffffff|White|s}}
{{Height|height in cm}}
{{Kana|Kanji|Hiragana}}
{{Mcolor|#HEXCODE|Color Name}}
{{Residence|Prefecture|Japan}} or {{Residence|City|Prefecture|Japan}}
{{Residence Bands|Prefecture|Japan}} or {{Residence Bands|City|Prefecture|Japan}}
{{Residence Groups|Prefecture|Japan}} or {{Residence Groups|City|Prefecture|Japan}}
{{Sns|twitter=username|instagram=username|youtube=URI|tiktok=username|showroom=username|facebook=username|blog=url|soundcloud=username}}
{{-}}
{{clrl}}
{{Collapse|content to hide}}
[[Wikipedia:en:Page Name|Page Name]]
[[w:c:wikiname:Page Name|Page Name]]
{{Miss iD|year}} or {{Miss iD|year|profile link}}
{{Reflist}}
{{Releasetime|year|month|day}}
{{Scroll box|My text here}}
{{Spotify|spotify:album:URI}}
{{delete}}
{{disambig}}
{{DISPLAYTITLE:name}}
{{Lowercase title}}
{{PAGENAME}}
{{CategoryTexts/Top}}
{{CategoryTexts/Videos}}
{{CategoryTexts/MemberList}}
{{CategoryTexts/MemberList-ng}}
{{CategoryTexts/FormerMemberList}}
{{CategoryTexts/Generation}}
{{CategoryTexts/GenerationMember}}
{{CategoryTexts/DisbandListGroup}}
{{CategoryTexts/DisbandListBand}}
{{CategoryTexts/ReleaseAlbums}}
{{CategoryTexts/ReleaseDigitalAlbums}}
{{CategoryTexts/ReleaseBestAlbums}}
{{CategoryTexts/ReleaseDigitalBestAlbums}}
{{CategoryTexts/ReleaseCoverAlbums}}
{{CategoryTexts/ReleaseCollaborationAlbums}}
{{CategoryTexts/ReleaseCompilationAlbums}}
{{CategoryTexts/ReleaseConceptAlbums}}
{{CategoryTexts/ReleaseLiveAlbums}}
{{CategoryTexts/ReleaseRemixAlbums}}
{{CategoryTexts/ReleaseMiniAlbums}}
{{CategoryTexts/ReleaseDigitalMiniAlbums}}
{{CategoryTexts/ReleaseCollaborationMiniAlbums
<nowiki>{{CategoryTexts/ReleaseSingles}}
{{CategoryTexts/ReleaseDigitalSingles}}
{{CategoryTexts/ReleaseCoverSingles}}
{{CategoryTexts/ReleaseCollaborationSingles}}
{{CategoryTexts/ReleaseDVDSingles}}
{{CategoryTexts/ReleaseVideoReleases}}
{{CategoryTexts/ReleaseCollaborationVideoReleases}}
{{CategoryTexts/ReleasePhotobooks}}
{{CategoryTexts/ReleaseDigitalPhotobooks}}
{{CategoryTexts/ReleaseMusicCards}}
{{CategoryTexts/ReleaseRecords}}
{{CategoryTexts/ReleaseEPs}}
{{CategoryTexts/ReleaseLPs}}
{{CategoryTexts/ReleaseCoverSongs}}
{{CategoryTexts/Images/Top}}
{{CategoryTexts/Images/Solo}}
{{CategoryTexts/Images/Solo2}}
{{CategoryTexts/Images/Member}}
{{CategoryTexts/Images/Albums}}
{{CategoryTexts/Images/DigitalAlbums}}
{{CategoryTexts/Images/BestAlbums}}
{{CategoryTexts/Images/CoverAlbums}}
{{CategoryTexts/Images/DigitalBestAlbums}}
{{CategoryTexts/Images/CollaborationAlbums}}
{{CategoryTexts/Images/CompilationAlbums}}
{{CategoryTexts/Images/ConceptAlbums}}
{{CategoryTexts/Images/LiveAlbums}}
{{CategoryTexts/Images/RemixAlbums}}
{{CategoryTexts/Images/MiniAlbums}}
{{CategoryTexts/Images/DigitalMiniAlbums}}
{{CategoryTexts/Images/CollaborationMiniAlbums}}
{{CategoryTexts/Images/Singles}}
{{CategoryTexts/Images/DigitalSingles}}
{{CategoryTexts/Images/CoverSingles}}
{{CategoryTexts/Images/CollaborationSingles}}
{{CategoryTexts/Images/DVDSingles}}
{{CategoryTexts/Images/VideoReleases}}
{{CategoryTexts/Images/CollaborationVideoReleases}}
{{CategoryTexts/Images/Photobooks}}
{{CategoryTexts/Images/DigitalPhotobooks}}
{{CategoryTexts/Images/MusicCards}}
{{CategoryTexts/Images/Records}}
{{CategoryTexts/Images/EPs}}
{{CategoryTexts/Images/LPs}}
Creating Templates[]
Can I create my own templates?[]
If you think a new template could make things easier for you and other editors, then yes, go for it!
You can start by reading Help:Template on wikipedia and having a look at how other templates were written. Basic programming knowledge is advised. Templates Wiki also have a lot of templates that might do what you're looking for.
When creating templates, please refrain from creating templates that do something already covered by an existing template, since it would take a lot of effort to substitute a template in all of the pages it's currently in use. If you have any ideas on how to improve existing templates, reach us on Discord and we'll see what we can do.
Can I modify existing templates?[]
Have in mind that templates are being used all over the wiki, so breaking a template could ruin several pages. For this reason, important templates are locked to be edited only by administrators.
If you want to update an existing template, it is advised to copy its code and create a new template for testing purposes. Once you are sure that it works and won't break anything, you can move the code to the right place and mark that test template for deletion.