Template:Item: Difference between revisions
No edit summary |
(Language tag for NameJP) |
||
(5 intermediate revisions by 2 users not shown) | |||
Line 12: | Line 12: | ||
|Icon = File |
|Icon = File |
||
}} |
}} |
||
⚫ | |||
</noinclude> |
|||
<templatestyles src="Item/item.css" /> |
|||
⚫ | |||
<tr class="itemtable-summary"> |
<tr class="itemtable-summary"> |
||
<td colspan="4"> |
<td colspan="4"> |
||
{{#if: {{{SplashIcon|}}} |
{{#if: {{{SplashIcon|}}} |
||
| [[File:{{{SplashIcon|}}}|center|{{{NameEN|}}}|class=splashicon]]{{#if: {{{NameEN|}}} | <span class="item-name-main">{{{NameEN|}}}</span> }}{{#if: {{{NameJP|}}} | <span class="item-name-sub">{{{NameJP|}}}</span> }} |
| [[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> }} |
| [[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|}}} |
}}<div class="item-description"><tabber>English={{{DescriptionEN|}}} |
||
Line 31: | Line 29: | ||
<td>{{{Category|}}}</td> |
<td>{{{Category|}}}</td> |
||
</tr> |
</tr> |
||
{{#if: {{{ |
{{#if: {{{AltName|}}} | <tr> |
||
<th> |
<th>Alternative name</th> |
||
<td colspan="3">{{{AltName|}}}</td> |
|||
</tr> |
|||
}}{{#if: {{{Collection|}}} | <tr> |
|||
<th>Collection</th> |
|||
<td colspan="3">{{{Collection|}}}</td> |
<td colspan="3">{{{Collection|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if: {{{Tag1|}}} | <tr> |
}}{{#if: {{{Tag1|}}} | <tr> |
||
<th>Tags</ |
<th>Tags</th> |
||
<td colspan="3">{{#sub:{{#forargs: Tag |
<td colspan="3">{{#sub:{{#forargs: Tag |
||
| key |
| key |
||
Line 43: | Line 45: | ||
}}|0|-6}}</td> |
}}|0|-6}}</td> |
||
</tr> |
</tr> |
||
}}{{#if: {{{Favorite1|}}} | <tr><th>Favorite gift</ |
}}{{#if: {{{Favorite1|}}} | <tr><th>Favorite gift</th><td colspan="3" class="related-characters">{{#forargs: Favorite |
||
| key |
| key |
||
| value |
| value |
||
| {{#ifexist: {{#var: value }} | <div>[[File:{{#var: value }}.png|frameless|48px|alt={{#var: value }}|link={{#var: value }}|class=related-portrait]] [[{{#var: value }}]]</div> |
| {{#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</ |
}} }}</td></tr> }}{{#if: {{{Likes1|}}} | <tr><th>Likes gift</th><td colspan="3" class="related-characters">{{#forargs: Likes |
||
| key |
| key |
||
| value |
| value |
||
| {{#ifexist: {{#var: value }} | <div>[[File:{{#var: value }}.png|frameless|48px|alt={{#var: value }}|link={{#var: value }}|class=related-portrait]] [[{{#var: value }}]]</div> |
| {{#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> }}{{#if: {{{Character|}}} | <tr><th>Received from</th><td colspan="3" class="related-characters">{{#ifexist: {{{Character|}}} | <div>[[File:{{{Character|}}}.png|frameless|48px|alt={{{Character|}}}|link={{{Character|}}}|class=related-portrait]] [[{{{Character|}}}]]</div> | <div>[[File:{{{Character|}}}.png|frameless|48px|alt={{{Character|}}}|link=|class=related-portrait]] {{{Character|}}}</div> |
||
}} </td></tr> }}{{#ifeq: {{{Category|}}} | Material | <tr><th>Used by</ |
}} </td></tr> }}{{#ifeq: {{{Category|}}} | Material | <tr><th>Used by</th><td colspan="3" class="related-characters"> |
||
{{#dpl: |
{{#dpl: |
||
| namespace = |
| namespace = |
||
Line 64: | Line 66: | ||
}} |
}} |
||
</td></tr> }}{{#if: {{{Tier|}}} | <tr> |
</td></tr> }}{{#if: {{{Tier|}}} | <tr> |
||
<th>Tier</ |
<th>Tier</th> |
||
<td colspan="3">{{{Tier|}}}</td> |
<td colspan="3">{{{Tier|}}}</td> |
||
</tr> |
</tr> |
||
}}{{#if: {{{RecipeCost|{{{RecipePart|}}} }}} | <tr> |
}}{{#if: {{{RecipeCost|{{{RecipePart|}}} }}} | <tr> |
||
<th>Recipe</ |
<th>Recipe</th> |
||
<td colspan="3"> |
<td colspan="3"> |
||
{{#forargs: RecipePart |
{{#forargs: RecipePart |
||
Line 91: | Line 93: | ||
| Watch |
| Watch |
||
| Necklace = <tr> |
| Necklace = <tr> |
||
<th>Mission drops</ |
<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"> |
<td colspan="3"> |
||
{{#dpl: |
{{#dpl: |
||
| category = Missions |
| category = Missions |
||
| linksto = {{PAGENAME}} |
| linksto = {{PAGENAME}} |
||
| ordermethod = |
| ordermethod = sortkey |
||
| mode = userformat |
| mode = userformat |
||
| format = ,<div>,</div>, |
| format = ,<div>,</div>, |
||
Line 102: | Line 106: | ||
}} |
}} |
||
</td> |
</td> |
||
| <td colspan="3">Not directly farmable. See [[{{PAGENAME}} Blueprint|{{SUBPAGENAME}} Blueprint]].</td> |
|||
}} |
|||
</tr> |
</tr> |
||
}} |
}} |
||
Line 107: | Line 113: | ||
|title={{{NameEN|}}} |
|title={{{NameEN|}}} |
||
|title_mode=append |
|title_mode=append |
||
|keywords={{{NameEN|}}},item,crafting,gift |
|keywords={{{NameEN|}}}{{#if: {{{AltName|}}}|,{{{AltName|}}}}},item,crafting,gift |
||
|description={{{NameEN|}}} is a {{{Rarity|}}}-star {{lc: {{{Category|}}} }} item. {{{DescriptionEN|}}} |
|description={{{NameEN|}}} is a {{{Rarity|}}}-star {{lc: {{{Category|}}} }} item. {{{DescriptionEN|}}} |
||
|image = {{{Icon|{{PAGENAMEE}}.png}}} |
|image = {{{Icon|{{PAGENAMEE}}.png}}} |
Latest revision as of 05:04, 29 April 2024
This template defines the table "items". View table.
General item template for materials (BD, book, oopart), collectibles etc.