Template:Item: Difference between revisions

384 bytes added ,  19 days ago
Language tag for NameJP
(Support AltName data for official translations, if they differ from wiki)
(Language tag for NameJP)
 
(3 intermediate revisions by one other user not shown)
Line 12:
|Icon = File
}}
</noinclude><templatestyles src="Item/item.css" /><includeonly>{{#cargo_store:_table=items}}<table class="wikitable itemtable">
</noinclude>
<templatestyles src="Item/item.css" />
<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>English={{{DescriptionEN|}}}
Line 40 ⟶ 38:
</tr>
}}{{#if: {{{Tag1|}}} | <tr>
<th>Tags</tdth>
<td colspan="3">{{#sub:{{#forargs: Tag
| key
Line 47 ⟶ 45:
}}|0|-6}}</td>
</tr>
}}{{#if: {{{Favorite1|}}} | <tr><th>Favorite gift</tdth><td colspan="3" class="related-characters">{{#forargs: Favorite
| key
| value
| {{#ifexist: {{#var: value }} | <div>[[File:{{#var: value }}.png|frameless|48px|alt={{#var: value }}|link={{#var: value }}|class=related-portrait]]&nbsp;[[{{#var: value }}]]</div>
}} }}</td></tr> }}{{#if: {{{Likes1|}}} | <tr><th>Likes gift</tdth><td colspan="3" class="related-characters">{{#forargs: Likes
| key
| value
| {{#ifexist: {{#var: value }} | <div>[[File:{{#var: value }}.png|frameless|48px|alt={{#var: value }}|link={{#var: value }}|class=related-portrait]]&nbsp;[[{{#var: value }}]]</div>
}} }}</td></tr> }}{{#if: {{{Character|}}} | <tr><th>Received from</tdth><td colspan="3" class="related-characters">{{#ifexist: {{{Character|}}} | <div>[[File:{{{Character|}}}.png|frameless|48px|alt={{{Character|}}}|link={{{Character|}}}|class=related-portrait]]&nbsp;[[{{{Character|}}}]]</div> | <div>[[File:{{{Character|}}}.png|frameless|48px|alt={{{Character|}}}|link=|class=related-portrait]]&nbsp;{{{Character|}}}</div>
}} </td></tr> }}{{#ifeq: {{{Category|}}} | Material | <tr><th>Used by</tdth><td colspan="3" class="related-characters">
{{#dpl:
| namespace =
Line 68 ⟶ 66:
}}
</td></tr> }}{{#if: {{{Tier|}}} | <tr>
<th>Tier</tdth>
<td colspan="3">{{{Tier|}}}</td>
</tr>
}}{{#if: {{{RecipeCost|{{{RecipePart|}}} }}} | <tr>
<th>Recipe</tdth>
<td colspan="3">
{{#forargs: RecipePart
Line 95 ⟶ 93:
| Watch
| Necklace = <tr>
<th>Mission drops</tdth><!-- 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:
Line 106:
}}
</td>
| <td colspan="3">Not directly farmable. See [[{{PAGENAME}} Blueprint|{{SUBPAGENAME}} Blueprint]].</td>
}}
</tr>
}}