Difference between revisions of "Template:HHPRequirement"

From Nookipedia, the Animal Crossing wiki
m
(chaning template colors and adding roundy)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="background-color:gray"
+
<noinclude>{{#cargo_declare:
 +
_table=hhp_facility_category
 +
|facility = String
 +
|room = String
 +
|category = String
 +
|requirement = Integer
 +
|items = Text
 +
}}</noinclude><includeonly>{{#ifeq:{{NAMESPACE}}||{{#cargo_store:
 +
_table=hhp_facility_category
 +
|facility = {{{facility|{{PAGENAME}}}}}
 +
|room = {{{room|}}}
 +
|category = {{{category|}}}
 +
|requirement = {{{requirement|}}}
 +
|items = [ {{#forargs: item | key | value | {{#ifexpr: {{#var: key}} > 1 | , }} {"item-name": "{{{item{{#var: key}}|}}}"} }} ]
 +
}}}}</includeonly>{{(!}} style="background-color:#fbe36a; {{roundy|9px}}"
 
|-
 
|-
 
| style="width:100px" | [[File:{{{category-image|{{{category|Chairs}}}}}} HHP Category Icon.png|100px|class=sprite|link=]]
 
| style="width:100px" | [[File:{{{category-image|{{{category|Chairs}}}}}} HHP Category Icon.png|100px|class=sprite|link=]]
| rowspan=2 style="background-color:#cbcbcb; width:200px" | <div style="font-family:Coustard; text-align:center;">List:</div>
+
| rowspan=2 style="background-color:#f5e9b3; width:200px" | <div style="font-family:Coustard; text-align:center;">List:</div>
{| class="mw-collapsible mw-collapsed" style="width:100%"
+
{| style="width:100%;"
|+ Show list
 
 
|-
 
|-
|{{#forargs: item
+
| style="height: 200px !important; overflow-x: hidden; overflow-y: auto; padding: 4px; display: inline-block; width: 95%;" | {{#forargs: item
 
  | key
 
  | key
 
  | value
 
  | value
Line 12: Line 25:
 
|}
 
|}
 
|-
 
|-
| style="background-color:#cbcbcb; text-align: center; font-family:Coustard;" | {{{category|Chairs}}}<br>×{{{requirement|}}}
+
| style="background-color:#f5e9b3; text-align: center; font-family:Coustard;" | {{{category|Chairs}}}<br>×{{{requirement|}}}
 
|}
 
|}
 
{{Clear}}<noinclude>[[Category:Templates]]</noinclude>
 
{{Clear}}<noinclude>[[Category:Templates]]</noinclude>

Latest revision as of 13:57, March 15, 2022

This template defines the table "hhp_facility_category". View table.

Chairs HHP Category Icon.png
List:
Chairs
×