Template:Infobox location: Difference between revisions

From Coral Island Wiki
Jump to navigation Jump to search
No edit summary
m (Undo revision 14495 by Salty Nori (talk))
Tag: Undo
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><infobox>
<includeonly><infobox><!--
<title source="name"><default>{{PAGENAME}}</default></title>
--><title source="name">
<format>{{#if:{{{icon|}}}|[[File:{{{icon}}}|22px|link=]]}} {{{name}}}</format>
<default>{{#if:{{{icon|}}}|[[File:{{{icon}}}|22px|link=]]}} {{PAGENAME}}</default>
</title>
<image source="image">
<image source="image">
<caption source="caption"/>
<caption source="caption"/>
</image>
</image>
     <group>
     <group>
         <data source="type"><label>Type</label></data>
         <data source="type">
            <label>Type</label>
            <format><!--
            -->{{Array|{{{type|}}}|;|[[{item}]]|{newline}|sort=0}}
            </format>
        </data>
         <data source="address"><label>Address</label></data>
         <data source="address"><label>Address</label></data>
         <data source="location"><label>Location</label></data>
         <data source="location">
         <data source="resident"><label>Residents</label></data>
            <label>Location</label>
         </group>
            <format>[[{{{location|}}}]]</format>
        </data>
         <data source="resident">
            <label>Residents</label>
            <format><!--
            -->{{Array|{{{resident}}}|;|3={{NPC|{item}<!--
                -->}}{newline}|sort=1<!--
            -->}}<!--
        --></format>
        </data>
         <data source="res_hours"><label>Residence<br />hours</label></data>
    </group>
     <group>
     <group>
         <data source="hours"><label>Hours</label></data>
    <header>Shop information</header>
         <data source="hours"><label>Open</label></data> <!-- to be removed once all pages are updated -->
         <data source="open"><label>Open</label></data>
         <data source="open"><label>Open</label></data>
         <data source="closed"><label>Closed</label></data>
         <data source="closed"><label>Closed</label></data>
         <data source="owner"><label>Owner</label></data>
         <data source="owner"><label>Owner</label></data>
         <data source="employee"><label>Employees</label></data>
         <data source="employee">
        </group>
          <label>Employees</label>
</infobox>{{#ifeq: {{NAMESPACE}} | | [[Category:Locations]] }}</includeonly>
          <format>{{Array|{{{employee}}}|;|[[{item}]]{newline}<!--
          -->}}</format>
        </data>
    </group>
</infobox><!--
-->{{Namespace|main=<!--
--><!--{{DISPLAYTITLE:{{#if:{{{name|}}}|{{{name|}}}|{{#replace:{{PAGENAME}}|(character)|}}}}|noreplace}}--><!--
-->[[Category:Locations]]<!--
    -->{{#if:{{{type|}}}|{{Array|{{{type}}}|;|[[Category:{item}s]]}}}}<!--
-->{{#if:{{{location|}}}|[[Category:Located in {{{location}}}]]}}<!--
-->}}</includeonly><noinclude>{{Infobox location
|image    = <gallery>
General Store Spring.png|Building
General store location.png|Map location
</gallery>
|name      = Sam's General Store
|icon      = Sam's General Store icon.png
|type      = Store;Residence
|location  = Starlet Town
|resident  = Sam;Emily
|open      = 8:00 - 17:00 (Mon-Sat)<br />8:00 - 13:00 (Sun)
|closed    = Wednesday
|owner    = Sam
|employee  = Eva
}}</noinclude>

Latest revision as of 04:24, 23 January 2024