Changeset 59

Show
Ignore:
Timestamp:
03/21/07 19:33:54 (3 years ago)
Author:
eevee
Message:

Added some sexy see-also linkage to Pokemon pages.

Location:
veekun/trunk
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/templates/dex/page/pokemon.tt

    r48 r59  
    115115[% evdepth = 0; evbaby = this.flags.match('baby') ? 1 : 0; depthnode = evtree %] 
    116116[% WHILE depthnode; evdepth = evdepth + 1; depthnode = depthnode.children.0; END %] 
    117 <p>[ <a href="[% c.uri_for('pokemon/compare', { poke => nodelist_flat }) %]">Comparison of this evolution chain</a> ]</p> 
     117<p> <a href="[% c.uri_for('pokemon/compare', { poke => nodelist_flat }) %]"><img src="/images/see-also.png" alt="See also:"/> Comparison of this evolution chain</a> </p> 
    118118<table class="dex-basic dex-evchain"> 
    119119<tr>[% '<th>Baby</th>' IF evbaby %]<th>Basic</th>[% '<th>Stage 1</th>' IF evdepth - evbaby >= 2 %][% '<th>Stage 2</th>' IF evdepth - evbaby >= 3 %]</tr> 
     
    253253 
    254254<h1>Breeding Compatibility</h1> 
     255<p> <a href="[% c.uri_for('pokemon/search', { breed => this.breeding_groups, baseform => 'on' }) %]"><img src="/images/see-also.png" alt="See also:"/> This list in the Pok&eacute;mon search</a> </p> 
     256<p> <a href="[% c.uri_for('pokemon/search', { breed => this.breeding_groups }) %]"><img src="/images/see-also.png" alt="See also:"/> All Pok&eacute;mon that can breed with [% this.name %]</a> </p> 
    255257 
    256258[% IF this.id == 131 %] 
     
    264266<p>Keep in mind that gender possibilities may prevent any actual breeding; nevertheless, pairs such as <a href="[% dex_uri('pokemon', 'nidoran f') %]">Nidoran F</a> and <a href="[% dex_uri('pokemon', 'kangaskhan') %]">Kangaskhan</a> are still technically valid.  This may be "fixed" someday, when I figure out if it <em>should</em> be fixed.</p> 
    265267<p>Also remember that any gendered Pok&eacute;mon can breed with <a href="[% dex_uri('pokemon', 'ditto') %]">Ditto</a>.</p> 
    266 <p>[ <a href="[% c.uri('Dex::Search', 'pokemon_search', { breed => this.breeding_groups, baseform => 'on' }) %]">baseform Pok&eacute;mon that can breed with [% this.name %]</a> (equivalent to this list); <a href="[% c.uri('Dex::Search', 'pokemon_search', { breed => this.breeding_groups }) %]">all Pok&eacute;mon that can breed with [% this.name %]</a> ]</p> 
    267268[%     breedables_ct = 0 %] 
    268269[%     WHILE (pokemon = breedables_rs.next) %] 
     
    303304 
    304305<h1>Move List</h1> 
     306<p> <a href="[% c.uri_for('moves/search', { pokemon => this.name }) %]"><img src="/images/see-also.png" alt="See also:"/> This list in the move search</a> </p> 
     307<p> <a href="[% c.uri_for('moves/search', { pokemon => this.name }) %]"><img src="/images/see-also.png" alt="See also:"/> Contest list</a> </p> 
    305308<p> The TM table may be difficult to read depending on how you want to use it.  If you want to see just the TMs for one version, you may want to try the <a href="[% dex_uri('moves', 'search', { pokemon => this.name, method => 'machine' }) %]">move search</a>. </p> 
    306309<p> Note: accuracies are for G/S/C and RuSa.  Keep in mind that R/B/Y accuracies are about 0.4% (1 in 255) lower than those shown. </p>