Bulbanews:Template guide: Difference between revisions

 
(19 intermediate revisions by 4 users not shown)
Line 12: Line 12:
* {{template|bp}} - use this template for linking to an article on Bulbapedia.
* {{template|bp}} - use this template for linking to an article on Bulbapedia.
** Example - <code><nowiki>{{bp|Main Page}}</nowiki></code> becomes {{bp|Main Page}}
** Example - <code><nowiki>{{bp|Main Page}}</nowiki></code> becomes {{bp|Main Page}}
* {{template|forum}} - use when linking to a forum article.
** Example - <code><nowiki>{{forum|12345|page}}</nowiki></code> results in {{forum|12345|page}}
* {{template|ga}} - use this template for linking to an in-game character on Bulbapedia.
* {{template|ga}} - use this template for linking to an in-game character on Bulbapedia.
** Example - <code><nowiki>{{ga|Gold}}</nowiki></code> becomes {{ga|Gold}}
** Example - <code><nowiki>{{ga|Gold}}</nowiki></code> becomes {{ga|Gold}}
Line 17: Line 19:
** Example - <code><nowiki>{{game|Platinum}}</nowiki></code> becomes {{game|Platinum}}
** Example - <code><nowiki>{{game|Platinum}}</nowiki></code> becomes {{game|Platinum}}
*** Example - <code><nowiki>{{game|HeartGold and SoulSilver|s}}</nowiki></code> becomes {{game|HeartGold and SoulSilver|s}} (does not work for {{template|v}}, use {{template|v2}} instead)
*** Example - <code><nowiki>{{game|HeartGold and SoulSilver|s}}</nowiki></code> becomes {{game|HeartGold and SoulSilver|s}} (does not work for {{template|v}}, use {{template|v2}} instead)
* {{template|game2}} - use this template for linking to three video games on Bulbapedia.
* {{template|game2}}/{{template|3v2}} - use this template for linking to three video games on Bulbapedia.
** Example - <code><nowiki>{{game2|Diamond|Pearl|Platinum}}</nowiki></code> becomes {{game2|Diamond|Pearl|Platinum}}
** Example - <code><nowiki>{{game2|Diamond|Pearl|Platinum}}</nowiki></code> becomes {{game2|Diamond|Pearl|Platinum}}
* {{template|m}} - use this template for linking to a move on Bulbapedia.
* {{template|m}} - use this template for linking to a move on Bulbapedia.
Line 25: Line 27:
* {{template|p}} - use this template for linking to a specific Pokémon on Bulbapedia.
* {{template|p}} - use this template for linking to a specific Pokémon on Bulbapedia.
** Example - <code><nowiki>{{p|Bulbasaur}}</nowiki></code> becomes {{p|Bulbasaur}}
** Example - <code><nowiki>{{p|Bulbasaur}}</nowiki></code> becomes {{p|Bulbasaur}}
* {{template|shiny}} - use this template for linking to the article {{bp|Alternate coloration}} on Bulbapedia while using the word "shiny.
* {{template|series}}/{{template|series2}} - use this template when linking to an anime series on Bulbapedia.
** Example - <code><nowiki>{{series2|Diamond & Pearl}}</nowiki></code> becomes {{series2|Diamond & Pearl}}
** Example - <code><nowiki>{{series|Diamond & Pearl}}</nowiki></code> becomes {{series|Diamond & Pearl}}
* {{template|shiny}} - use this template for linking to the article {{bp|Alternate coloration}} on Bulbapedia while using the word "shiny".
** Example - <code><nowiki>{{shiny}}</nowiki></code> becomes {{shiny}}
** Example - <code><nowiki>{{shiny}}</nowiki></code> becomes {{shiny}}
* {{template|TCG}} - use this template for linking to a Trading Card Game set on Bulbapedia.
* {{template|TCG}} - use this template for linking to a Trading Card Game set on Bulbapedia.
Line 31: Line 36:
* {{template|template}} - use this template for linking to a template.
* {{template|template}} - use this template for linking to a template.
** Example - <code><nowiki>{{template|bp}}</nowiki></code> becomes {{template|bp}}
** Example - <code><nowiki>{{template|bp}}</nowiki></code> becomes {{template|bp}}
* {{template|u}} - use when linking to a user or their talk page.
** Example - <code><nowiki>{{u|Argy}}</nowiki></code> becomes {{u|Argy}}
** Example - <code><nowiki>{{u|Argy|talk=yes}}</nowiki></code> becomes {{u|Argy|talk=yes}}
* {{template|v}}/{{template|v2}} - see {{template|game}}
* {{template|v}}/{{template|v2}} - see {{template|game}}
** Example - <code><nowiki>{{v|HeartGold}}</nowiki></code> becomes {{v|HeartGold}}
** Example - <code><nowiki>{{v2|SoulSilver}}</nowiki></code> becomes {{v2|SoulSilver}}
* {{template|wp}} - use this template for linking to an article on Wikipedia.
* {{template|wp}} - use this template for linking to an article on Wikipedia.
** Example - <code><nowiki>{{wp|Bulbasaur}}</nowiki></code> becomes {{wp|Bulbasaur}}
** Example - <code><nowiki>{{wp|Bulbasaur}}</nowiki></code> becomes {{wp|Bulbasaur}}
=== Link color templates ===
=== Link color templates ===
Use these for the [[This week]] page.
Use these for the [[Front page/Next on TV|Next on TV]] page.
* {{template|ancolor}} - use this template for linking to a character in the anime on Bulbapedia.
* {{template|ancolor}} - use this template for linking to a character in the anime on Bulbapedia.
** Example - <code><nowiki>{{ancolor|May|000}}</nowiki></code> becomes {{ancolor|May|000}}
** Example - <code><nowiki>{{ancolor|May|000}}</nowiki></code> becomes {{ancolor|May|000}}
Line 46: Line 56:


== Image templates ==
== Image templates ==
* {{template|img}} - use this template for linking to an image from the Archives.
** Example - <code><nowiki>{{img|GSDS logo.png|HeartGold and SoulSilver logos}}</nowiki></code> becomes {{img|GSDS logo.png|HeartGold and SoulSilver logos}}(see right)
*** You can also set where and how large the thumbnail will be: <code><nowiki>{{img|GSDS logo.png|HeartGold and SoulSilver logos|left|50px}}</nowiki></code> becomes (see left)
{{img|GSDS logo.png|HeartGold and SoulSilver logos|left|50px}}
* {{template|ms}} - use this template for linking to a mini-sprite of a Pokémon.
* {{template|ms}} - use this template for linking to a mini-sprite of a Pokémon.
** Example - <code><nowiki>{{ms|001}}</nowiki></code> becomes {{ms|001}}
** Example - <code><nowiki>{{ms|001}}</nowiki></code> becomes {{ms|001}}
* {{template|sprite}} - use this template for linking to a sprite of a Pokémon.
* {{template|sprite}} - use this template for linking to a sprite of a Pokémon.
** Example - <code><nowiki>{{sprite|003}}</nowiki></code> becomes {{sprite|003}}
** Example - <code><nowiki>{{sprite|003}}</nowiki></code> becomes {{sprite|003}}
== Other templates ==
* {{template|rborder}} - use to make rounded borders.
** Example - <code><nowiki>{{rborder|1em|10px}}</nowiki></code> would insert <code>{{rborder|1em|10px}}</code>
* {{template|ud}} - use when making an update in an article.
** Example - <code><nowiki>{{ud}}}</nowiki></code> becomes {{ud}}
* {{template|tt}} - use when explaining something.
** Example - <code><nowiki>{{tt|Pikachu|male}}}</nowiki></code> becomes {{tt|Pikachu|male}}
[[Category:Bulbanews guides]]

Latest revision as of 22:30, 3 June 2010

This template guide will show any writer how to use templates properly in an article. The templates are written in alphabetical order.

Link templates

  • {{a}} - use this template for linking to an ability on Bulbapedia.
  • {{AP}} - use this template for linking to one of Ash's Pokémon on Bulbapedia.
    • Example - {{AP|Pikachu}} becomes Pikachu
  • {{an}} - use this template for linking to a character in the anime on Bulbapedia.
    • Example - {{an|May}} becomes May
  • {{bn}} - use this template for linking to an special page on Bulbanews.
  • {{bp}} - use this template for linking to an article on Bulbapedia.
  • {{forum}} - use when linking to a forum article.
    • Example - {{forum|12345|page}} results in page
  • {{ga}} - use this template for linking to an in-game character on Bulbapedia.
    • Example - {{ga|Gold}} becomes Gold
  • {{game}} or {{v}}/{{v2}} - use this template for linking to one to two video games on Bulbapedia.
  • {{game2}}/{{3v2}} - use this template for linking to three video games on Bulbapedia.
  • {{m}} - use this template for linking to a move on Bulbapedia.
  • {{m4}} - use this template for linking to a moveset on Bulbapedia.
  • {{p}} - use this template for linking to a specific Pokémon on Bulbapedia.
  • {{series}}/{{series2}} - use this template when linking to an anime series on Bulbapedia.
  • {{shiny}} - use this template for linking to the article Alternate coloration on Bulbapedia while using the word "shiny".
    • Example - {{shiny}} becomes Shiny
  • {{TCG}} - use this template for linking to a Trading Card Game set on Bulbapedia.
    • Example - {{TCG|Platinum}} becomes Platinum
  • {{template}} - use this template for linking to a template.
    • Example - {{template|bp}} becomes {{bp}}
  • {{u}} - use when linking to a user or their talk page.
    • Example - {{u|Argy}} becomes Argy
    • Example - {{u|Argy|talk=yes}} becomes Argy
  • {{v}}/{{v2}} - see {{game}}
  • {{wp}} - use this template for linking to an article on Wikipedia.

Link color templates

Use these for the Next on TV page.

  • {{ancolor}} - use this template for linking to a character in the anime on Bulbapedia.
    • Example - {{ancolor|May|000}} becomes May
  • {{color2}} - use this template for linking to an article on Bulbapedia.
    • Example - {{color2|000|Pokémon}} becomes Pokémon
  • {{pcolor}} - use this template for linking to a specific Pokémon on Bulbapedia.
    • Example - {{pcolor|Charizard|000}} becomes Charizard
  • {{wpcolor}} - use this template for linking to an article on Wikipedia.
    • Example - {{wpcolor|Japan|000}} becomes Pokémon

Image templates

  • {{ms}} - use this template for linking to a mini-sprite of a Pokémon.
    • Example - {{ms|001}} becomes 001
  • {{sprite}} - use this template for linking to a sprite of a Pokémon.
    • Example - {{sprite|003}} becomes 003

Other templates

  • {{rborder}} - use to make rounded borders.
    • Example - {{rborder|1em|10px}} would insert border-radius: 1em; -moz-border-radius: 1em; -webkit-border-radius: 1em; -khtml-border-radius: 1em; -icab-border-radius: 1em; -o-border-radius: 1em;
  • {{ud}} - use when making an update in an article.
    • Example - {{ud}}} becomes Update: 
  • {{tt}} - use when explaining something.
    • Example - {{tt|Pikachu|male}}} becomes Pikachu