Difference between revisions of "Template:Locations/doc"
(Documentation for Template:Locations, pending examples) |
(→Examples: Example added) |
||
Line 81: | Line 81: | ||
TODO: A better solution for this as well. | TODO: A better solution for this as well. | ||
− | == | + | ==Example== |
+ | {{Locations | ||
+ | | Name = Tao Village | ||
+ | | Affiliation = Bay Merchants | ||
+ | | Image = Tao Village 2.png | ||
+ | | Imagesize = 900 | ||
+ | | Area = Tao World | ||
+ | | NPCs = <li style="display: inline-block;">[[File:Anana Portrait.png|50px|link=Anana]]</li><li style="display: inline-block;">[[File:Chill Portrait.png|50px|link=Chill]]</li><li style="display: inline-block;">[[File:Icon Lexy.png|50px|link=Lexy]]</li><li style="display: inline-block;">[[File:Icon Fresnel.png|50px|link=Fresnel]]</li><li style="display: inline-block;">[[File:Icon Maple.png|50px|link=Maple]]</li><li style="display: inline-block;">[[File:Icon GunpowderV2.png|50px|link=Gunpowder]]</li><li style="display: inline-block;">[[File:Icon Dmitri.png|50px|link=Dmitri]]</li><li style="display: inline-block;">[[File:Icon Auntie Kanga.png|50px|link=Auntie Kanga]]</li><li style="display: inline-block;">[[File:Icon Barty.png|50px|link=Barty]]</li><li style="display: inline-block;">[[File:Icon Chrys.png|50px|link=Chrysanthos]]</li><li style="display: inline-block;">[[File:Icon Gnasher.png|50px|link=Gnasher]]</li><li style="display: inline-block;">[[File:Icon Missy.png|50px|link=Missy]]</li><li style="display: inline-block;">[[File:Icon Scout.png|50px|link=Scout]]</li><li style="display: inline-block;">[[File:Icon Archimedes.png|50px|link=Archimedes]]</li><li style="display: inline-block;">[[File:Icon Cyclone.png|50px|link=Cyclone]]</li><li style="display: inline-block;">[[File:Icon Hops.png|50px|link=Hops]]</li><li style="display: inline-block;">[[File:Icon Pal.png|50px|link=Pal]]</li><li style="display: inline-block;">[[File:Icon Palette.png|50px|link=Palette]]</li><li style="display: inline-block;">[[File:Icon Hatch.png|50px|link=Hatch]]</li><li style="display: inline-block;">[[File:Icon Charcoal.png|50px|link=Charcoal]]</li><li style="display: inline-block;">[[File:Icon Tohne.png|50px|link=Tohne]]</li><li style="display: inline-block;">[[File:Icon Master Shao.png|50px|link=Master Shao]]</li><li style="display: inline-block;">[[File:Icon Callahan.png|50px|link=Callahan]]</li><li style="display: inline-block;">[[File:Icon Zaru.png|50px|link=Zaru]]</li><li style="display: inline-block;">[[File:Icon Haychel.png|50px|link=Haychel]]</li><li style="display: inline-block;">[[File:Icon Poppy.png|50px|link=Poppy]]</li><li style="display: inline-block;">[[File:Icon Remedy.png|50px|link=Remedy]]</li><li style="display: inline-block;">[[File:Icon Gerrark.png|50px|link=Gerrark]]</li><li style="display: inline-block;">[[File:Icon Vic.png|50px|link=Vic]]</li><li style="display: inline-block;">[[File:Icon Gabriel.png|50px|link=Gabriel]]</li><li style="display: inline-block;">[[File:Icon Ezekiel.png|50px|link=Ezekiel]]</li><li style="display: inline-block;">[[File:Icon Nugget.png|50px|link=Nugget]]</li><li style="display: inline-block;">[[File:Icon Ore.png|50px|link=Ore]]</li> | ||
+ | | Missions = <li style="display: inline-block;">[[File:M1 Rescuers Stamp.png|50px|link=Mission 1]]</li><li style="display: inline-block;">[[File:M5 Stamp.png|50px|link=Mission 5]]</li><li style="display: inline-block;">[[File:M6 Stamp.png|50px|link=Mission 6]]</li><li style="display: inline-block;">[[File:M7 Stamp.png|50px|link=Mission 7]]</li> | ||
+ | | Events = <li style="display: inline-block;">[[File:E1 Stamp.png|50px|link=Event 1]]</li><li style="display: inline-block;">[[File:E2 Stamp.png|50px|link=Event 2]]</li><li style="display: inline-block;">[[File:E3 Stamp.png|50px|link=Event 3]]</li><li style="display: inline-block;">[[File:E4 Stamp.png|50px|link=Event 4]]</li><li style="display: inline-block;">[[File:E7 Stamp.png|50px|link=Event 7]]</li> | ||
+ | | Direction = Almost a day of walk southwest of [[Alomomola City]] | ||
+ | | Landmarks = [[Tao Ranch]]<br>[[Monochrome Tower]] | ||
+ | | Stories = Arc 1:<br>[[PK's Request]]<br>[[Resignation_Chapter_1|Resignation]]<br>[[A Deal]]<br>[[The Pulled String]]<br>Arc 2:<br>[[Successor]]<br>[[The Illusion]]<br>[[Fight and Flight]]<br>[[Event 6 suckers]]<br>[[The Question]]<br>[[Inspiration]] | ||
+ | | Links = [[Rescuers]]<br>[[Merchants]]<br>[[Rogues]] | ||
+ | }}{{clr}} |
Revision as of 08:45, 16 May 2013
Template used as header and continer for additional information on location pages.
Layout devised by User:MissFluffyKitty, source derived from Template:Groupevents.
Uses Template:Guildheader for background color of the header bar.
Contents
Usage
Copy the following codes onto the top of the page in question. Values marked with an asterisk(*) are optional.
{{Locations | Name = (Name of location, defaults to BASEPAGENAME) | Affiliation = (Affiliation of the location, defines background color of the first row from Template:Guildheader) | Image = * (Full file name with extension, case sensitive) | Imagesize = * (Horizonal size of the image in pixels, no effect if Image is left empty) | Area = * (Continent or major geographical region the location was located on) | NPCs = * (Copy content from sourcecode of Category:Characters - See further instructions on template document) | Missions = * (Missions the location was involved in - See further instructions) | Events = * (Ditto) | Direction = * (Direction from other nearby major locations, such as "About a day on foot west of Tao Village" for Castle Draclugia) | Landmarks = * (Nearby major landmarks e.g. Monochrome Tower for Tao Village) | Stories = * (Related stories, replace line breaks with <br>) | Links = * (Other links, replace line breaks with <br>) }}{{clr}}
If table of contents is needed, add __TOC__ before the {{clr}} template. Any content that would reside in the same section with this template would also go there.
Instructions for NPCs value
- Copy sourcecode between <ul> and </ul> tags from corresponding sections of Category:Characters.
- Change icon size from 100px to 50px, remove NPC name captions, replace line breaks with <br>. For example:
Original:
<li style="display: inline-block;">[[File:Anana Portrait.png|100px|link=Anana]]<br>[[Anana]]</li>
<li style="display: inline-block;">[[File:Chill Portrait.png|100px|link=Chill]]<br>[[Chill]]</li>
<li style="display: inline-block;">[[File:Icon Lexy.png|100px|link=Lexy]]<br>[[Lexy]]</li>
Modified:
<li style="display: inline-block;">[[File:Anana Portrait.png|50px|link=Anana]]</li><br><li style="display: inline-block;">[[File:Chill Portrait.png|50px|link=Chill]]]</li><br><li style="display: inline-block;">[[File:Icon Lexy.png|50px|link=Lexy]]</li>
- Use the resulting blob of code as the NPCs value of the template. Each row contain 5 icons at most, use additional <br> tags near the last row for additional formatting if necessery.
TODO: Need a better solution for this.
Instructions for Missions and Events value
Use the following code for Mission and Event stamps:
Missions: <li style="display: inline-block;">[[File:M1 Rescuers Stamp.png|50px|link=Mission_1#Rescuers.27_Mission_1]]</li> <li style="display: inline-block;">[[File:M1 Rogue-Merchant Stamp.png|50px|link=Mission_1#Merchants.27_Mission_1]]</li> <li style="display: inline-block;">[[File:M1 Rogue-Merchant Stamp.png|50px|link=Mission_1#Rogues.27_Mission_1]]</li> <li style="display: inline-block;">[[File:M2 Merchant-Rescuer Stamp.png|50px|link=Mission_2#Rescuers.27_Mission_2]]</li> <li style="display: inline-block;">[[File:M2 Merchant-Rescuer Stamp.png|50px|link=Mission_2#Merchants.27_Mission_2]]</li> <li style="display: inline-block;">[[File:M2 Rogue Stamp.png|50px|link=Mission_2#Rogues.27_Mission_2]]</li> <li style="display: inline-block;">[[File:M3 Stamp.png|50px|link=Mission 3]]</li> <li style="display: inline-block;">[[File:M4 Rescuers Stamp.png|50px|link=Mission_4#Rescuers.27_Mission_4]]</li> <li style="display: inline-block;">[[File:M4 Merchants Stamp.png|50px|link=Mission_4#Merchants.27_Mission_4]]</li> <li style="display: inline-block;">[[File:M4 Rogues Stamp.png|50px|link=Mission_4#Rogues.27_Mission_4]]</li> <li style="display: inline-block;">[[File:M5 Stamp.png|50px|link=Mission 5]]</li> <li style="display: inline-block;">[[File:M6 Stamp.png|50px|link=Mission 6]]</li> <li style="display: inline-block;">[[File:M7 Stamp.png|50px|link=Mission 7]]</li> Events: <li style="display: inline-block;">[[File:E1 Stamp.png|50px|link=Event 1]]</li> <li style="display: inline-block;">[[File:E2 Stamp.png|50px|link=Event 2]]</li> <li style="display: inline-block;">[[File:E3 Stamp.png|50px|link=Event 3]]</li> <li style="display: inline-block;">[[File:E4 Stamp.png|50px|link=Event 4]]</li> <li style="display: inline-block;">[[File:E6 part 1 Stamp.png|25px|link=Event 6 Part 1]]</li> <li style="display: inline-block;">[[File:E6 part 2 Stamp.png|25px|link=Event 6 Part 2]]</li> <li style="display: inline-block;">[[File:E7 Stamp.png|50px|link=Event 7]]</li> Again, replace any and all linebreaks with <br>.
- And again, each row would contain 5 stamps at most, and there are separate rows for Missions and Events. Add additional linebreaks (<br>) if necessery.
TODO: A better solution for this as well.
Example
Tao Village |
|
---|---|
Part of Tao World |
|
|
|
|
|
|
|
|
|
Affiliation | Bay Merchants |
Direction | Almost a day of walk southwest of Alomomola City |
Nearby Landmarks | Tao Ranch Monochrome Tower |
Related Stories | Arc 1: PK's Request Resignation A Deal The Pulled String Arc 2: Successor The Illusion Fight and Flight Event 6 suckers The Question Inspiration |
Links | Rescuers Merchants Rogues |