Template:Item: Difference between revisions
Jump to navigation
Jump to search
Language tag for NameJP
(Remove extra line breaks) |
(Language tag for NameJP) |
||
(16 intermediate revisions by 2 users not shown) | |||
Line 12:
|Icon = File
}}
</noinclude><templatestyles src="Item/item.css" /><includeonly>{{#cargo_store:_table=items}}<table class="wikitable itemtable">▼
▲<includeonly>{{#cargo_store:_table=items}}<table class="wikitable itemtable">
<tr class="itemtable-summary">
<td colspan="4">
{{#if: {{{SplashIcon|}}}
| [[File:{{{SplashIcon|}}}|center|{{{NameEN|}}}|class=splashicon]]{{#if: {{{NameEN|}}} | <span class="item-name-main">{{{NameEN|}}}</span> }}{{#if: {{{NameJP|}}} | <span class="item-name-sub" lang="ja">{{{NameJP|}}}</span> }}
| [[File:{{{Icon|}}}|center|{{{NameEN|}}}]]{{#if: {{{NameEN|}}} | <span class="item-name-main">{{{NameEN|}}}</span> }}{{#if: {{{NameJP|}}} | <span class="item-name-sub">{{{NameJP|}}}</span> }}
}}▼
|-|
▲ <div class="item-description"><tabber>
|-|▼
▲ Japanese={{{DescriptionJP|}}}
</tabber></div>▼
</td>
</tr>
Line 34 ⟶ 29:
<td>{{{Category|}}}</td>
</tr>
{{#if: {{{
<th>
<td colspan="3">{{{AltName|}}}</td>
</tr>
}}{{#if: {{{Collection|}}} | <tr>
<th>Collection</th>
<td colspan="3">{{{Collection|}}}</td>
</tr>
}}{{#if: {{{Tag1|}}} | <tr>
<th>Tags</
<td colspan="3">{{#sub:{{#forargs: Tag
| key
Line 46 ⟶ 45:
}}|0|-6}}</td>
</tr>
}}{{#if: {{{Favorite1|}}} | <tr><th>Favorite gift</
| key
| value
| {{#ifexist: {{#var: value }} | <div>[[File:{{#var: value }}.png|frameless|48px|alt={{#var: value }}|link={{#var: value }}|class=related-portrait]] [[{{#var: value }}]]</div>
}} }}</td></tr> }}{{#if: {{{Likes1|}}} | <tr><th>Likes gift</
| key
| value
| {{#ifexist: {{#var: value }} | <div>[[File:{{#var: value }}.png|frameless|48px|alt={{#var: value }}|link={{#var: value }}|class=related-portrait]] [[{{#var: value }}]]</div>
}} }}</td></tr> }}{{#if: {{{Character|}}} | <tr><th>Received from</
}} </td></tr> }}{{#ifeq: {{{Category|}}} | Material | <tr><th>Used by</th><td colspan="3" class="related-characters">
{{#dpl:
</table>{{#ifeq:{{NAMESPACE}}||[[Category:Items]]{{#if: {{{Category|}}} | [[Category:{{{Category|}}}]]}} }}{{#ifexist: Image:{{{Icon|{{PAGENAMEE}}.png}}} | {{#seo: |image = {{{Icon|{{PAGENAMEE}}.png}}} |image_alt = {{{NameEN|}}} }} | }}{{#seo:▼
| namespace =
|title={{{NameEN|}}}▼
| category = Characters
|title_mode=append▼
| linksto = {{PAGENAMEE}}
|keywords={{{NameEN|}}},item,crafting,gift▼
| includesubpages = true
|description={{{NameEN|}}} is a {{{Rarity|}}}-star {{lc: {{{Category|}}} }} item. {{{DescriptionEN|}}}▼
| mode = userformat
| format = ,,,
| include = {Character{{!}}RelatedCharacter.dpl}
| ordermethod = title
</td></tr> }}{{#if: {{{Tier|}}} | <tr>
<th>Tier</th>
<td colspan="3">{{{Tier|}}}</td>
</tr>
}}{{#if: {{{RecipeCost|{{{RecipePart|}}} }}} | <tr>
<th>Recipe</th>
<td colspan="3">
{{#forargs: RecipePart
| key
| value
| {{ItemCard|{{#var: value }}|quantity={{{RecipeCount{{#var: key }}|}}} }}
<nowiki />
▲}}
{{ItemCard|Credits|quantity={{{RecipeCost|}}} }}
</td>
</tr>
}}{{#switch: {{{Category|}}}
| Hat
| Gloves
| Shoes
| Bag
| Badge
| Hairpin
| Charm
| Watch
| Necklace = <tr>
<th>Mission drops</th><!-- if tier is 1 OR page name contains blueprint, then use DPL query;
otherwise, this item is not directly farmable and the user should go to the blueprint page
-->{{#if:{{#ifeq:{{{Tier|}}}|1|YES|}}{{#ifeq:{{#count:{{PAGENAME}}|Blueprint}}|1|YES|}}|
<td colspan="3">
{{#dpl:
| category = Missions
| linksto = {{PAGENAME}}
| ordermethod = sortkey
| mode = userformat
| include = {MissionRewards{{!}}ItemMissionReward.dpl}
}}
</td>
| <td colspan="3">Not directly farmable. See [[{{PAGENAME}} Blueprint|{{SUBPAGENAME}} Blueprint]].</td>
}}
</tr>
}}
▲</table>{{#ifeq:{{NAMESPACE}}||[[Category:Items]]{{#if: {{{Category|}}} | [[Category:{{{Category|}}}]]
▲
|image = {{{Icon|{{PAGENAMEE}}.png}}}
}}</includeonly>
<noinclude>
|