Difference between revisions of "Template:CargoDisplayHHPClient"

From Nookipedia, the Animal Crossing wiki
(fixing cargo table look)
(fixing item link (bag items defo need to be added here))
Line 1: Line 1:
<includeonly><!-- This first line must remain empty -->
+
<includeonly><!-- This first line must remain empty -->{{#vardefine:item-name1|{{#cargo_query: table=nh_identifier|fields=nh_identifier.en_name|where=nh_identifier.en_name = "{{{item1|}}}"|limit=2000|default=|no html}}}}{{#vardefine:item-name2|{{#cargo_query: table=nh_identifier|fields=nh_identifier.en_name|where=nh_identifier.en_name = "{{{item2|}}}"|limit=2000|default=|no html}}}}{{#vardefine:item-name3|{{#cargo_query: table=nh_identifier|fields=nh_identifier.en_name|where=nh_identifier.en_name = "{{{item3|}}}"|limit=2000|default=|no html}}}}
 
|- style="text-align:center;"
 
|- style="text-align:center;"
 
! scope="row" style="background-color:#d8ecf3; border-top-left-radius: 0" | [[File:{{{name|}}} NH Villager Icon.png|x32px|link={{{pagename|}}}]]
 
! scope="row" style="background-color:#d8ecf3; border-top-left-radius: 0" | [[File:{{{name|}}} NH Villager Icon.png|x32px|link={{{pagename|}}}]]
Line 5: Line 5:
 
| {{{thought|}}}
 
| {{{thought|}}}
 
| {{{request|}}}
 
| {{{request|}}}
| {{#if:{{{item1|}}}|{{I|{{{item1|}}}|New Horizons}}}}{{#if:{{{item2|}}}|<br>{{I|{{{item2|}}}|New Horizons}}}}{{#if:{{{item3|}}}|<br>{{I|{{{item3|}}}|New Horizons}}}}
+
| {{#if:{{{item1|}}}|{{#if:{{#var:item-name1}}|{{I|{{{item1|}}}|New Horizons}}|[[{{{item1|}}}]]}}{{#if:{{{item2|}}}|<br>{{#if:{{#var:item-name2}}|{{I|{{{item2|}}}|New Horizons}}|[[{{{item2|}}}]]}}}}{{#if:{{{item3|}}}|<br>{{#if:{{#var:item-name3}}|{{I|{{{item3|}}}|New Horizons}}|[[{{{item3|}}}]]}}}}
 
| {{#if:{{{song|}}}|[[{{{song|}}}]]}}
 
| {{#if:{{{song|}}}|[[{{{song|}}}]]}}
 
</includeonly><noinclude>[[Category:Cargo display templates]]</noinclude>
 
</includeonly><noinclude>[[Category:Cargo display templates]]</noinclude>

Revision as of 19:08, November 22, 2021