|
|
| 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===
| |
| A header call to this template should be the first usage of this template on any page.
| |
| <pre>{{LocationAttr|header}}</pre>
| |
| *header: A required parameter which marks this as the start of an teleportal table.
| |
| ===Entries===
| |
| Each entry in the location attribute table is represented by a single template call. There are 3 specialty entry types along with the generic entry type.
| |
| <pre>{{LocationAttr|entry|info=The game can be saved in this location.|game=[[Dragon Warrior]]|console=NES}}</pre>
| |
| *entry: A required parameter which marks this as a single location attribute table entry.
| |
| *info: General info about the attribute.
| |
| *game: The game this attribute represents. This parameter can contain multiple games if applicable.
| |
| *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.
| |
| ====Save entry==== | | ====Save entry==== |
| The save entry is a pre-populated entry for marking a location as a save point. | | The save entry is a pre-populated entry for marking a location as a save point. |
| <pre>{{LocationAttr|save|game=[[Dragon Quest VI]]|console=SNES}}</pre> | | <pre>{{LocationAttr|save}}</pre> |
| The game and console parameters are the same as for a normal entry.
| |
| ====Zoom entry==== | | ====Zoom entry==== |
| The zoom entry is a pre-populated entry for marking a location as a zoom point. | | The zoom entry is a pre-populated entry for marking a location as a zoom point. |
| <pre>{{LocationAttr|zoom|game=[[Dragon Quest VI]]|console=SNES}}</pre> | | <pre>{{LocationAttr|zoom}}</pre> |
| The game and console parameters are the same as for a normal entry.
| |
| ====Lottery entry==== | | ====Lottery entry==== |
| The lottery entry is a pre-populated entry for marking a location as having a lottery location. | | The lottery entry is a pre-populated entry for marking a location as having a lottery location. |
| <pre>{{LocationAttr|lottery|game=[[Dragon Quest II]]|console=SNES}}</pre> | | <pre>{{LocationAttr|lottery}}</pre> |
| The game and console parameters are the same as for a normal entry.
| | ===Other entry=== |
| ===Footer=== | | For any other entry use the following syntax. |
| The footer call marks the end of the location attribute table.
| | <pre>{{LocationAttr|text=This is the only location in the game with a Bank.}}</pre> |
| <pre>{{LocationAttr|footer}}</pre> | | |
| *footer: A required parameter marking the template as the footer.
| |
| ==Example== | | ==Example== |
| ===Sample=== | | ===Sample=== |
| {{LocationAttr|header}}
| | {{LocationAttr|save}} |
| {{LocationAttr|save|game=[[Dragon Quest II]]|console=NES}} | | {{LocationAttr|zoom}} |
| {{LocationAttr|zoom|game=[[Dragon Quest]]|console=GBC}} | | {{LocationAttr}} |
| {{LocationAttr|lottery|game=[[Dragon Quest II]]|console=NES,GBC}} | | {{LocationAttr|text=This is a location where party members can be changed.}} |
| {{LocationAttr|entry|info=This is a location where party members can be changed.|game=[[Dragon Warrior III]]|console=NES}} | |
| {{LocationAttr|footer}}
| |
| ===Code=== | | ===Code=== |
| <pre> | | <pre> |
| {{LocationAttr|header}}
| | {{LocationAttr|save}} |
| {{LocationAttr|save|game=[[Dragon Quest II]]|console=NES}} | | {{LocationAttr|zoom}} |
| {{LocationAttr|zoom|game=[[Dragon Quest]]|console=GBC}} | | {{LocationAttr}} |
| {{LocationAttr|lottery|game=[[Dragon Quest II]]|console=NES,GBC}} | | {{LocationAttr|text=This is a location where party members can be changed.}} |
| {{LocationAttr|entry|info=This is a location where party members can be changed.|game=[[Dragon Warrior III]]|console=NES}} | |
| {{LocationAttr|footer}}
| |
| </pre> | | </pre> |