User:Raijinili/Template:P: Difference between revisions
m (Almost there) |
(Yay! It's ready!) |
||
Line 14: | Line 14: | ||
Just because it's not harmful, <nowiki>{{p}}</nowiki> produces just the word {{p}}. If you're going to do that, it's probably best to substitute it, like so: <nowiki>{{subst:p}}</nowiki>. This leaves only the final result in the source code. | Just because it's not harmful, <nowiki>{{p}}</nowiki> produces just the word {{p}}. If you're going to do that, it's probably best to substitute it, like so: <nowiki>{{subst:p}}</nowiki>. This leaves only the final result in the source code. | ||
==Tests== | ==Tests cases== | ||
{{User:Raijinili/Template:Nidoran|NidoranF}} | *{{User:Raijinili/Template:Nidoran|NidoranF}} | ||
{{User:Raijinili/Template:Nidoran|Nidoran-F}} | *{{User:Raijinili/Template:Nidoran|Nidoran-F}} | ||
*{{User:Raijinili/Template:P}} | |||
*{{User:Raijinili/Template:P|Mr. Mime}} | |||
*{{User:Raijinili/Template:P|Mr. Mime|Mimey}} | |||
*{{User:Raijinili/Template:P|NidoranF}} | |||
*{{User:Raijinili/Template:P|NidoranF|Nidoran-F}} | |||
<!--[[Category:Link templates]]--></noinclude> | <!--[[Category:Link templates]]--></noinclude> | ||
Latest revision as of 12:23, 20 April 2009
Pokémon
Usage
This is a template for easier linking to Pokémon articles dealing with the actual creatures — since those articles should be named like Bulbasaur (Pokémon), this article makes it easier to create this link.
To use this, type this:
{{p|Name of Pokémon}}
This works because {{{1}}} is presented as a variable, and this template generates what you right in the "Name of Pokémon area" as the {{{1}}}, thus creating the proper link.
There is a second optional parameter which allows the editor to specify the visible words of the link (in other words, the text actually shown). For example, {{p|Mr. Mime|Mimey}} gives Mimey.
Just because it's not harmful, {{p}} produces just the word [[{{{1}}} (Pokémon)|{{{1}}}]]. If you're going to do that, it's probably best to substitute it, like so: {{subst:p}}. This leaves only the final result in the source code.
Tests cases
- Nidoran♀
- Nidoran♀
- Pokémon