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

Templates can be used in any section of a page when editing in source mode.

Visual mode does not support templates in most of a page, however you can still use them in the fields of an infobox.

Syntax

Templates are called using double curly brackets.

Inside it, the first word must be the template name (case sensitive, don't forget spaces).

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.

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.

  • 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.
  • Instagram - Creates a link to an Instagram profile and displays its logo.
  • Kana - Displays a name written with kanji with its spelling in hiragana on top of it.
  • Legend2 - Displays the image color of a person given a HEX code and a color name.
  • Nihongo - Displays romanized text and its version in Japanese between ().
  • 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.
  • Twitter - Creates a link to a Twitter profile and displays its logo.
  • Zodiac - Finds the zodiac sign given a date. Displays it with its symbol and adds its category.

  • {{-}} - Used below small galleries or other elements with position="left" for preventing the following content from occupying the remaining space in the right.
  • clrl - Used below small galleries or other elements with position="left" for preventing the following content from occupying the remaining space in the right.
  • clrr - Used below small galleries or other elements with position="left" for preventing the following content from occupying the remaining space in the right.
  • Wikipedia:en:Page Name - Creates a link to a Wikipedia page.
  • w:c:wikiname:Page Name - Creates a link to a page in another Wiki.
  • Miss iD - Adds information related to the contest Miss iD, such as status in the competition, profile link and category.
  • Reflist - Returns a reference list. Can be used instead of <references></references>.
  • Releasetime - Displays the current wording for a release whether its release date is in the future or past. It also displays the date in "Monthname Day, Year" format.
  • Suicide - Creates a collapse button with a warning message that hides text about suicide.

  • delete - Marks a page as candidate for deletion. Only admins can delete pages.
  • Disambig - Used for creating disambiguation page.
  • DISPLAYTITLE - Changes the name of a page displayed in its title and header. Useful for removing things between ().
  • Lowercase title - Changes the name of a page displayed in its title and header to lowercase.
  • PAGENAME - Returns the name of the current page. Not affected by DISPLAYTITLE or Lowercase title.
  • Stub - Marks a page as incomplete, with little information and needing expanding.

  • CategoryTexts - This is a set of templates used to create category pages. They will return all the content required to create a category page. Just type the correct variation for each type of category and publish the page. Go to the documentation page for more info about the many variations and where they should be used.

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}}
{{Instagram|username}}
{{Kana|Kanji|Hiragana}}
{{Legend2|#HEXCODE|Color Name}}
{{Nihongo|Romanization|Text in Japanese}}
{{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}}
{{Twitter|username}}
{{Zodiac|month|day}}

{{-}}
{{clrl}}
{{clrr}}
[[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}}
{{Suicide|text to hide}}

{{delete}}
{{disambig}}
{{DISPLAYTITLE:name}}
{{Lowercase title}}
{{PAGENAME}}
{{Stub}}

{{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}}
{{CategoryTexts/Images/CoverSongs}}

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.

If you want to update an existing template, do it by copying its code and creating a new template for testing purposes. Once you are 100% sure that it works and won't break anything, you can move the code back to the original and delete that test template.

Community content is available under CC-BY-SA unless otherwise noted.