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



YumeWiki
2,804Articles

Template:Connection: Difference between revisions

No edit summary
(brush up nexus check)
 
(17 intermediate revisions by 2 users not shown)
Line 15: Line 15:
{{#if: {{{effects_needed||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Needs Effect|Connection/Effects needed = {{{effects_needed}}}|+sep=,}} }}
{{#if: {{{effects_needed||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Needs Effect|Connection/Effects needed = {{{effects_needed}}}|+sep=,}} }}
{{#if: {{{season||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Seasonal|Connection/Season available = {{{season}}}}} }}
{{#if: {{{season||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Seasonal|Connection/Season available = {{{season}}}}} }}
{{#if: {{{chance_description||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Chance }} }}
{{#if: {{{chance_description||}}}|{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Chance|Connection/Chance percentage = {{{chance_percentage|0%}}}|Connection/Chance description={{#if: {{{chance_percentage|}}}|{{{chance_description}}}|Connection only available sometimes}} }} }}
{{#if: {{{phonebooth_type}}}|
{{#if: {{{phonebooth_type}}}|
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch: {{{phonebooth_type|}}}
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch: {{{phonebooth_type|}}}
Line 24: Line 24:
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch: {{{isolation_type|}}}
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch: {{{isolation_type|}}}
|DeadEnd = Dead End
|DeadEnd = Dead End
|NoReturn = Return }}}}
|Return = Return }}}}
}}
}}
{{#if: {{{one_way_type|}}}|
{{#if: {{{one_way_type|}}}|
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch:{{{one_way_type|}}}
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = {{#switch:{{{one_way_type|}}}
|OneWay = One Way
|NoReturn = No Return
|NoEntry = No Entry}}}}
|NoEntry = No Entry}}}}
}}
{{#ifeq: {{{chaser_type|}}}|Trap|
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = No Entry}}{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Dead End}}
}}
{{#ifeq: {{{chaser_type|}}}|Catch|
{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = No Return}}{{#subobject:{{NAMESPACE}}:Connection-{{PAGENAME}}-{{{1}}}|Connection/Attribute = Return}}
}}
}}
[[{{NAMESPACE}}:{{{1}}}|{{{alias|{{{1}}}}}}]] {{#switch: {{{unlock_type|}}}
[[{{NAMESPACE}}:{{{1}}}|{{{alias|{{{1}}}}}}]] {{#switch: {{{unlock_type|}}}
|Locked
|Locked
|Unlock = {{Unlockable|{{{unlock_type}}}}}
|Unlock = {{Unlockable|{{{unlock_type}}}}}
|LockedCondition = {{Unlockable|{{{unlock_type}}}|{{{unlock_instruction_link|}}}|{{{unlock_conditions|}}}}}
|LockedCondition = {{Unlockable|{{{unlock_type}}}|{{{unlock_conditions|}}}|{{{unlock_instruction_link|}}}}}
}} {{#if: {{{chance_description|}}}|{{Chance|{{{chance_description|}}}|{{{chance_percentage|}}}}}}} {{#ifeq: {{{one_way_type}}}|NoEntry||{{#if: {{{effects_needed|}}}|{{NeedsEffect|{{{effects_needed}}}|{{#switch: {{{effect_conjunction|}}}|Or = Or|#default = And}}}}}} {{#if: {{{season|}}}|{{Seasonal|{{{season}}}}}}}
}} {{#if: {{{chance_description|}}}|{{Chance|{{{chance_description|}}}|{{{chance_percentage|}}}}}}} {{#ifeq: {{{one_way_type}}}|NoEntry||{{#if: {{{effects_needed|}}}|{{NeedsEffect|{{{effects_needed}}}|{{#switch: {{{effect_conjunction|}}}|Or|or= or|#default = and}}}}}} {{#if: {{{season|}}}|{{Seasonal|{{{season}}}}}}}
}} {{#switch: {{{phonebooth_type|}}}
}} {{#switch: {{{phonebooth_type|}}}
|Shortcut
|Shortcut
Line 43: Line 49:
|NoEntry
|NoEntry
|NoReturn = {{OneWay|{{{one_way_type}}}}}
|NoReturn = {{OneWay|{{{one_way_type}}}}}
}} {{#if: {{{misc_label|}}}|({{{misc_label}}})}}|<span title="Please enter the location as the first parameter." style="font-size:125%; color:#FFFF00; background-color:#000000">⚠</span>}}</includeonly>
}} {{#switch:{{{chaser_type|}}}
|Trap = {{Chaser|Trap}}
|Catch = {{Chaser|Catch}}
}}<!-- Begin nexus world category checks
-->{{#ifeq: {{PAGENAME}}<!-- No category if location is DREAMROOM
-->|        {{DREAMROOM}}<!--
-->|<!--
-->|  {{#if:<!-- Place category only if input is empty
      -->{{#switch:<!-- Returns empty if connection matches {{NEXUSNAME}}
        -->{{#replace:{{{1}}}|The|}}<!--
      -->|{{NEXUSNAME}} = <!--
      -->|default<!--
      -->}}<!--
      -->{{{one_way_type|}}}<!-- One-ways do not place category
  -->|<!--
  -->|[[Category:{{NAMESPACE}} {{NEXUSNAME}} Worlds]]<!--
  -->}}<!--
  -->{{#if:<!-- Handling character-specific nexus worlds category. Wiki-dependent!
      -->{{#switch: {{NAMESPACE}}<!-- Returns empty if wiki is UD or Tagai
      -->|Uneven Dream|Yume Tagai = <!--
      -->|default<!--
      -->}}<!--
  -->|<!-- No category unless empty
  -->|  {{#ifeq:{{PAGENAME}}<!--
      -->|Kubotsuki's Dream Room<!-- DREAMROOM allows us to exclude Totsutsuki's Dream Room, but we must repeat this check for Kubotsuki. Yume Tagai has one shared Bedroom location so it does not need such a check.
      -->|<!-- No category if location is the other dream room
      -->|  {{#if: {{#pos:{{{1}}}|Nexus}}<!-- Check if the connection is to any "Nexus"
        -->|[[Category:{{{1}}} Worlds]]<!-- Category using the connection name
          -->[[Category:{{NAMESPACE}} Nexus Worlds]]<!-- Generic wiki nexus world category
        -->}}<!-- End: "Nexus" in connection name
      -->}}<!-- End: secondary dream room check
  -->}}<!-- End: character-specific nexus worlds category
-->}}<!-- End: DREAMROOM check. This ends the nexus world section.
-->{{#if: {{{misc_label|}}}|({{{misc_label}}})}}|<span title="Please enter the location as the first parameter." style="font-size:125%; color:#FFFF00; background-color:#000000">⚠</span>}}</includeonly>
<noinclude>
<noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Connection templates]]
[[Category:Location templates]]
</noinclude>
</noinclude>

Latest revision as of 19:55, 23 June 2024


Documentation (for the above template, sometimes hidden or invisible)

Description

Renders a link (if provided) to an area's connection, along with icons denoting its attributes, and sets a subobject that can be queried.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Location1

The connection's target location.

Example
Dream Park
Stringrequired
Aliasalias

The alias of the connection. This supersedes the location's name if specified.

Stringoptional
Locked Connection Typeunlock_type

Parameter for a locked connection. These connections are unlocked by the opposite side, are the ones unlocking the opposite side, or are accessible only after specific conditions are met.

Suggested values
Locked Unlock LockedCondition
Stringoptional
Unlock Conditionsunlock_conditions

Description for a conditionally-locked connection. Applicable if Lock Condition is set to LockedCondition.

Stringoptional
Unlock Instruction Linkunlock_instruction_link

Link to a page pointing to the instructions on how to unlock an area.

Example
Yume 2kki:Unlock Guide
Stringoptional
Chance Descriptionchance_description

Short description for chance-based connections.

Example
1/3 chance
Stringoptional
Chance Percentagechance_percentage

Numeric probability for a chance-based connection. Applicable if Chance Description is specified.

Example
33%
Stringoptional
Effects Neededeffects_needed

The effects needed to enter the area, separated by commas.

Example
Child
Stringoptional
Effect Conjunctioneffect_conjunction

Conjunction for the effects required; applicable if Effects Needed is specified. Defaults to "and", can be changed to "or".

Suggested values
and or
Default
and
Stringoptional
Seasonseason

The season at which an area is accessible.

Suggested values
Winter Spring Summer Fall
Stringoptional
Phonebooth Typephonebooth_type

Parameter denoting the side of a connection accessible from a phonebooth; this is applicable for areas in Yume 2kki. Accepted values are Shortcut for connections to the Dream Apartments and ExitPoint for connections on the area's page.

Suggested values
Shortcut ExitPoint
Stringoptional
Isolation Typeisolation_type

Determines what side an isolated connection is. Accepted values are DeadEnd and Return. DeadEnd is used on the page with the isolated section, whereas Return is used on the page that takes you to the isolated section.

Suggested values
DeadEnd Return
Stringoptional
One Way Typeone_way_type

Parameter for a one-way connection. Accepted values are NoReturn and NoEntry.

Suggested values
NoReturn NoEntry
Stringoptional
Chaser Typechaser_type

For chasers and chaser traps. Accepted values are Catch and Trap.

Suggested values
Catch Trap
Stringoptional
Directionsdirections

A short description on the directions to a connection within the area.

Example
Climb the ladder from the barricaded doorway.
Stringoptional
Primary Imageprimary_image

File name pointing to the primary image representing a connection. The file in question must have a dimension of 128x128 pixels.

Example
Art Gallery and Dream Park_1.png
Stringoptional
Secondary Imagesecondary_image

File name pointing to the secondary image representing a connection. The file in question must have a dimension of 128x128 pixels.

Example
Art Gallery and Dream Park_2.png
Stringoptional
Is Removedis_removed

Indicates whether the connection has been removed. Defaults to false.

Default
false
Booleanoptional
Miscellaneous Labelmisc_label

Text indicating some other attribute or description regarding the connection.

Stringoptional

Syntax

Connection without attributes; note that the named parameters are optional:

{{Connection|<location name>}}

Sample

{{Connection|Scrambled Egg Zone|effects_needed=Child|unlock_type=LockedCondition|unlock_conditions=Requires breaking the egg in the Guardians' Temple and having the orbs show on each pillar.|one_way_type=NoReturn}}

Scrambled Egg Zone LockedCondition🔐 Child NoReturn➡️


Visit Template:Connection/doc to edit this text! (How does this work?)