Skip to content

Commit

Permalink
Remove th18.ttinclude
Browse files Browse the repository at this point in the history
  • Loading branch information
y-iihoshi committed Jan 2, 2024
1 parent c98853b commit 13573d2
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 124 deletions.
37 changes: 0 additions & 37 deletions TemplateGenerator/Templates/th18.ttinclude

This file was deleted.

52 changes: 28 additions & 24 deletions TemplateGenerator/Templates/th18card1.tt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th18.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th18" #>
<#@ output extension=".html" encoding="utf-8" #>
<#
var levelKeyTotal = Definitions.LevelKeysTotalFirst.First();
var stageKeyTotal = Definitions.StageKeysTotalFirst.First();
var numCards = Definitions.NumCardsPerLevel.Values.Sum();
var careerKindKey = "S";
#>
<!DOCTYPE html>
Expand All @@ -11,7 +15,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><#= title #> スペルカードデータ</title>
<title><#= Definitions.Title #> スペルカードデータ</title>
<link rel="stylesheet" href="style.css" />
<style>
/* <![CDATA[ */
Expand All @@ -30,15 +34,15 @@
<body>

<header>
<h1><#= title #> スペルカードデータ</h1>
<h1><#= Definitions.Title #> スペルカードデータ</h1>
<hr />
<nav>
<ul>
<li><a href="th18score1.html">スコアデータ全般</a></li>
<li><a href="th18score2.html">個別ランキング</a></li>
<li><a href="th18score3.html">プラクティス</a></li>
<li>御札戦歴(<#= careerKinds["S"] #>)</li>
<li><a href="th18card2.html">御札戦歴(<#= careerKinds["P"] #>)</a></li>
<li>御札戦歴(<#= Definitions.CareerKinds["S"] #>)</li>
<li><a href="th18card2.html">御札戦歴(<#= Definitions.CareerKinds["P"] #>)</a></li>
</ul>
<ul>
<li><a href="#rate_per_card">スペルカード別</a></li>
Expand All @@ -51,7 +55,7 @@
<main>

<section>
<h2 id="Card">御札戦歴(<#= careerKinds[careerKindKey] #>)</h2>
<h2 id="Card">御札戦歴(<#= Definitions.CareerKinds[careerKindKey] #>)</h2>

<table class="rate_per_card">
<caption id="rate_per_card">スペルカード別取得率(取得回数 / 遭遇回数)</caption>
Expand All @@ -60,10 +64,10 @@
<th class="number">No.</th>
<th class="card">スペルカード名<br />(難易度)</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey] #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey] #></th>
<#
}
#>
Expand All @@ -80,7 +84,7 @@
<td class="number">No.<#= cardStr #></td>
<td class="card">%T18CARD<#= cardKey #>N<br />(%T18CARD<#= cardKey #>R)</td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -106,7 +110,7 @@
<tr>
<td colspan="2"><#= cardStrTotal #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -129,30 +133,30 @@
<tr>
<th class="level">難易度</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey] #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey] #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<tr>
<td class="level"><#= level.Value #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
#>%T18CRG<#= careerKindKey #><#= level.Key #><#= charaKey #><#= stageKeyTotal #>1 / <#
#>%T18CRG<#= careerKindKey #><#= level.Key #><#= charaKey #><#= stageKeyTotal #>2 / <#
#><#= cardsPerLevel[level.Key] #><#
#><#= Definitions.NumCardsPerLevel[level.Key] #><#
#></td>
<#
}
Expand All @@ -164,9 +168,9 @@
</tbody>
<tfoot>
<tr>
<td><#= levelsWithTotal[levelKeyTotal] #></td>
<td><#= Definitions.LevelWithTotalNames[levelKeyTotal] #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -187,32 +191,32 @@
<tr>
<th class="stage">ステージ</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey] #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey] #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var stage in stages)
foreach (var stage in Definitions.StageNames)
{
var stageKey = (stage.Key == "X") ? stageKeyTotal : stage.Key;
var levelKey = (stage.Key == "X") ? stage.Key : levelKeyTotal;
#>
<tr>
<td class="stage"><#= stage.Value #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
#>%T18CRG<#= careerKindKey #><#= levelKey #><#= charaKey #><#= stageKey #>1 / <#
#>%T18CRG<#= careerKindKey #><#= levelKey #><#= charaKey #><#= stageKey #>2 / <#
#><#= cardsPerStage[stage.Key] #><#
#><#= Definitions.NumCardsPerStage[stage.Key] #><#
#></td>
<#
}
Expand All @@ -224,9 +228,9 @@
</tbody>
<tfoot>
<tr>
<td><#= stagesWithTotal[stageKeyTotal] #></td>
<td><#= Definitions.StageWithTotalNames[stageKeyTotal] #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand Down
52 changes: 28 additions & 24 deletions TemplateGenerator/Templates/th18card2.tt
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
<#@ template debug="false" hostspecific="false" language="C#" #>
<#@ include file="imports.ttinclude" once="true" #>
<#@ include file="th18.ttinclude" once="true" #>
<#@ include file="footer.ttinclude" once="true" #>
<#@ import namespace="TemplateGenerator.Models.Th18" #>
<#@ output extension=".html" encoding="utf-8" #>
<#
var levelKeyTotal = Definitions.LevelKeysTotalFirst.First();
var stageKeyTotal = Definitions.StageKeysTotalFirst.First();
var numCards = Definitions.NumCardsPerLevel.Values.Sum();
var careerKindKey = "P";
#>
<!DOCTYPE html>
Expand All @@ -11,7 +15,7 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><#= title #> スペルカードデータ</title>
<title><#= Definitions.Title #> スペルカードデータ</title>
<link rel="stylesheet" href="style.css" />
<style>
/* <![CDATA[ */
Expand All @@ -30,15 +34,15 @@
<body>

<header>
<h1><#= title #> スペルカードデータ</h1>
<h1><#= Definitions.Title #> スペルカードデータ</h1>
<hr />
<nav>
<ul>
<li><a href="th18score1.html">スコアデータ全般</a></li>
<li><a href="th18score2.html">個別ランキング</a></li>
<li><a href="th18score3.html">プラクティス</a></li>
<li><a href="th18card1.html">御札戦歴(<#= careerKinds["S"] #>)</a></li>
<li>御札戦歴(<#= careerKinds["P"] #>)</li>
<li><a href="th18card1.html">御札戦歴(<#= Definitions.CareerKinds["S"] #>)</a></li>
<li>御札戦歴(<#= Definitions.CareerKinds["P"] #>)</li>
</ul>
<ul>
<li><a href="#rate_per_card">スペルカード別</a></li>
Expand All @@ -51,7 +55,7 @@
<main>

<section>
<h2 id="Card">御札戦歴(<#= careerKinds[careerKindKey] #>)</h2>
<h2 id="Card">御札戦歴(<#= Definitions.CareerKinds[careerKindKey] #>)</h2>

<table class="rate_per_card">
<caption id="rate_per_card">スペルカード別取得率(取得回数 / 遭遇回数)</caption>
Expand All @@ -60,10 +64,10 @@
<th class="number">No.</th>
<th class="card">スペルカード名<br />(難易度)</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey] #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey] #></th>
<#
}
#>
Expand All @@ -80,7 +84,7 @@
<td class="number">No.<#= cardStr #></td>
<td class="card">%T18CARD<#= cardKey #>N<br />(%T18CARD<#= cardKey #>R)</td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -106,7 +110,7 @@
<tr>
<td colspan="2"><#= cardStrTotal #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -129,30 +133,30 @@
<tr>
<th class="level">難易度</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey] #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey] #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var level in levels)
foreach (var level in Definitions.LevelNames)
{
#>
<tr>
<td class="level"><#= level.Value #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
#>%T18CRG<#= careerKindKey #><#= level.Key #><#= charaKey #><#= stageKeyTotal #>1 / <#
#>%T18CRG<#= careerKindKey #><#= level.Key #><#= charaKey #><#= stageKeyTotal #>2 / <#
#><#= cardsPerLevel[level.Key] #><#
#><#= Definitions.NumCardsPerLevel[level.Key] #><#
#></td>
<#
}
Expand All @@ -164,9 +168,9 @@
</tbody>
<tfoot>
<tr>
<td><#= levelsWithTotal[levelKeyTotal] #></td>
<td><#= Definitions.LevelWithTotalNames[levelKeyTotal] #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand All @@ -187,32 +191,32 @@
<tr>
<th class="stage">ステージ</th>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<th class="character"><#= charactersWithTotal[charaKey] #></th>
<th class="character"><#= Definitions.CharacterWithTotalNames[charaKey] #></th>
<#
}
#>
</tr>
</thead>
<tbody>
<#
foreach (var stage in stages)
foreach (var stage in Definitions.StageNames)
{
var stageKey = (stage.Key == "X") ? stageKeyTotal : stage.Key;
var levelKey = (stage.Key == "X") ? stage.Key : levelKeyTotal;
#>
<tr>
<td class="stage"><#= stage.Value #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
#>%T18CRG<#= careerKindKey #><#= levelKey #><#= charaKey #><#= stageKey #>1 / <#
#>%T18CRG<#= careerKindKey #><#= levelKey #><#= charaKey #><#= stageKey #>2 / <#
#><#= cardsPerStage[stage.Key] #><#
#><#= Definitions.NumCardsPerStage[stage.Key] #><#
#></td>
<#
}
Expand All @@ -224,9 +228,9 @@
</tbody>
<tfoot>
<tr>
<td><#= stagesWithTotal[stageKeyTotal] #></td>
<td><#= Definitions.StageWithTotalNames[stageKeyTotal] #></td>
<#
foreach (var charaKey in charaKeyOrderTotalFirst)
foreach (var charaKey in Definitions.CharacterKeysTotalFirst)
{
#>
<td class="rate"><#
Expand Down
Loading

0 comments on commit 13573d2

Please sign in to comment.