Template:LocationAttr/doc: Difference between revisions

From Dragon Quest Wiki
Jump to navigation Jump to search
(Created page)
 
No edit summary
 
(13 intermediate revisions by 2 users not shown)
Line 2: Line 2:


==Usage==
==Usage==
In almost all cases, using this template should be preceded by an '''Other notable attributes''' heading on the article it is being transcluded onto. This is because there is no label marking the table data within this template. This is consistent with other location templates.
In almost all cases, using this template should be preceded by an '''Other notable attributes''' heading on the article it is being transcluded onto.  
===Header===
====Save entry====
A header call to this template should be the first usage of this template on any page.
The save entry is a pre-populated entry for marking a location as a save point.
<pre>{{LocationAttr|header|float=right}}</pre>
{{LocationAttr|save}}
*header: A required parameter which marks this as the start of an teleportal table.
<pre>{{LocationAttr|save}}</pre>
*float: The float parameter is optional.  It represents the CSS float style and should be 'left', 'right', or 'center'. The default is ''left''.
====Zoom entry====
===Entries===
The zoom entry is a pre-populated entry for marking a location as a zoom point.
Each entry in the location attribute table is represented by a single template call.
{{LocationAttr|zoom}}
<pre>{{LocationAttr|entry|info=The game can be saved in this location.|game=[[Dragon Warrior]]|console=NES}}</pre>
<pre>{{LocationAttr|zoom}}</pre>
*entry: A required parameter which marks this as a single location attribute table entry.
====Lottery entry====
*info: General info about the attribute.
The lottery entry is a pre-populated entry for marking a location as having a lottery location.
*game: The game this attribute represents. This parameter can contain multiple games if applicable.
{{LocationAttr|lottery}}
*console: The console version of the game. '''Note:''' This parameter should contain multiple console values separated by commas if the game and info parameters are the same.
<pre>{{LocationAttr|lottery}}</pre>
===Footer===
====Party entry====
The footer call marks the end of the location attribute table.
The party entry is a pre-populated entry for marking a location as having a location where party members can be changed.
<pre>{{LocationAttr|footer}}</pre>
{{LocationAttr|party}}
*footer: A required parameter marking the template as the footer.
<pre>{{LocationAttr|party}}</pre>
====Monster entry====
The monster entry is a pre-populated entry for marking a location as having a location where monster companions can be changed.
{{LocationAttr|monster}}
<pre>{{LocationAttr|monster}}</pre>
====Casino entry====
{{LocationAttr|casino}}
The casino entry is a pre-populated entry for marking a location as having a casino or other gambling facility.
<pre>{{LocationAttr|casino}}</pre>
====Bank entry====
The bank entry is a pre-populated entry for marking a location as having a bank or vault location.
{{LocationAttr|bank}}
<pre>{{LocationAttr|bank}}</pre>
====Poison entry====
The poison entry is a pre-populated entry for marking a location as having a poisonous marsh/swamp.
{{LocationAttr|poison}}
<pre>{{LocationAttr|poison}}</pre>
====Lava entry====
The lava entry is a pre-populated entry for marking a location as having a lava marsh/swamp.
{{LocationAttr|lava}}
<pre>{{LocationAttr|lava}}</pre>
===Other entry===
For any other entry use the following syntax.
{{LocationAttr|text=This is the only location with ninjas.}}
<pre>{{LocationAttr|text=This is the only location with ninjas.}}</pre>
 
You can also assign an icon for the entry.
{{LocationAttr|other|image=FyggIcon.png|text=This is a location where a [[Fygg]] can be collected.}}
<pre>{{LocationAttr|other|image=FyggIcon.png|text=This is a location where a [[Fygg]] can be collected.}}</pre>
 
{{LocationAttr|other|image=DQXI Camp icon.png|text=This is a location where the party can set up camp for the night.}}
<pre>{{LocationAttr|other|image=DQXI Camp icon.png|text=This is a location where the party can set up camp for the night.}}</pre>
 
{{LocationAttr|other|image=DQXI Horse Call icon.png|text=This is a location where a [[Horse and monster riding|horse]] can be called.}}
<pre>{{LocationAttr|other|image=DQXI Horse Call icon.png|text=This is a location where a [[Horse and monster riding|horse]] can be called.}}</pre>
 
==Example==
==Example==
===Sample===
===Sample===
{{LocationAttr|header}}
{{LocationAttr|save}}
{{LocationAttr|entry|info=This is a location where the game can be saved.|game=[[Dragon Warrior II]]|console=NES}}
{{LocationAttr|zoom}}
{{LocationAttr|entry|info=This is a zoom point location.|game=[[Dragon Warrior III]]|console=GBC}}
{{LocationAttr|lottery}}
{{LocationAttr|footer}}
{{LocationAttr|party}}
{{LocationAttr|monster}}
{{LocationAttr|casino}}
{{LocationAttr|bank}}
{{LocationAttr|other|image=DQXI Camp icon.png|text=This is a location where the party can set up camp for the night.}}
{{LocationAttr|other|image=DQXI Horse Call icon.png|text=This is a location where a [[Horse and monster riding|horse]] can be called.}}
{{LocationAttr|text=This is a location where party members can change class.}}
===Code===
===Code===
<pre>
<pre>
{{LocationAttr|header}}
{{LocationAttr|save}}
{{LocationAttr|entry|info=This is a location where the game can be saved.|game=[[Dragon Warrior II]]|console=NES}}
{{LocationAttr|zoom}}
{{LocationAttr|entry|info=This is a zoom point location.|game=[[Dragon Warrior III]]|console=GBC}}
{{LocationAttr|lottery}}
{{LocationAttr|footer}}
{{LocationAttr|party}}
{{LocationAttr|monster}}
{{LocationAttr|casino}}
{{LocationAttr|bank}}
{{LocationAttr|other|image=DQXI Camp icon.png|text=This is a location where the party can set up camp for the night.}}
{{LocationAttr|other|image=DQXI Horse Call icon.png|text=This is a location where a [[Horse and monster riding|horse]] can be called.}}
{{LocationAttr|text=This is a location where party members can change class.}}
</pre>
</pre>

Latest revision as of 21:24, 22 March 2022

The LocationAttr template is used to display location attributes which do not fit in any other location template category. These attributes include save locations, zoom point locations, and lottery locations.

Usage[edit]

In almost all cases, using this template should be preceded by an Other notable attributes heading on the article it is being transcluded onto.

Save entry[edit]

The save entry is a pre-populated entry for marking a location as a save point.

   Save icon.png    This is a location where the game can be saved.

{{LocationAttr|save}}

Zoom entry[edit]

The zoom entry is a pre-populated entry for marking a location as a zoom point.

   Zoom icon.png    This location can be reached using the Zoom spell.

{{LocationAttr|zoom}}

Lottery entry[edit]

The lottery entry is a pre-populated entry for marking a location as having a lottery location.

   Lottery icon.png    The tombola can be played at this location.

{{LocationAttr|lottery}}

Party entry[edit]

The party entry is a pre-populated entry for marking a location as having a location where party members can be changed.

   Party icon.png Party members can be exchanged at this location.

{{LocationAttr|party}}

Monster entry[edit]

The monster entry is a pre-populated entry for marking a location as having a location where monster companions can be changed.

   Monster icon.png   Monster companions can be exchanged at this location.

{{LocationAttr|monster}}

Casino entry[edit]

   Casino icon.png   This location includes a casino or other gambling facility.

The casino entry is a pre-populated entry for marking a location as having a casino or other gambling facility.

{{LocationAttr|casino}}

Bank entry[edit]

The bank entry is a pre-populated entry for marking a location as having a bank or vault location.

   Bank icon.png    This location includes a bank or vault.

{{LocationAttr|bank}}

Poison entry[edit]

The poison entry is a pre-populated entry for marking a location as having a poisonous marsh/swamp.

   Poison puddle.png    This location contains poisonous marshes/swamps.

{{LocationAttr|poison}}

Lava entry[edit]

The lava entry is a pre-populated entry for marking a location as having a lava marsh/swamp.

   Snstar2006-Lava puddle.png    This location contains lava marshes/swamps.

{{LocationAttr|lava}}

Other entry[edit]

For any other entry use the following syntax.

   Location Attributes Icon.png    This is the only location with ninjas.

{{LocationAttr|text=This is the only location with ninjas.}}

You can also assign an icon for the entry.

   FyggIcon.png    This is a location where a Fygg can be collected.

{{LocationAttr|other|image=FyggIcon.png|text=This is a location where a [[Fygg]] can be collected.}}


   DQXI Camp icon.png    This is a location where the party can set up camp for the night.

{{LocationAttr|other|image=DQXI Camp icon.png|text=This is a location where the party can set up camp for the night.}}


   DQXI Horse Call icon.png    This is a location where a horse can be called.

{{LocationAttr|other|image=DQXI Horse Call icon.png|text=This is a location where a [[Horse and monster riding|horse]] can be called.}}

Example[edit]

Sample[edit]

   Save icon.png    This is a location where the game can be saved.

   Zoom icon.png    This location can be reached using the Zoom spell.

   Lottery icon.png    The tombola can be played at this location.

   Party icon.png Party members can be exchanged at this location.

   Monster icon.png   Monster companions can be exchanged at this location.

   Casino icon.png   This location includes a casino or other gambling facility.

   Bank icon.png    This location includes a bank or vault.

   DQXI Camp icon.png    This is a location where the party can set up camp for the night.

   DQXI Horse Call icon.png    This is a location where a horse can be called.

   Location Attributes Icon.png    This is a location where party members can change class.

Code[edit]

{{LocationAttr|save}}
{{LocationAttr|zoom}}
{{LocationAttr|lottery}}
{{LocationAttr|party}}
{{LocationAttr|monster}}
{{LocationAttr|casino}}
{{LocationAttr|bank}}
{{LocationAttr|other|image=DQXI Camp icon.png|text=This is a location where the party can set up camp for the night.}}
{{LocationAttr|other|image=DQXI Horse Call icon.png|text=This is a location where a [[Horse and monster riding|horse]] can be called.}}
{{LocationAttr|text=This is a location where party members can change class.}}