×
Create a new article
Write your page title here:
We currently have 2,844 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
2,844Articles

Template:Locationbox/doc: Difference between revisions

No edit summary
(add category notice)
 
(32 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{CategorySetting}}
{{PropertySetting}}
<templatedata>
<templatedata>
{
{ "description": "Displays an infobox containing a world's details.",
"params": {
"params": {
"headercolor": {
"headercolor": {
"label": "headercolor",
"label": "Header color",
"description": "The color of the header of the location box.",
"description": "The header's background color.",
"type": "string",
"type": "string",
"default": "#3366CC",
"suggested": true,
"suggested": true
"default": "#3366CC"
},
},
"headerfontcolor": {
"headerfontcolor": {
"label": "headerfontcolor",
"label": "Header font color",
"description": "The color of the text for the header of the location box.",
"description": "The header's text color.",
"type": "string",
"type": "string",
"default": "#FFFFFF"
"suggested": true,
"default": "#ffffff"
},
},
"image": {
"image": {
"label": "image",
"label": "Location image",
"description": "The file name for the image to be displayed by the location box.",
"description": "The file name for the image to be displayed. It should properly represent the location.",
"type": "wiki-file-name"
"type": "wiki-file-name",
"example": "Azure_garden.png",
"required": true
},
},
"caption": {
"Name": {
"label": "caption",
"label": "Original Name(s)",
"description": "The corresponding caption for the image, visible if a value is provided.",
"description": "The area's original native-language names, along with any translations thereof, separated by commas. If the original name is Japanese and you specified it for \"JapaneseName\", do not repeat it here.",
"type": "string"
"example": "''Tobirabeya'', Door Room",
"type": "string",
"suggested": true
},
},
"JapaneseName": {
"JapaneseName": {
"label": "JapaneseName",
"label": "Japanese Name",
"description": "The area's Japanese name.",
"description": "The area's original name in Japanese, if applicable. Only one value is accepted.",
"example": "扉部屋",
"example": "扉部屋",
"type": "string"
"type": "string"
Line 33: Line 40:
"Effects": {
"Effects": {
"label": "Effects",
"label": "Effects",
"description": "Effects obtainable in the current location.",
"description": "Effects (or the game's equivalent) obtainable in this location.",
"example": "Chainsaw",
"example": "Chainsaw",
"type": "string"
"type": "string",
"required": true
},
},
"Wallpapers": {
"Collectibles": {
"label": "Wallpapers",
"label": "Collectibles",
"description": "Collectibles that you can find in the current location.",
"description": "Collectibles that you can find in this location.",
"example": "WP #87, Kura Puzzle #45",
"example": "WP #87, Kura Puzzle #45",
"type": "string"
"type": "string",
"aliases": [
"Wallpapers",
"Menu"
],
"required": true
},
},
"Events": {
"Events": {
"label": "Events",
"label": "Events",
"description": "Events that you can encounter.",
"description": "Events that you can encounter in this location.",
"type": "string"
"type": "string",
"required": true
},
},
"NPCS": {
"NPCS": {
"label": "NPCS",
"label": "Notable NPCs",
"description": "Notable NPCs that show up in the current location.",
"description": "Noteworthy NPCs that show up in this location.",
"type": "string"
"type": "string",
"required": true
},
},
"Connections": {
"Connections": {
"label": "Connections",
"label": "Connecting Areas",
"description": "Locations accessible from the location at present.",
"description": "List of areas connected to this location (using the Connection template) as of the game's current version.",
"type": "string"
"type": "string",
"example": "{{Connection|Dream Pool|one_way_type=NoEntry}}",
"required": true
},
},
"BGM": {
"BGM": {
"label": "BGM",
"label": "BGM",
"description": "Soundtrack that plays in the current location.",
"description": "List of tracks (using the BGM template) that play in this location and/or specific rooms/maps within it.",
"type": "string"
"type": "string",
"example": "{{BGM|title=soto_C5|filename=Soto-C5.ogg|label=Glasses Path}}",
"required": true
},
},
"Map ID": {
"Map ID": {
"label": "Map ID",
"label": "Map ID",
"description": "The IDs corresponding to the location's map, as well as any existing sub-areas.",
"description": "List of IDs corresponding to the location's map and its sub-areas. Zero-padded, with four digits. Annotations may be added to each map ID using parentheses.",
"example": "0002, 0003 (Sub-area)",
"type": "string",
"required": true
},
"VersionAdded": {
"label": "Version Added",
"description": "The version in which the area was first added.",
"example": "0.114",
"type": "string",
"required": true
},
"VersionsUpdated": {
"label": "Versions Updated",
"description": "The version(s) in which the area has been updated. This should not include VersionAdded, VersionRemoved, or any removed versions in VersionGaps. Use commas to separate multiple instances. Versions may also be followed by a dash and a 1 or 2 character code; this is an update type identifier used by Yume 2kki Explorer, and these are automatically handled by the version manager in the app.",
"example": "0.112, 0.112 patch 1, 0.112d",
"type": "string",
"suggested": true
},
"Primary": {
"label": "Primary Author",
"description": "The location's main author(s). Applicable to collaborative games.",
"type": "string",
"suggested": true
},
"Contributing": {
"label": "Contributing Authors",
"description": "Authors who have contributed to the location. Applicable to collaborative games.",
"type": "string"
},
"name": {
"label": "Display Name",
"description": "Overrides using the page name as the header text. If the name of the location should be changed on the wiki, move the page instead of using this parameter.",
"type": "string",
"autovalue": "{{PAGENAME}}"
},
"headerfontsize": {
"label": "Header font size",
"description": "The header's font size as a percentage.",
"type": "string",
"default": "200%"
},
"imagewidth": {
"label": "Image width",
"description": "The image width in px.",
"type": "number",
"default": "250"
},
"caption": {
"label": "Image caption",
"description": "A corresponding caption for the image, visible if a value is provided.",
"type": "string"
},
"Masks": {
"label": "Masks",
"description": "Yume 2kki Masks available to equip in the location.",
"type": "string"
"type": "string"
},
},
"Contributing": {
"RemovedConnections": {
"label": "Contributing",
"label": "Removed Connections",
"description": "Authors who have added to the location, visible if a value is provided.",
"description": "List of areas connected to this location (using the Connection template) that have since been removed. Be sure to include \"is_removed=true\" in each connection.",
"type": "string",
"example": "{{Connection|Digital Forest|is_removed=true}}"
},
"Map Type": {
"label": "Map Type",
"description": "Descriptors for a given location, such as the overall map size and whether it loops or otherwise.",
"example": "Small, Non-looping",
"type": "string"
"type": "string"
},
},
"Primary": {
"VersionRemoved": {
"label": "Primary",
"label": "Version Removed",
"description": "The location's main author.",
"description": "The version in which the area was removed, if applicable.",
"example": "0.115a",
"type": "string"
"type": "string"
},
},
"Name": {
"VersionGaps": {
"label": "Name",
"label": "Version Gaps",
"description": "The area's original Japanese names, along with any translations thereof, separated by commas..",
"description": "Any gaps where the area was removed only to later be re-added, starting with the version it was removed, followed by a dash, followed by the version it was re-added in. Use commas to separate multiple instances.",
"example": "扉部屋, ''Tobirabeya'', Door Room",
"example": "0.110b-0.110b patch 1,0.111-0.113a",
"type": "string"
"type": "string"
}
}
},
},
"description": "Displays a location box, which contains a world's details.",
"format": "{{_\n|_ = _\n}}",
"paramOrder": [
"paramOrder": [
"headercolor",
"headercolor",
"headerfontcolor",
"headerfontcolor",
"image",
"Name",
"Name",
"image",
"caption",
"JapaneseName",
"JapaneseName",
"Effects",
"Effects",
"Wallpapers",
"Collectibles",
"Events",
"Events",
"NPCS",
"NPCS",
Line 100: Line 181:
"BGM",
"BGM",
"Map ID",
"Map ID",
"VersionAdded",
"VersionsUpdated",
"Primary",
"Contributing",
"Contributing",
"Primary"
"name",
"headerfontsize",
"imagewidth",
"caption",
"Masks",
"RemovedConnections",
"Map Type",
"VersionRemoved",
"VersionGaps"
]
]
}
}
</templatedata>
</templatedata>
==Semantic properties==
This template exposes the following semantic properties.
{| style="width: 100%;" cellspacing="0" cellpadding="4" class="wikitable"
!style="text-align: center;"|Property name
!style="text-align: center;"|Description
!style="text-align: center;"|Data type
!style="text-align: center;"|Cardinality
|-
|Has location image filename
|The location image's filename.
|Page
|Single
|-
|Header font color
|The color of the locationbox's header text. Used for location-based styling.
|String
|Single
|-
|Header background color
|The color of the locationbox's header background. Used for location-based styling.
|String
|Single
|-
|Has location image
|The path pointing to the location image. Used for external applications to refer to the image.
|String
|Single
|-
|Japanese name
|The area's Japanese (or generally, native-language) name. Used for localization purposes.
|String
|Single
|-
|Version added
|The version where the location was added. Primarily used with the Yume 2kki Explorer.
|String
|Single
|-
|Versions updated
|The version(s) where the location was updated. Primarily used with the Yume 2kki Explorer.
|String
|Multiple
|-
|Version removed
|The version where the location was removed. Primarily used with the Yume 2kki Explorer.
|String
|Single
|-
|Version gaps
|The versions where the location was absent prior to its return. Primarily used with the Yume 2kki Explorer.
|String
|Multiple
|-
|Has map type
|The properties describing a map's nature.
|String
|Multiple
|-
|Has primary author
|The person(s) who created the location; this is applicable to collaborative fangame projects.
|String
|Multiple
|-
|Has contributing author
|The person(s) contributing to the the development of the location; this is applicable to collaborative fangame projects.
|String
|Multiple
|}


==General usage==
==General usage==
<poem><code><nowiki>
<pre style="line-height:1.6;">
{{Locationbox
|headercolor = #4A0400
|headerfontcolor = #FFA500
|image = volcanic_subterrain.png
|Effects = None
|Wallpapers = None
|Events = None
|NPCS = None
|Connections = [[Chemical Research Facility]] {{OneWay|NoEntry}}
|BGM = bgm-e (after lighting the foundry)
|Map ID = 1023
|Primary = [[:Category:Ruri|Ruri]]
|Contributing = [[:Category:Qxy|qxy]]
}}
</nowiki></code></poem>
will return
{{Locationbox
{{Locationbox
|headercolor = #4A0400
|name = Volcanic Subterrain
|headerfontcolor = #FFA500
|headercolor = #4a0400
|headerfontcolor = #ffa500
|image = volcanic_subterrain.png
|image = volcanic_subterrain.png
|Primary = [[:Category:Ruri|Ruri]]
|JapaneseName = 鍛冶場
|Contributing = [[:Category:Qxy|qxy]]
|Name = ''Kajiba'', Foundry
|Effects = None
|Effects = None
|Wallpapers = None
|Wallpapers = None
|Events = None
|Events = None
|NPCS = None
|NPCS = None
|Connections = [[Chemical Research Facility]] {{OneWay|NoEntry}}
|Connections = {{Connection|Chemical Research Facility|one_way_type=NoEntry}}
|BGM = bgm-e (after lighting the foundry)
|BGM = {{BGM|title=bgm-e|filename=Bgm-e.ogg|label=after lighting the foundry}}
|Map ID = 1023}}
|Map ID = 1023
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
|Primary = Ruri
|Contributing = qxy
|VersionAdded = 0.109h patch 4
|VersionRemoved = 0.112i
}}
</pre>
will return:
{{Locationbox
|name = Volcanic Subterrain
|headercolor = #4a0400
|headerfontcolor = #ffa500
|image = volcanic_subterrain.png
|JapaneseName = 鍛冶場
|Name = ''Kajiba'', Foundry
|Effects = None
|Wallpapers = None
|Events = None
|NPCS = None
|Connections = [[Yume 2kki:Chemical Research Facility|Chemical Research Facility]] <span title="Cannot be entered from this area" tabindex="0" style="font-size:125%; line-height:1em;">⛔</span>
|BGM = {{BGM|title=bgm-e|filename=Bgm-e.ogg|label=after lighting the foundry}}
|Map ID = 1023
|Primary = Ruri
|Contributing = qxy
|VersionAdded = 0.109h patch 4
|VersionRemoved = 0.112i
}}
 
<noinclude>__NOTOC__ [[Category:Template documentation]]</noinclude>
<includeonly>__NOEDITSECTION__
[[Category:Wiki-dependent]]
[[Category:Location templates]]
[[Category:Infobox templates]]
</includeonly>

Latest revision as of 09:34, 29 July 2024

Displays an infobox containing a world's details.

Template parameters

This template has custom formatting.

ParameterDescriptionTypeStatus
Header colorheadercolor

The header's background color.

Default
#3366CC
Stringsuggested
Header font colorheaderfontcolor

The header's text color.

Default
#ffffff
Stringsuggested
Location imageimage

The file name for the image to be displayed. It should properly represent the location.

Example
Azure_garden.png
Filerequired
Original Name(s)Name

The area's original native-language names, along with any translations thereof, separated by commas. If the original name is Japanese and you specified it for "JapaneseName", do not repeat it here.

Example
''Tobirabeya'', Door Room
Stringsuggested
Japanese NameJapaneseName

The area's original name in Japanese, if applicable. Only one value is accepted.

Example
扉部屋
Stringoptional
EffectsEffects

Effects (or the game's equivalent) obtainable in this location.

Example
Chainsaw
Stringrequired
CollectiblesCollectibles Wallpapers Menu

Collectibles that you can find in this location.

Example
WP #87, Kura Puzzle #45
Stringrequired
EventsEvents

Events that you can encounter in this location.

Stringrequired
Notable NPCsNPCS

Noteworthy NPCs that show up in this location.

Stringrequired
Connecting AreasConnections

List of areas connected to this location (using the Connection template) as of the game's current version.

Example
{{Connection|Dream Pool|one_way_type=NoEntry}}
Stringrequired
BGMBGM

List of tracks (using the BGM template) that play in this location and/or specific rooms/maps within it.

Example
{{BGM|title=soto_C5|filename=Soto-C5.ogg|label=Glasses Path}}
Stringrequired
Map IDMap ID

List of IDs corresponding to the location's map and its sub-areas. Zero-padded, with four digits. Annotations may be added to each map ID using parentheses.

Example
0002, 0003 (Sub-area)
Stringrequired
Version AddedVersionAdded

The version in which the area was first added.

Example
0.114
Stringrequired
Versions UpdatedVersionsUpdated

The version(s) in which the area has been updated. This should not include VersionAdded, VersionRemoved, or any removed versions in VersionGaps. Use commas to separate multiple instances. Versions may also be followed by a dash and a 1 or 2 character code; this is an update type identifier used by Yume 2kki Explorer, and these are automatically handled by the version manager in the app.

Example
0.112, 0.112 patch 1, 0.112d
Stringsuggested
Primary AuthorPrimary

The location's main author(s). Applicable to collaborative games.

Stringsuggested
Contributing AuthorsContributing

Authors who have contributed to the location. Applicable to collaborative games.

Stringoptional
Display Namename

Overrides using the page name as the header text. If the name of the location should be changed on the wiki, move the page instead of using this parameter.

Auto value
{{PAGENAME}}
Stringoptional
Header font sizeheaderfontsize

The header's font size as a percentage.

Default
200%
Stringoptional
Image widthimagewidth

The image width in px.

Default
250
Numberoptional
Image captioncaption

A corresponding caption for the image, visible if a value is provided.

Stringoptional
MasksMasks

Yume 2kki Masks available to equip in the location.

Stringoptional
Removed ConnectionsRemovedConnections

List of areas connected to this location (using the Connection template) that have since been removed. Be sure to include "is_removed=true" in each connection.

Example
{{Connection|Digital Forest|is_removed=true}}
Stringoptional
Map TypeMap Type

Descriptors for a given location, such as the overall map size and whether it loops or otherwise.

Example
Small, Non-looping
Stringoptional
Version RemovedVersionRemoved

The version in which the area was removed, if applicable.

Example
0.115a
Stringoptional
Version GapsVersionGaps

Any gaps where the area was removed only to later be re-added, starting with the version it was removed, followed by a dash, followed by the version it was re-added in. Use commas to separate multiple instances.

Example
0.110b-0.110b patch 1,0.111-0.113a
Stringoptional

Semantic properties

This template exposes the following semantic properties.

Property name Description Data type Cardinality
Has location image filename The location image's filename. Page Single
Header font color The color of the locationbox's header text. Used for location-based styling. String Single
Header background color The color of the locationbox's header background. Used for location-based styling. String Single
Has location image The path pointing to the location image. Used for external applications to refer to the image. String Single
Japanese name The area's Japanese (or generally, native-language) name. Used for localization purposes. String Single
Version added The version where the location was added. Primarily used with the Yume 2kki Explorer. String Single
Versions updated The version(s) where the location was updated. Primarily used with the Yume 2kki Explorer. String Multiple
Version removed The version where the location was removed. Primarily used with the Yume 2kki Explorer. String Single
Version gaps The versions where the location was absent prior to its return. Primarily used with the Yume 2kki Explorer. String Multiple
Has map type The properties describing a map's nature. String Multiple
Has primary author The person(s) who created the location; this is applicable to collaborative fangame projects. String Multiple
Has contributing author The person(s) contributing to the the development of the location; this is applicable to collaborative fangame projects. String Multiple

General usage

{{Locationbox
|name = Volcanic Subterrain
|headercolor = #4a0400
|headerfontcolor = #ffa500
|image = volcanic_subterrain.png
|JapaneseName = 鍛冶場
|Name = ''Kajiba'', Foundry
|Effects = None
|Wallpapers = None
|Events = None
|NPCS = None
|Connections = {{Connection|Chemical Research Facility|one_way_type=NoEntry}}
|BGM = {{BGM|title=bgm-e|filename=Bgm-e.ogg|label=after lighting the foundry}}
|Map ID = 1023
|Primary = Ruri
|Contributing = qxy
|VersionAdded = 0.109h patch 4
|VersionRemoved = 0.112i
}}

will return:

Volcanic Subterrain
Volcanic subterrain.png
Basic Info
Japanese Name(s)

鍛冶場
Kajiba
Foundry

Effects EffectNone
Events None
Notable NPCs None
Other
Connecting Areas

Chemical Research Facility

BGM bgm-e: after lighting the foundry
Map ID 1023
Version Added 0.109h patch 4
Version Removed 0.112i
Primary Author Ruri
Contributing Author(s) qxy