Template:KeitaArea2: Difference between revisions

From Pokemon Revolution Online Wiki
Jump to navigation Jump to search
Created page with "<noinclude> This template tabulates all basic area data. Usage: {{AreaInfoBox | Type = | Region = | Maps = | Location = | Badge = | Leader = | GymType = | BattleNPCs = | Items = | BerryTrees = | North = | West = | South = | East = }} </noinclude><includeonly> {{! MUTE TEMPLATESTYLES}}{{#tag:div| {{#if:{{{Maps|}}} |<div class="infobox-section"> <h2 class="infobox-section-title">Overview Collage</h2> <div class="infobox-gallery"> {{#loop: m..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 20: Line 20:
{{! MUTE TEMPLATESTYLES}}{{#tag:div|
{{! MUTE TEMPLATESTYLES}}{{#tag:div|
   {{#if:{{{Maps|}}}
   {{#if:{{{Maps|}}}
   |<div class="infobox-section">
   |<div class="keita-infobox-section">
       <h2 class="infobox-section-title">Overview Collage</h2>
       <h2 class="keita-infobox-section-title">Overview Collage</h2>
       <div class="infobox-gallery">
       <div class="keita-infobox-gallery">
         {{#loop: map | {{#explode:{{{Maps}}}|,}} |
         {{#loop: map | {{#explode:{{{Maps}}}|,}} |
           <div class="infobox-gallery-item">
           <div class="keita-infobox-gallery-item">
             [[File:{{#var:map}}.png|100px|link={{#var:map}}]]
             [[File:{{#var:map}}.png|100px|link={{#var:map}}]]
             <span>{{#var:map}}</span>
             <span>{{#var:map}}</span>
Line 31: Line 31:
       </div>
       </div>
     </div>
     </div>
   |<div class="infobox-section">
   |<div class="keita-infobox-section">
       <h2 class="infobox-section-title">Overview</h2>
       <h2 class="keita-infobox-section-title">Overview</h2>
       [[File:{{PAGENAME}}.png|400px]]
       [[File:{{PAGENAME}}.png|400px]]
     </div>
     </div>
Line 42: Line 42:
   }}
   }}
   {{#if:{{#var:location}} |
   {{#if:{{#var:location}} |
     <div class="infobox-section">
     <div class="keita-infobox-section">
       <h2 class="infobox-section-title">Location</h2>
       <h2 class="keita-infobox-section-title">Location</h2>
       [[File:{{#var:location}}.gif|200px]]
       [[File:{{#var:location}}.gif|200px]]
       <p class="infobox-caption">A positional vantage point of {{PAGENAME}} in {{{Region}}}.</p>
       <p class="keita-infobox-caption">A positional vantage point of {{PAGENAME}} in {{{Region}}}.</p>
     </div>
     </div>
   }}
   }}


   {{#if:{{{Badge|}}} |
   {{#if:{{{Badge|}}} |
     <div class="infobox-section">
     <div class="keita-infobox-section">
       <h2 class="infobox-section-title">[[File:{{{Badge}}}_Badge_Icon.png|30px]] {{PAGENAME}} Gym</h2>
       <h2 class="keita-infobox-section-title">[[File:{{{Badge}}}_Badge_Icon.png|30px]] {{PAGENAME}} Gym</h2>
       <div class="infobox-grid">
       <table class="keita-info-rows">
         <div class="infobox-grid-item">
         <tr>
           <span class="grid-item-label">Gym Leader</span>
           <th>Gym Leader</th>
           <span class="grid-item-value">{{{Leader}}}</span>
           <td>{{{Leader}}}</td>
         </div>
         </tr>
         <div class="infobox-grid-item">
         <tr>
           <span class="grid-item-label">Type Specialty</span>
           <th>Type Specialty</th>
           <span class="grid-item-value">[[{{{GymType}}}_(type)|{{{GymType}}}]]</span>
           <td>[[{{{GymType}}}_(type)|{{{GymType}}}]]</td>
         </div>
         </tr>
         <div class="infobox-grid-item">
         <tr>
           <span class="grid-item-label">Badge</span>
           <th>Badge</th>
           <span class="grid-item-value">{{{Badge}}} Badge</span>
           <td>{{{Badge}}} Badge</td>
         </div>
         </tr>
       </div>
       </table>
     </div>
     </div>
   }}
   }}


   {{#ifexpr: {{{Items|0}}} + {{{BerryTrees|0}}} + {{{BattleNPCs|0}}} > 0 |
   {{#ifexpr: {{{Items|0}}} + {{{BerryTrees|0}}} + {{{BattleNPCs|0}}} > 0 |
     <div class="infobox-section">
     <div class="keita-infobox-section">
       <h2 class="infobox-section-title">Resources</h2>
       <h2 class="keita-infobox-section-title">Resources</h2>
       <div class="infobox-grid">
       <table class="keita-info-rows">
         <div class="infobox-grid-item">
         {{#if:{{{BattleNPCs|}}}|
          <span class="grid-item-label">Battleable NPCs</span>
          <tr>
          <span class="grid-item-value">{{{BattleNPCs|0}}}</span>
            <th>Battleable NPCs</th>
        </div>
            <td>{{{BattleNPCs}}}</td>
         <div class="infobox-grid-item">
          </tr>
          <span class="grid-item-label">Ground Items</span>
         }}
          <span class="grid-item-value">{{{Items|0}}}</span>
        {{#if:{{{Items|}}}|
        </div>
          <tr>
         <div class="infobox-grid-item">
            <th>Ground Items</th>
          <span class="grid-item-label">Berry Trees</span>
            <td>{{{Items}}}</td>
          <span class="grid-item-value">{{{BerryTrees|0}}}</span>
          </tr>
        </div>
         }}
       </div>
        {{#if:{{{BerryTrees|}}}|
          <tr>
            <th>Berry Trees</th>
            <td>{{{BerryTrees}}}</td>
          </tr>
        }}
       </table>
     </div>
     </div>
   }}
   }}


   {{#if: {{{North|}}}{{{West|}}}{{{South|}}}{{{East|}}} |
   {{#if: {{{North|}}}{{{West|}}}{{{South|}}}{{{East|}}} |
     <div class="infobox-section">
     <div class="keita-infobox-section">
       <h2 class="infobox-section-title">Adjacent Areas</h2>
       <h2 class="keita-infobox-section-title">Adjacent Areas</h2>
       <div class="infobox-adjacency">
       <div class="keita-infobox-adjacency">
         <div class="adj-north">{{#if:{{{North|}}}|[[{{{North}}}|↑<br>{{{North}}}]]}}</div>
         <div class="keita-adj-north">{{#if:{{{North|}}}|[[{{{North}}}|↑<br>{{{North}}}]]}}</div>
         <div class="adj-west">{{#if:{{{West|}}}|[[{{{West}}}|← {{{West}}}]]}}</div>
         <div class="keita-adj-west">{{#if:{{{West|}}}|[[{{{West}}}|← {{{West}}}]]}}</div>
         <div class="adj-center">{{PAGENAME}}</div>
         <div class="keita-adj-center">{{PAGENAME}}</div>
         <div class="adj-east">{{#if:{{{East|}}}|[[{{{East}}}|{{{East}}} →]]}}</div>
         <div class="keita-adj-east">{{#if:{{{East|}}}|[[{{{East}}}|{{{East}}} →]]}}</div>
         <div class="adj-south">{{#if:{{{South|}}}|[[{{{South}}}|{{{South}}}<br>↓]]}}</div>
         <div class="keita-adj-south">{{#if:{{{South|}}}|[[{{{South}}}|{{{South}}}<br>↓]]}}</div>
       </div>
       </div>
     </div>
     </div>
   }}
   }}
|
|
class=area-infobox,
class=keita-area-infobox,
style=
style=
--color-border: #${{{Type}}}_color_dark};
--color-border: #${{{Type}}}_color_dark};
Line 110: Line 116:
data-type={{{Type}}}
data-type={{{Type}}}
}}
}}
<div class="area-infobox-header" style="--color-border: #${{{Type}}}_color_dark}; --color-cell: #${{{Type}}}_color_light};">
<div class="keita-area-infobox-header" style="--color-border: #${{{Type}}}_color_dark}; --color-cell: #${{{Type}}}_color_light};">
   {{PAGENAME}} - [[{{{Region}}}|<span style="color:var(--color-border);">{{{Region}}}</span>]]
   {{PAGENAME}} - [[{{{Region}}}|<span style="color:var(--color-border);">{{{Region}}}</span>]]
</div>
</div>

Latest revision as of 22:49, 29 September 2025

This template tabulates all basic area data. Usage: Template:AreaInfoBox