feat: ajoute pokedex g1

This commit is contained in:
Kazhnuz 2024-02-09 15:12:22 +01:00
parent 5cd0d4bf4a
commit 1c201112d8
616 changed files with 17267 additions and 0 deletions

16949
_data/pokered.json Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,45 @@
---
layout: layouts/parent.njk
---
<main id="skip" class="pokepage">
<div>
{{ content | safe }}
</div>
</main>
<aside id="more-info">
<div class="card">
<div>Retour au <a href="/pokedex/g1">pokédex</a></div>
</div>
<figure class="card" style="text-align:center;">
<img src="/img/pret/pokered/front/{{ pokemon.sprite }}.png" alt="Sprite de {{ pokemon.namefr }} dans Rouge et Bleu" />
<img src="/img/pret/pokered/front_rg/{{ pokemon.sprite }}.png" alt="Sprite de {{ pokemon.namefr }} dans Rouge et Vert" />
<img src="/img/pret/pokeyellow/front/{{ pokemon.sprite }}.png" alt="Sprite de {{ pokemon.namefr }} dans Jaune" />
<figcaption>{{ pokemon.namefr }} dans Rouge/Bleu, Rouge/Vert, et Jaune</figcaption>
</figure>
<div class="card maininfo" aria-label="Informations principales">
<ul>
<li><strong>Nom</strong>: {{ pokemon.namefr }}</li>
<li><strong>Nom en</strong>: {{ pokemon.nameen }}</li>
<li><strong>Nom jp</strong>: {{ pokemon.namejp }}</li>
<li><strong>N° Pokedex</strong>: {{ pokemon.baseStats.dex }}</li>
<li><strong>ID interne</strong>: {{ pokemon.internalId }}</li>
</ul>
</div>
<div class="card maininfo" aria-label="Data pokedex">
<ul>
<li><strong>{{ pokemon.pokedex.species }}</strong></li>
<li><strong>Taille</strong>: {{ pokemon.pokedex.height }}</li>
<li><strong>Poids</strong>: {{ pokemon.pokedex.weight }}</li>
<li><strong>Types</strong>: {{ pokemon.baseStats.types[0] }}{%- if pokemon.baseStats.types[0] !== pokemon.baseStats.types[1] -%}, {{ pokemon.baseStats.types[1] }} {%- endif -%}</li>
</ul>
</div>
<div class="card maininfo" aria-label="Informations capture">
<ul>
<li><strong>Taux capture</strong>: {{ pokemon.baseStats.catch_rate }}</li>
<li><strong>Bonus exp</strong>: {{ pokemon.baseStats.base_exp }}</li>
<li><strong>Evol exp</strong>: {{ pokemon.baseStats.growth_rate }}</li>
</ul>
</div>
</aside>

View file

@ -0,0 +1,33 @@
---
layout: layouts/parent.njk
---
<main id="skip">
<div>
{{ content | safe }}
</div>
</main>
<aside id="more-info">
<div class="card">
<h2>Sommaire</h2>
{{ content | toc | safe }}
</div>
</aside>
<script>
const myTable = document.querySelector("table.pokedex, .pokedex table");
if (myTable) {
let labels = {
placeholder: "Chercher...",
searchTitle: "Chercher dans le tableau",
perPage: "lignes par page",
noRows: "Aucune lignée trouvée",
info: "Résultats {start} à {end} sur {rows}",
noResults: "Aucun résultat ne correspond à votre recherche",
};
let dataTable = new simpleDatatables.DataTable("table.pokedex, .pokedex table", {
labels,
});
}
</script>

View file

@ -0,0 +1,55 @@
---
layout: layouts/pokelist.njk
eleventyNavigation:
parent: Autour des jeux
key: Pokédex (RBY)
order: 1
---
# Pokédex Génération 1
Cette page présente les pokémon possible à obtenir dans la première génération de Pokémon (Rouge, Bleu, Jaune).
Les données de ce pokedex sont récupéré directement des dessamblages pokered et pokeyellow (ainsi que la traduction pokered-fr) et transformée via un script en un format de donnée pour que le site puisse les lires.
Cliquez sur le nom d'un pokémon pour accéder à ses informations.
## Liste des pokémons
<table class="pokedex">
<thead>
<tr>
<th>Dex</th>
<th>ID</th>
<th>Nom</th>
<th>Types</th>
<th>PV</th>
<th>Atk</th>
<th>Def</th>
<th>Spd</th>
<th>Spe</th>
</tr>
</thead>
<tbody>
{%- for pokemon in pokered -%}
<tr>
<td>{{ pokemon.baseStats.dex }} </td>
<td>{{ pokemon.internalId }} </td>
<td> <a href="/pokedex/g1/{{ pokemon.namefr | replace("", "F") | replace("", "M") | slugify }}">{{ pokemon.namefr }}</a> </td>
<td> {{ pokemon.baseStats.types[0] }}{%- if pokemon.baseStats.types[0] !== pokemon.baseStats.types[1] -%}, {{ pokemon.baseStats.types[1] }} {%- endif -%} </td>
<td>{{ pokemon.baseStats.stats.hp }}</td>
<td>{{ pokemon.baseStats.stats.atk }}</td>
<td>{{ pokemon.baseStats.stats.def }}</td>
<td>{{ pokemon.baseStats.stats.spd }}</td>
<td>{{ pokemon.baseStats.stats.spe }}</td>
</tr>
{%- endfor -%}
<tbody>
</table>
## Crédits
- Données venant de pokered, pokeyellow
- Traductions récupérés via pokered-fr
- Pokedex inspiré de celui du Monde des Pokémon de Pix@lgo

View file

@ -0,0 +1,177 @@
---
pagination:
data: pokered
size: 1
alias: pokemon
permalink: "pokedex/g1/{{ pokemon.namefr | replace('♀', 'F') | replace('♂', 'M') | slugify }}/"
layout: layouts/pokedex.njk
---
<div style="display:flex;justify-content:space-between;">
<div>
{%- if pokemon.baseStats.dex > 1 -%}<a href="/pokedex/g1/{{ pokered[pokemon.baseStats.dex - 2].namefr | replace('♀', 'F') | replace('♂', 'M') | slugify }}">← {{ pokered[pokemon.baseStats.dex - 2].namefr }}</a> {%- endif -%}
</div>
<div>
{%- if pokemon.baseStats.dex < 151 -%}<a href="/pokedex/g1/{{ pokered[pokemon.baseStats.dex].namefr | replace('♀', 'F') | replace('♂', 'M') | slugify }}">{{ pokered[pokemon.baseStats.dex].namefr }} →</a> {%- endif -%}
</div>
</div>
# {{ pokemon.namefr }}
{{ pokemon.namefr }} ( {{ pokemon.nameen }} en anglais ; {{ pokemon.namejp }} en japonais ) est le pokémon n°{{ pokemon.baseStats.dex }} du pokedex de Kanto, de type {{ pokemon.baseStats.types[0] }}{% if pokemon.baseStats.types[0] !== pokemon.baseStats.types[1] %} et {{ pokemon.baseStats.types[1] }} {%- endif -%}. {% if pokemon.baseStats.dex <= 151 -%} Il est apparu dans la première génération. {%- endif %}
## Généralité
### Statistiques
| | PV | ATK | DEF | SPD | SPE |
|:-:|:--:|:---:|:---:|:---:|:---:|
| **Base :** | {{ pokemon.baseStats.stats.hp }} | {{ pokemon.baseStats.stats.atk }} | {{ pokemon.baseStats.stats.def }} | {{ pokemon.baseStats.stats.spd }} | {{ pokemon.baseStats.stats.spe }} |
### Évolutions
<table>
<thead>
<tr>
<th>Évolue en</th>
<th>via</th>
</tr>
</thead>
<tbody>
{%- for evolution in pokemon.evoMoves.evolutionItems -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td>Avec un(e) {{ evolution.item }} </td>
</tr>
{%- endfor -%}
{%- for evolution in pokemon.evoMoves.evolutionLevel -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td> Au niveau {{ evolution.level }} </td>
</tr>
{%- endfor -%}
{%- for evolution in pokemon.evoMoves.evolutionTrade -%}
<tr>
<td><a href="/pokedex/g1/{{ evolution.pokemon | replace("", "F") | replace("", "M") | slugify }}">{{ evolution.pokemon }} </td>
<td> Par échange </td>
</tr>
{%- endfor -%}
{%- if (pokemon.evoMoves.nbrEvolution <= 0 ) -%}
<tr>
<td colspan="2"> <em>Stade Final</em> </td>
</tr>
{%- endif -%}
</tbody>
</table>
## Emplacements
<table class="pokedex">
<thead>
<tr>
<th></th>
<th>Emplacement</th>
</tr>
</thead>
<tbody>
<tr>
<th>Rouge </th>
<td>
{%- for encounterList in pokemon.encounters.red -%}
{% if encounterList.prefix !== "" %}{{ encounterList.prefix }} : {% endif -%} {{ encounterList.list | join(" ; ") }}<br />
{%- endfor -%}
</td>
</tr>
<tr>
<th>Bleu </th>
<td>
{%- for encounterList in pokemon.encounters.blue -%}
{% if encounterList.prefix !== "" %}{{ encounterList.prefix }} : {% endif -%} {{ encounterList.list | join(" ; ") }}<br />
{%- endfor -%}
</td>
</tr>
<tr>
<th>Jaune </th>
<td>
{%- for encounterList in pokemon.encounters.yellow -%}
{% if encounterList.prefix !== "" %}{{ encounterList.prefix }} : {% endif -%} {{ encounterList.list | join(" ; ") }}<br />
{%- endfor -%}
</td>
</tr>
</tbody>
</table>
## Attaques
<div class="grid" style="display:flex;">
<div>
<table>
<thead>
<tr>
<th>Attaques de base</th>
</tr>
</thead>
<tbody>
{%- for move in pokemon.baseStats.base_move -%}
<tr>
<td>{{ move }} </td>
</tr>
{%- endfor -%}
</tbody>
</table>
<table>
<thead>
<tr>
<th>Niv</th>
<th>Attaque</th>
</tr>
</thead>
<tbody>
{%- for move in pokemon.evoMoves.moves -%}
<tr>
<td> {{ move.level }} </td>
<td>{{ move.move }} </td>
</tr>
{%- endfor -%}
{%- if pokemon.evoMoves.nbrMoves == 0 -%}
<tr>
<td colspan="2"> <em>Aucune attaque apprise par niveau</em> </td>
</tr>
{%- endif -%}
</tbody>
</table>
*(Note : certaines attaques peuvent se retrouver en double dans les tableaux.)*
</div>
<div>
<table>
<thead>
<tr>
<th>Par CT / CS</th>
</tr>
</thead>
<tbody>
{%- for move in pokemon.baseStats.tmhm -%}
<tr>
<td>{{ move }} </td>
</tr>
{%- endfor -%}
{%- if pokemon.baseStats.nbrTmHm == 0 -%}
<tr>
<td> <em>Aucune attaque apprise par CT/CS</em> </td>
</tr>
{%- endif -%}
</tbody>
</table>
</div>
</div>

8
content/pokedex/index.md Normal file
View file

@ -0,0 +1,8 @@
# Pokédex
Missing Number offre un certain nombre de Pokédex, tiré des données des désassemblages des jeux pokémon 8bits. Ces pokédex contiennent une site de tout les pokémon, et pour chaque pokémone une page unique permettant d'accéder aux informations sur eux.
## Les pokédex
- Pokédex G1
- Pokédes G2

Binary file not shown.

After

Width:  |  Height:  |  Size: 244 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 267 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 209 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 178 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 259 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 273 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 237 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 277 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 196 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 215 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 258 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 272 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 285 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 193 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 291 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 201 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 228 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 239 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 223 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 271 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 252 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 242 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 169 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 205 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 238 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 266 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 236 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 245 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 247 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 165 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 188 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 263 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 229 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 151 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 276 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 255 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 264 B

Some files were not shown because too many files have changed in this diff Show more