Difference between revisions of "User:Chu2038/Sandbox"
Jump to navigation
Jump to search
>Chu2038 (Replaced content with "bolb") |
>Chu2038 |
||
| Line 1: | Line 1: | ||
| − | + | <includeonly><!-- | |
| + | --><div class="weapon-notable" style="flex:1 1 480px;padding:1em"> | ||
| + | <div class="notable-header" style=" | ||
| + | {{#if:{{{Center|}}} | text-align:center;}} | ||
| + | background-color:rgb(77, 144, 94); | ||
| + | border:1px solid rgb(51, 102, 66); | ||
| + | font-size:1.1em; | ||
| + | font-weight:600; | ||
| + | padding:.75em 1em"><!-- | ||
| + | -->[[File:Icon Element {{{ElementalType|}}}.png|19px|link=]]<!-- | ||
| + | -->[[File:Icon Weapon {{{Type|}}}.png|19px|link=]]<!-- | ||
| + | --><span style="margin-left:8px;vertical-align:middle;">[[{{{pageName}}}|{{{WeaponName|}}}]]</span> | ||
| + | </div> | ||
| + | <div style=" | ||
| + | border:1px solid #aaa; | ||
| + | border-top:none; | ||
| + | display:grid; | ||
| + | grid-template-areas: 'sidebar main'; | ||
| + | grid-template-columns: 100px auto"> | ||
| + | <div class="notable-sidebar" style=" | ||
| + | border-right:1px solid #aaa; | ||
| + | display:flex; | ||
| + | flex-direction:column; | ||
| + | align-items:center; | ||
| + | grid-area:sidebar; | ||
| + | padding:1em 0"><!-- | ||
| + | -->[[File:{{{BaseId|}}} 0{{{VariationId|}}} {{{FormId|}}}.png|75px|link={{{pageName}}}]]<!-- | ||
| + | -->[[File:Icon Rarity Row {{{Rarity|}}}.png|x19px|link=]] | ||
| + | <div style=" | ||
| + | display:grid; | ||
| + | grid-gap:0 5px; | ||
| + | grid-template-columns:1fr 1fr; | ||
| + | margin-top:6px; | ||
| + | text-align:left;"><!-- | ||
| + | --><b style="text-align:right">HP:</b>{{{MaxHp|}}}<!-- | ||
| + | --><b style="text-align:right">Str:</b>{{{MaxAtk|}}} | ||
| + | </div> | ||
| + | </div> | ||
| + | <div style=" | ||
| + | display:grid; | ||
| + | align-content:start; | ||
| + | grid-gap:1em; | ||
| + | grid-area:main; | ||
| + | padding:1.5em"><!-- | ||
| + | -->{{#if:{{{SkillName|}}} | ||
| + | | {{#invoke:CargoQuery|main | ||
| + | |q?tables=Skills | ||
| + | |q?fields=_pageName=Link,Name,SkillLv1IconName,Description2 | ||
| + | |q?where=Name="{{{SkillName}}}" | ||
| + | |template=vardefine}} | ||
| + | <div> | ||
| + | <div style="font-size:1.1em;font-weight:600"><!-- | ||
| + | -->Skill: [[File:{{#var:SkillLv1IconName}}.png|25px|link={{#var:Link}}]] [[{{#var:Link}}|{{#var:Name}}]] | ||
| + | </div> | ||
| + | <p>{{#var:Description2}}</p> | ||
| + | </div>}}<!-- | ||
| + | -->{{#ifexpr:{{{Abilities11|0}}} > 0 | ||
| + | | {{#invoke:CargoQuery|main | ||
| + | |q?tables=Abilities | ||
| + | |q?fields=_pageName=Link,Name,AbilityIconName,Details | ||
| + | |q?where=Id="{{{Abilities11}}}" | ||
| + | |template=vardefine}} | ||
| + | <div> | ||
| + | <div style="font-size:1.1em;font-weight:600"><!-- | ||
| + | -->Ability: [[File:{{#var:AbilityIconName}}.png|25px|link={{#var:Link}}]] [[{{#var:Link}}|{{#var:Name}}]] | ||
| + | </div> | ||
| + | <p>{{#var:Details}}</p> | ||
| + | </div><!-- | ||
| + | -->{{#ifexpr:{{{Abilities21|0}}} > 0 | ||
| + | | {{#invoke:CargoQuery|main | ||
| + | |q?tables=Abilities | ||
| + | |q?fields=_pageName=Link,Name,AbilityIconName,Details | ||
| + | |q?where=Id="{{{Abilities21}}}" | ||
| + | |template=vardefine}} | ||
| + | <div> | ||
| + | <div style="font-size:1.1em;font-weight:600"><!-- | ||
| + | -->Ability: [[File:{{#var:AbilityIconName}}.png|25px|link={{#var:Link}}]] [[{{#var:Link}}|{{#var:Name}}]] | ||
| + | </div> | ||
| + | <p>{{#var:Details}}</p> | ||
| + | </div>}} }} | ||
| + | </div> | ||
| + | </div> | ||
| + | </div><!-- | ||
| + | --></includeonly><noinclude> | ||
| + | <!-- | ||
| + | .weapon-notable > .notable-header a { | ||
| + | color: white; | ||
| + | } | ||
| + | .weapon-notable { | ||
| + | flex: 1 1 480px; | ||
| + | padding: 1em; | ||
| + | } | ||
| + | --> | ||
Revision as of 04:21, 14 April 2020