More actions
(Created page with "<includeonly>{{#if:{{{nameen|}}}{{{namejp|}}} |<tr> <td>{{Icon|img={{{icon|}}}|imglink={{{nameen|}}}|caption=|width=45px}}</td> <td id="{{{nameen|}}}">#{{{nameen|}}}|{{{name...") |
m (moves icon to the right for "box" style displays) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#if:{{{nameen|}}}{{{namejp|}}} | <includeonly>{{#if:{{{nameen|}}}{{{namejp|}}}|{{#switch:{{{display|}}} | ||
|<tr> | |box=<div style="display:inline-block;vertical-align:top;"><table id="{{{nameen|}}}" class="wikitable mw-collapsible mw-collapsed" style="display:table;width:250px;margin:0;"> | ||
<td>{{Icon|img={{{icon|}}}| | <tr><td style="display:flex;justify-content:space-evenly;"><div>[[#{{{nameen|}}}|{{{nameen|}}}]]<br/><small>{{{namejp|}}}</small></div><div>{{Icon|img={{{icon|}}}|caption=|width=45px}}</div> | ||
</td></tr> | |||
<tr><td>{{#if:{{{notes|}}}|{{{notes|}}}}}<!-- | |||
-->{{#if:{{{recipe|}}}|Recipe:<br>{{#arraymap:{{{recipe|}}}|;|x|{{bbdw|item|x|display=icononly}}|}}</br>}}<!-- | |||
-->{{#if:{{{notes|}}}|{{#if:{{{itemdesc|}}}|<br/>}}}}<!-- | |||
--><small><i>{{{itemdesc|}}}</i></small></td></tr> | |||
<tr><td>{{{itemdescjp|}}}</td></tr> | |||
</table></div> | |||
|#default=<tr> | |||
<td>{{Icon|img={{{icon|}}}|caption=|width=45px}}</td> | |||
<td id="{{{nameen|}}}">[[#{{{nameen|}}}|{{{nameen|}}}]]<br/><small>{{{namejp|}}}</small></td> | <td id="{{{nameen|}}}">[[#{{{nameen|}}}|{{{nameen|}}}]]<br/><small>{{{namejp|}}}</small></td> | ||
<td> | <td>{{#if:{{{notes|}}}|{{{notes|}}}}}<!-- | ||
</tr><!-- | -->{{#if:{{{notes|}}}|{{#if:{{{itemdesc|}}}|<br/>}}}}<!-- | ||
--><small><i>{{{itemdesc|}}}</i></small></td> | |||
<td>{{{itemdescjp|}}}</td> | |||
</tr> | |||
}}<!-- | |||
-->{{#cargo_store:_table= | -->{{#cargo_store:_table=BBDW_Items | ||
|nameen={{{nameen|}}} | |nameen={{{nameen|}}} | ||
|namejp={{{namejp|}}} | |namejp={{{namejp|}}} | ||
|icon={{{icon|}}} | |icon={{{icon|}}} | ||
|itemdesc={{{itemdesc|}}} | |itemdesc={{{itemdesc|}}} | ||
|notes={{{notes|}}} | |notes={{{notes|}}}{{#if:{{{recipe|}}}|Recipe:<br>{{#arraymap:{{{recipe|}}}|;|x|{{bbdw|item|x|display=icononly}}|}}}} | ||
}}<!-- | }}<!-- | ||
Line 32: | Line 45: | ||
|icon=File. Filename without File: prefix | |icon=File. Filename without File: prefix | ||
|itemdesc=Wikitext. Item description | |itemdesc=Wikitext. Item description | ||
|itemdescjp= Original item description in Japanese | |||
|notes=Wikitext. Miscellaneous notes | |notes=Wikitext. Miscellaneous notes | ||
|recipe=Sea King Fragment*10;Sea King Fragment*10;Sea King Fragment*10 | |||
|display=box - For orbs, to display as boxes instead of table rows. If omitted, this template will display as a table row. | |||
}}</nowiki></pre> | }}</nowiki></pre> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 15:03, 24 June 2021
This template defines the table "BBDW_Items". View table.
Adds information about a BBDW item.
Usage
{{BBDW Item |nameen=String |namejp=String |icon=File. Filename without File: prefix |itemdesc=Wikitext. Item description |itemdescjp= Original item description in Japanese |notes=Wikitext. Miscellaneous notes |recipe=Sea King Fragment*10;Sea King Fragment*10;Sea King Fragment*10 |display=box - For orbs, to display as boxes instead of table rows. If omitted, this template will display as a table row. }}