Difference between revisions of "Template:Infobox roller coaster/extend"

From blackwiki
Jump to navigation Jump to search
imported>Ahecht
(automatically categorize by opening and closing, check for unknown parameters, support {{{auto-cat}}})
imported>Ahecht
(Don't do year categorization if the ride has been moved)
Line 10: Line 10:
 
|data4    = {{{coordinates|}}}
 
|data4    = {{{coordinates|}}}
 
|label5  = Status
 
|label5  = Status
|data5    = {{Infobox attraction/status|{{{status|{{{Status|}}}}}}|multiple=yes|auto-cat={{{auto-cat|}}}|closedcat=Category:Defunct roller coasters‎|operatingcat=Category:Operating roller coasters|constructioncat=Category:Under construction roller coasters|removedcat=Category:Removed roller coasters}}
+
|data5    = {{Infobox attraction/status|{{{status|{{{Status|}}}}}}|multiple=yes|auto-cat={{{auto-cat|}}}|closedcat=Category:Defunct roller coasters?|operatingcat=Category:Operating roller coasters|constructioncat=Category:Under construction roller coasters|removedcat=Category:Removed roller coasters}}
 
|label6  = Soft opening date
 
|label6  = Soft opening date
 
|data6    = {{{soft_opened|}}}
 
|data6    = {{{soft_opened|}}}
Line 39: Line 39:
 
}}{{#ifeq: {{{auto-cat}}}|no||{{ns0|{{#if:{{{coordinates|}}}||
 
}}{{#ifeq: {{{auto-cat}}}|no||{{ns0|{{#if:{{{coordinates|}}}||
 
[[Category:Wikipedia infobox roller coaster articles without coordinates]]
 
[[Category:Wikipedia infobox roller coaster articles without coordinates]]
}}{{#if:{{{opened|}}} |{{#iferror:{{#time:Y|{{trim date|{{{opened}}}}}}} |{{#if:{{{year|}}}|[[Category:Roller coasters introduced in {{{year}}}]]}} |[[Category:Roller coasters introduced in {{#time:Y|{{trim date|{{{opened}}}}}}}]] }}
+
}}{{#switch: {{lc:{{str sub|{{{status|{{{Status|}}}}}}|0|9}}}} | relocated | moved to = | #default =
 +
{{#if:{{{opened|}}} |{{#iferror:{{#time:Y|{{trim date|{{{opened}}}}}}} |{{#if:{{{year|}}}|[[Category:Roller coasters introduced in {{{year}}}]]}} |[[Category:Roller coasters introduced in {{#time:Y|{{trim date|{{{opened}}}}}}}]] }}
 
}}{{#iferror:{{#time:Y|{{trim date|{{{closed}}}}}}}||[[Category:Amusement rides that closed in {{#time:Y|{{trim date|{{{closed}}}}}}}]]
 
}}{{#iferror:{{#time:Y|{{trim date|{{{closed}}}}}}}||[[Category:Amusement rides that closed in {{#time:Y|{{trim date|{{{closed}}}}}}}]]
 +
}}
 
}}{{#ifeq:{{{location|}}}|Portable|[[Category:Portable roller coasters]]
 
}}{{#ifeq:{{{location|}}}|Portable|[[Category:Portable roller coasters]]
 
}}}}<!-- end ns0 -->}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Amusement ride article using undocumented parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox roller coaster/extend]] with unknown parameter "_VALUE_"|ignoreblank=y| accessible | assistive_listening | auto-cat | cc | closed | coordinates | cost | custom_label | custom_value | dual | homepage | location | locationarticle | name | opened | pay_per_use | previousattraction | rcdb_number | replacement | section | single_rider | soft-opened | Status | status | subsection | transfer_accessible | virtual_queue_image | virtual_queue_status | website | year }}<noinclude>
 
}}}}<!-- end ns0 -->}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Amusement ride article using undocumented parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox roller coaster/extend]] with unknown parameter "_VALUE_"|ignoreblank=y| accessible | assistive_listening | auto-cat | cc | closed | coordinates | cost | custom_label | custom_value | dual | homepage | location | locationarticle | name | opened | pay_per_use | previousattraction | rcdb_number | replacement | section | single_rider | soft-opened | Status | status | subsection | transfer_accessible | virtual_queue_image | virtual_queue_status | website | year }}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 04:00, 25 April 2017

Template:Ns0

Template documentation[view] [edit] [history] [purge]
Template:PAGENAMEBASE
Template:Parameter names example
General statistics
Template:Ns0


Usage

This template is to be used with the "extend" parameter in the main roller coaster infobox to add an additional location to it.

{{Infobox roller coaster/extend
|name                 =
|location             = <!--Must not be linked.-->
|locationarticle      = <!--Must not be linked.--> 
|coordinates          = <!--Use {{Coord|display=inline}}-->     
|section              = <!--Must not be linked.-->
|subsection           = <!--Should be linked.-->
|status               = <!--Operating, Closed, Under construction, Removed-->
|soft_opened          = 
|opened               = <!--Use {{Start date}} -->
|year                 = <!--Used to override categorization based on {{start date}}-->
|closed               = <!--Use {{End date}} -->
|cost                 =
|previousattraction   =
|replacement          =
|website              = <!--Official location-specific website. Use {{URL|example.com}} -->
|custom_label         =
|custom_value         =
|virtual_queue_name   = <!--Use only if virtual queues are different at different locations-->
|virtual_queue_image  = <!--Use ONLY the filename, not a full [[File:]] link-->
|virtual_queue_status = <!--should be "available" if above fields are used-->
|single_rider         = <!--Use only if status is different at different locations. Must be "available" if available.-->
|pay_per_use          = <!--Use only if status is different at different locations. Must be "available" if available.-->
|accessible           = <!--Use only if status is different at different locations. Must be "available" if available.-->
|transfer_accessible  = <!--Use only if status is different at different locations. Must be "available" if available.-->
|assistive_listening  = <!--Use only if status is different at different locations. Must be "available" if available.-->
|cc                   = <!--Use only if status is different at different locations. Must be "available" if available.-->
|rcdb_number          = <!--The number in the URL of the coaster's location-specific RCDB page-->
}}

For the dual roller coaster infobox, use |dual=yes.

See also