m (includeonly tags) |
(tweak extras table width) |
||
(60 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{| class="infobox legacy-infobox" | {| class="infobox legacy-infobox" style="max-width:100%; margin-left:2.3em;" | ||
|- | |- | ||
! colspan="2" style=" | ! colspan="2" style="padding:12px; color:{{#tag:nowiki|{{#if: {{{headerfontcolor|}}} | {{{headerfontcolor}}} | #ffffff}}}}; background-color:{{#tag:nowiki|{{#if: {{{headercolor|}}} | {{{headercolor}}} | #3366cc}}}}; font-size:{{{headerfontsize|200%}}}; border-radius:4px 4px 0 0;" | {{{name|{{PAGENAME}}}}} <span style="display:none;" data-font-color="{{#set: Header font color = {{#replace:{{{headerfontcolor|#ffffff}}}|#|<nowiki/>#<nowiki/>}}|template=BySetTemplateSimpleValueOutput}}" data-background-color="{{#set: Header background color = {{#replace:{{{headercolor|#3366cc}}}|#|<nowiki/>#<nowiki/>}}|template=BySetTemplateSimpleValueOutput}}" data-image-url="{{#set: Has location image = {{filepath:{{{image|missing_image_data.png}}}}}|template=BySetTemplateSimpleValueOutput}}"></span> | ||
|- | |- | ||
| colspan="2" style="text-align:center; padding:0.5em;" | | colspan="2" style="text-align:center; padding:0.5em;" | [[{{#set: Has location image filename = File:{{#if: {{{image|}}} | {{{image}}} | missing_image_data.png }}|template=BySetTemplateSimpleValueOutput}}|{{{imagewidth|250}}}px]] {{#if: {{{caption|}}} | <br>''{{{caption}}}'' }} | ||
|- | |- | ||
! colspan="2" style="padding:0.25em; color:{{#tag:nowiki|{{#if: {{{headerfontcolor|}}} | {{{headerfontcolor}}} | #ffffff}}}}; background-color:{{#tag:nowiki|{{#if: {{{headercolor|}}} | {{{headercolor}}} | #3366cc}}}}; font-size:110%;" | ''Basic Info'' | |||
|- | |- | ||
{{#if: {{{Name|}}}| | {{#if: {{{Name|}}} {{{JapaneseName|}}} | | ||
{{!}} ''' | {{!}} '''Japanese Name(s)''' | ||
{{!}}{{TextSpace|{{{Name}}}}} | {{!}}{{TextSpace|{{#if: {{{JapaneseName|}}}|{{{JapaneseName}}}, }} {{{Name|}}} }}{{#if: {{{JapaneseName|}}}| <span class="jp-name" data-jp-name="{{#set: Japanese name = {{{JapaneseName}}}|template=BySetTemplateSimpleValueOutput}}"></span>}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| '''{{EFFECTNAME|s}}''' | |||
|<span style="display:none;">Effect</span>{{#if:{{{Effects|}}}|{{{Effects}}}|None}} | |||
{{#if: {{{ | |||
{{ | |||
{ | |||
|- | |- | ||
{{#if: {{{Collectibles|{{{Wallpapers|{{{Menu|}}}}}}}}}|{{#ifeq:{{{Collectibles|{{{Wallpapers|{{{Menu|}}}}}}}}}|None|| | |||
{{!}} '''Collectibles''' | |||
{{!}}{{TextSpace|{{{Collectibles|{{{Wallpapers|{{{Menu|}}}}}}}}}}} | |||
| | |||
{{!}} ''' | |||
{{!}}{{ | |||
{{!}}- | {{!}}- | ||
}} | }}}} | ||
{{#if: {{{ | {{#if:{{{Masks|}}}| | ||
{{!}} ''' | {{!}} '''Masks''' | ||
{{!}}{{ | {{!}} {{{Masks}}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| '''Events''' | | '''Events''' | ||
| | |{{#if:{{{Events|}}}|{{{Events}}}|None}} | ||
{{{Events}}} | |||
|- | |- | ||
| '''Notable NPCs''' | | '''Notable NPCs''' | ||
| | |{{#if:{{{NPCS|}}}|{{{NPCS}}}|None}} | ||
{{{NPCS}}} | |||
|- | |- | ||
! colspan="2" style="padding:0.25em; color:{{#tag:nowiki|{{#if: {{{headerfontcolor|}}} | {{{headerfontcolor}}} | #ffffff}}}}; background-color:{{#tag:nowiki|{{#if: {{{headercolor|}}} | {{{headercolor}}} | #3366cc}}}}; font-size:110%;" | ''Other'' | |||
|- | |- | ||
| '''Connecting Areas''' | | '''Connecting Areas''' | ||
|{{ | |style="line-height:1.75em;"|{{#arraymap:{{{Connections}}}|,|item|item|}} | ||
|- | |- | ||
{{#if: {{{RemovedConnections|}}}| | {{#if: {{{RemovedConnections|}}}| | ||
{{!}} '''Removed Connections''' | {{!}} '''Removed Connections''' | ||
{{!}}{{ | {{!}}style="line-height:1.75em;"{{!}}{{#arraymap:{{{RemovedConnections}}}|,|item|item|}} | ||
{{!}}- | {{!}}- | ||
}} | }} | ||
| '''BGM''' | | '''BGM''' | ||
|{{ | |{{#if: {{{BGM|}}} | {{#arraymap:{{{BGM}}}|,|item|item|}} | [https://yume.wiki/{{NAMESPACEE}}:{{PAGENAMEE}}/edit ''Missing''] }} | ||
|- | |- | ||
| '''Map ID''' | | '''Map ID''' | ||
|{{{Map ID}}} | |<!-- | ||
-->{{#if: {{{Map ID|}}}<!-- | |||
-->| {{#arraymaptemplate: {{{Map ID|}}} |Template:MapIDs|,|{{#if: {{#pos:{{{Map ID|}}}|(}}|<br>|, }}}}<!-- | |||
-->| [https://yume.wiki/{{NAMESPACEE}}:{{PAGENAMEE}}/edit ''Missing''] <!-- | |||
-->}} | |||
|- | |||
{{#if: {{{Map Type|}}}| | |||
{{!}} '''Map Type''' | |||
{{!}}{{#set: Has map type = {{{Map Type}}}|+sep=,|template=BySetTemplateSimpleValueOutputMultiple}} | |||
{{!}}- | |||
}} | |||
{{#if: {{{VersionAdded|}}}| | |||
{{!}} '''Version Added''' | |||
{{!}}<span class="ver-added" data-ver-added="{{#set: Version added = {{#if:{{#pos:{{{VersionAdded}}}|,}}|x.x|{{{VersionAdded}}}}}|template=BySetTemplateSimpleValueOutput}}">{{#if:{{#pos:{{{VersionAdded}}}|,}}|x.x|{{{VersionAdded}}}}}</span> | |||
{{!}}- | |||
}} | |||
{{#if: {{{VersionsUpdated|}}} | |||
| {{#if: {{{VersionRemoved|}}} <!-- | |||
-->|{{!}} style="display:none;" {{!}} <span class="ver-updated" data-ver-updated="{{#set: Versions updated = {{{VersionsUpdated|}}}|+sep=,|template=BySetTemplateSimpleValueOutputMultipleUnspaced}}"></span> | |||
{{!}}-<!-- | |||
-->|{{!}} '''Last Updated''' | |||
{{!}}<span class="ver-updated" data-ver-updated="{{#arraymap:{{{VersionsUpdated}}}|,|α|α|,|,}}">{{#explode:{{#set: Versions updated = {{{VersionsUpdated|}}}|+sep=,|template=BySetTemplateSimpleValueOutputLast}}|-|0}}</span> | |||
{{!}}-<!-- | |||
-->}} | |||
}} | |||
{{#if: {{{VersionRemoved|}}}| | |||
{{!}} '''Version Removed''' | |||
{{!}}<span class="ver-removed" data-ver-removed="{{#set: Version removed = {{{VersionRemoved|}}}|template=BySetTemplateSimpleValueOutput}}">{{#if:{{#pos:{{{VersionRemoved}}}|,}}|x.x|{{{VersionRemoved}}}}}</span> | |||
{{!}}- | |||
}} | |||
{{#if: {{{VersionGaps|}}}| | |||
{{!}} style="display:none;" {{!}}<span class="ver-gaps" data-ver-gaps="{{#set: Version gaps = {{{VersionGaps|}}}|+sep=,|template=BySetTemplateSimpleValueOutputMultipleUnspaced}}"></span> | |||
{{!}}- | |||
}} | |||
{{#if: {{{Primary|}}}| | {{#if: {{{Primary|}}}| | ||
{{!}} '''{{#if: {{{Contributing|}}}|Primary Author|Author}}''' | |||
{{!}} {{#set: Has primary author = {{{Primary}}}|+sep=,|template=TextToCategoryMultiple}} | |||
{{!}}- | {{!}}- | ||
}} | |||
{{#if: {{{Contributing|}}}| | {{#if: {{{Contributing|}}}| | ||
{{!}} '''Contributing Author(s)''' | |||
{{!}} {{#set: Has contributing author = {{{Contributing}}}|+sep=,|template=TextToCategoryMultiple}} | |||
{{!}}- | |||
}} | |||
{{#if: | |||
{{#ask: | |||
[[Badge/Location::{{FULLPAGENAME}}]] [[Badge/Is hidden::false]] | |||
|?Badge/Icon#37px;frameless=Icon | |||
|?Badge/Name=Name | |||
|?Badge/ID=Link | |||
|?=# | |||
|limit=99 | |||
|format=template | |||
|template=SimpleBadgeTable | |||
|named args= 1 | |||
|sort=Badge/Date,Badge/Name | |||
|order=asc,asc | |||
|default= | |||
|intro=YNOproject Badges | |||
{{!}}- | |||
|valuesep=  | |||
|searchlabel= | |||
}} | |||
{{#ask: [[Vending Machine/Location::{{FULLPAGENAME}}]] [[Vending Machine/Is accessible::true]] [[Vending Machine/Is implemented::true]] [[Vending Machine/Is secret::false]] | |||
|?Vending Machine/Image#64px;border=image | |||
|?Vending Machine/Comment=comment | |||
|?Vending Machine/Is unique=is_unique | |||
|limit=99 | |||
|format=plainlist | |||
|template=SimpleVMTable | |||
|named args=1 | |||
|default= | |||
|intro=Vending Machine | |||
{{!}}- | |||
}} | |||
| | |||
{{!}} colspan="2" {{!}} | |||
{{{!}} class="mw-collapsible mw-collapsed" id="mw-customcollapsible-Extras" style="width:100%; border-collapse:collapse; padding: 2px; text-align:center;" | |||
! colspan="2" style="padding:0.25em; color:{{#tag:nowiki|{{#if: {{{headerfontcolor|}}} | {{{headerfontcolor}}} | #ffffff}}}}; background-color:{{#tag:nowiki|{{#if: {{{headercolor|}}} | {{{headercolor}}} | #3366cc}}}}; font-size:110%;" {{!}} <span class="mw-customtoggle-Extras"> ''Extras +''</span> | |||
{{!}}- | |||
{{!}}style="min-width:80px"{{!}} | |||
{{!}}style="width:90%;"{{!}} | |||
{{!}}- | |||
! colspan="2" {{!}} | |||
{{#ask: | |||
[[Badge/Location::{{FULLPAGENAME}}]] [[Badge/Is hidden::false]] | |||
|?Badge/Icon#37px;frameless=Icon | |||
|?Badge/Name=Name | |||
|?Badge/ID=Link | |||
|?=# | |||
|limit=99 | |||
|format=template | |||
|template=SimpleBadgeTable | |||
|named args= 1 | |||
|sort=Badge/Date,Badge/Name | |||
|order=asc,asc | |||
|default= | |||
|intro=YNOproject Badges | |||
{{!}}- | |||
|valuesep=  | |||
|searchlabel= | |||
}} | |||
{{!}}- | |||
! colspan="2" {{!}} | |||
{{#ask: [[Vending Machine/Location::{{FULLPAGENAME}}]] [[Vending Machine/Is accessible::true]] [[Vending Machine/Is implemented::true]] [[Vending Machine/Is secret::false]] | |||
|?Vending Machine/Image#64px;border=image | |||
|?Vending Machine/Comment=comment | |||
|?Vending Machine/Is unique=is_unique | |||
|limit=99 | |||
|format=plainlist | |||
|template=SimpleVMTable | |||
|named args=1 | |||
|default= | |||
|intro=Vending Machine | |||
{{!}}- | {{!}}- | ||
}} | |||
{{ | {{TableFooter}} | ||
}} | |||
|} | |} | ||
<includeonly>{{# | <includeonly><!-- | ||
{{# | |||
{{# | -->{{#ifexpr:{{NAMESPACENUMBER}} = 3002 or {{NAMESPACENUMBER}} = 3014 or {{NAMESPACENUMBER}} = 3018<!-- | ||
< | -->|<!-- | ||
{{documentation}}</noinclude> | -->{{#if:{{{Primary|}}}<!-- | ||
-->| {{#arraymap:{{{Primary}}}|,|α|[[Category:α]]|\n}}<!-- | |||
-->| [[Category:Missing Author]]<!-- | |||
-->}}<!-- | |||
-->}}<!-- | |||
-->{{#ifexpr:{{NAMESPACENUMBER}}>2999<!-- | |||
-->| [[Category:{{NAMESPACE}} Locations]]<!-- | |||
-->{{#if: {{{BGM|}}} | | [[Category:Missing BGM]] }}<!-- | |||
-->{{#if: {{{Map ID|}}} | | [[Category:Missing Map ID]] }}<!-- | |||
-->{{#if: {{{VersionAdded|}}} | | [[Category:Missing Version Added]] }}<!-- | |||
-->{{#if: {{{headerfontcolor|}}} | | [[Category:Infoboxes with missing header styling]] }}<!-- | |||
-->{{#if: {{{headercolor|}}} | | [[Category:Infoboxes with missing header styling]] }}<!-- | |||
-->{{#if: {{{image|}}} | | [[Category:Missing infobox image]] }}<!-- | |||
-->}}<!-- | |||
-->__SHOWFACTBOX__<!-- | |||
--></includeonly><noinclude>{{documentation}}</noinclude> |
Latest revision as of 16:29, 24 September 2024
Locationbox | |
---|---|
Basic Info | |
Effects | None |
Events | None |
Notable NPCs | None |
Other | |
Connecting Areas | {{{Connections}}} |
BGM | Missing |
Map ID | Missing |
This template automatically sets categories on pages. Please only use this template as intended. |
This template automatically sets Semantic MediaWiki properties on pages. This may include creating subobjects. Please only use this template as intended. |
Displays an infobox containing a world's details.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Display Name | name | 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.
| String | optional |
Header color | headercolor | The header's background color.
| String | suggested |
Header font color | headerfontcolor | The header's text color.
| String | suggested |
Header font size | headerfontsize | The header's font size as a percentage.
| String | optional |
Location image | image | The file name for the image to be displayed. It should properly represent the location.
| File | required |
Image width | imagewidth | The image width in px.
| Number | optional |
Image caption | caption | A corresponding caption for the image, visible if a value is provided. | String | optional |
Japanese Name | JapaneseName | The area's original name in Japanese, if applicable. Only one value is accepted. For Yume 2kki, this should match the name used by the JP wiki, i.e. https://wikiwiki.jp/yume2kki-t/<NAME> should exist as an actual page.
| String | optional |
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.
| String | suggested |
Effects | Effects | Effects (or the game's equivalent) obtainable in this location.
| String | required |
Collectibles | Collectibles Wallpapers Menu | Collectibles that you can find in this location.
| String | required |
Masks | Masks | Yume 2kki Masks available to equip in the location. | String | optional |
Events | Events | Events that you can encounter in this location. | String | required |
Notable NPCs | NPCS | Noteworthy NPCs that show up in this location. | String | required |
Connecting Areas | Connections | List of areas connected to this location (using the Connection template) as of the game's current version.
| String | required |
Removed Connections | RemovedConnections | 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.
| String | optional |
BGM | BGM | List of tracks (using the BGM template) that play in this location and/or specific rooms/maps within it.
| String | required |
Map ID | Map 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.
| String | required |
Map Type | Map Type | Descriptors for a given location, such as the overall map size and whether it loops or otherwise.
| String | optional |
Version Added | VersionAdded | The version in which the area was first added.
| String | required |
Versions Updated | VersionsUpdated | 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.
| String | suggested |
Version Removed | VersionRemoved | The version in which the area was removed, if applicable, i.e. the first version in which the area is no longer accessible.
| String | optional |
Version Gaps | VersionGaps | 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.
| String | optional |
Primary Author | Primary | The location's main author(s). Applicable to collaborative games. | String | suggested |
Contributing Authors | Contributing | Authors who have contributed to the location. Applicable to collaborative games. | String | optional |
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 | |
---|---|
Basic Info | |
Japanese Name(s) |
鍛冶場 |
Effects | None |
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 |