Jpop Wiki:Templates

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.

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.

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.

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.

Profile templates= Other content templates= Page related templates= Category page 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.
 * 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.
 * 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.

Profile Templates= or    or    Romanization (Text in Japanese) or    or     or   Other content templates= Page Name Page Name or  Page related Templates= Category page templates= {{CategoryTexts/ReleaseCollaborationMiniAlbums {{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}}

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.