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

From blackwiki
Jump to navigation Jump to search
imported>Astros4477
imported>Ahecht
(-→_)
 
(18 intermediate revisions by 3 users not shown)
Line 3: Line 3:
 
|datastyle = {{#if:{{{dual|}}}|" colspan=3 "}}
 
|datastyle = {{#if:{{{dual|}}}|" colspan=3 "}}
 
|header1  = {{#if:{{{locationarticle|}}}|[[{{{locationarticle}}}{{!}}{{{location|}}}]]|{{#if:{{{location|}}}|[[{{{location|}}}]]}}}}
 
|header1  = {{#if:{{{locationarticle|}}}|[[{{{locationarticle}}}{{!}}{{{location|}}}]]|{{#if:{{{location|}}}|[[{{{location|}}}]]}}}}
|label2  = Park section
+
|label2   = Name
|data2   = {{#if:{{{section|}}}|{{#if:{{{locationarticle|}}}|[[{{{locationarticle}}}#{{{section}}}|{{{section}}}]]|<span class="label">[[{{{location}}}#{{{section}}}|{{{section}}}]]</span>}}{{#if:{{{subsection|}}}|&nbsp;- {{{subsection|}}}}}}}
+
|data2    = {{{name|{{{altname|}}}}}}
|label3   = [[Geographical coordinates|Coordinates]]
+
|label3   = Park section
|data3   = {{{coordinates|}}}
+
|data3   = {{#if:{{{section|}}}|{{#if:{{{locationarticle|}}}|[[{{{locationarticle}}}#{{{section}}}|{{{section}}}]]|<span class="label">[[{{{location}}}#{{{section}}}|{{{section}}}]]</span>}}{{#if:{{{subsection|}}}|&nbsp;- {{{subsection|}}}}}}}
|label4   = Status
+
|label4   = [[Geographical coordinates|Coordinates]]
|data4   = {{#switch: {{lc:{{{status|{{{Status|}}}}}}}}
+
|data4   = {{{coordinates|}}}
  | open | operating = <span style="color:darkgreen">Operating</span>
+
|label5   = Status
| closed | removed | demolished | defunct = <span style="color:#CC0000">Closed</span>
+
|data5   = {{Infobox attraction/status|{{{status|{{{Status|}}}}}}|multiple=yes|auto-cat={{{auto-cat|}}}|closedcat=Category:Closed roller coasters|operatingcat=Category:Operating roller coasters|constructioncat=Category:Under construction roller coasters|removedcat=Category:Removed roller coasters}}
| under construction = <span style="color:purple">Under construction</span>
+
|label6  = Soft opening date
| sbno | standing but not operating = [[Standing but not operating|<span style="color:purple">SBNO</span>]]
+
|data6    = {{{soft_opened|}}}
| announced = <span style="color:purple">Announced</span>
+
|label7  = Opening date
| undergoing testing | testing = <span style="color:orange">Testing</span>
+
|data7    = {{{opened|}}}
| #default = {{{status|}}}
+
|label8  = Closing date
 +
|data8    = {{{closed|}}}
 +
|label9  = Cost
 +
|data9    = {{{cost|}}}
 +
|label10  = Replaced
 +
|data10    = {{{previousattraction|}}}
 +
|label11  = Replaced by
 +
|data11    = {{{replacement|}}}
 +
 
 +
|label12  = Website
 +
|data12  = {{{homepage|{{{website|}}}}}}
 +
|label13  = {{{custom_label|}}}
 +
|data13  = {{{custom_value|}}}
 +
|label14 = {{#if:{{{virtual_queue_image|}}}||}}
 +
|data14  = {{#if:{{{virtual_queue_name|}}}|{{#if:{{{virtual_queue_status|}}}|<div style="text-align:left">{{#if:{{{virtual_queue_image|}}}|[[File:{{{virtual_queue_image}}}|x20px|link=|alt=]]}} {{{virtual_queue_name|}}} {{{virtual_queue_status|}}}</div>}}}}
 +
|data15  = {{#if:{{{single_rider|}}}|<div style="text-align:left">[[File:Single rider line availability icon.svg|20px|link=|alt=]] [[Single rider]] line {{{single_rider}}}</div>}}
 +
|data16  = {{#if:{{{pay_per_use|}}}|<div style="text-align:left">[[File:Pay-Per-Use Sign.png|20px]] This is a [[Upcharge attraction|Pay-Per-Use attraction]]</div>}}
 +
|data17  = {{#if:{{{accessible|}}}|<div style="text-align:left">{{access icon|20px}} Wheelchair accessible</div>}}
 +
|data18  = {{#if:{{{transfer_accessible|}}}|<div style="text-align:left">[[File:Attraction transfer icon.svg|20px|link=|alt=]] Must transfer from wheelchair</div>}}
 +
|data19  = {{#if:{{{assistive_listening|}}}|<div style="text-align:left">[[File:Assistive listening icon.svg|20px]] Assistive listening available</div>}}
 +
|data20  = {{#if:{{{cc|}}}|<div style="text-align:left">[[File:Closed captioning symbol.svg|20px|link=|alt=]] Closed captioning available</div>}}
 +
|data21  = {{#if:{{{rcdb_number|}}}|<small>[https://rcdb.com/{{{rcdb_number}}}.htm {{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} at {{{location|}}} at RCDB]</small><br/><small>[https://rcdb.com/{{{rcdb_number}}}.htm?p=0 Pictures of {{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}} at {{{location|}}} at RCDB]</small>}}
 +
}}{{#ifeq: {{{auto-cat}}}|no||{{ns0|{{#if:{{{coordinates|}}}||
 +
[[Category:Wikipedia infobox roller coaster articles without coordinates]]
 +
}}{{#switch: {{lc:{{str sub|{{{status|{{{Status|}}}}}}|0|9}}}} | relocated | moved to = | #default =
 +
{{#if:{{{opened|}}} |{{#if:{{{year|}}}|[[Category:Roller coasters introduced in {{{year}}}]] |{{#iferror:{{#time:Y|{{trim date|{{{opened}}}}}}} ||[[Category:Roller coasters introduced in {{#time:Y|{{trim date|{{{opened}}}}}}}]] }}}}
 +
}}{{#if:{{{closed|}}} |{{#iferror:{{#time:Y|{{trim date|{{{closed}}}}}}}||[[Category:Amusement rides that closed in {{#time:Y|{{trim date|{{{closed}}}}}}}]]}}
 
}}
 
}}
|label5  = Soft opening date
+
}}{{#ifeq:{{{location|}}}|Portable|[[Category:Portable roller coasters]]
|data5    = {{{soft_opened|}}}
+
}}}}<!-- 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 | altname | 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_name | virtual_queue_image | virtual_queue_status | website | year }}<noinclude>
|label6  = Opening date
 
|data6    = {{{opened|}}}
 
|label7  = Closing date
 
|data7    = {{{closed|}}}
 
|label8  = Cost
 
|data8    = {{{cost|}}}
 
|label9  = Replaced
 
|data9    = {{{previousattraction|}}}
 
|label10  = Replaced by
 
|data10    = {{{replacement|}}}
 
}}{{ns0|{{#if:{{{coordinates|}}}||
 
[[Category:Wikipedia infobox roller coaster articles without coordinates]]
 
}}{{#ifeq:{{lc:{{{status|}}}}}|announced|[[Category:Proposed roller coasters]]|{{#ifeq:{{lc:{{{status|}}}}}|under construction|[[Category:Proposed roller coasters]]|{{#if:{{{year|}}}|[[Category:Roller coasters introduced in {{{year}}}]]}}}}
 
}}{{#ifeq:{{{location|}}}|Portable
 
|[[Category:Portable roller coasters]]}}
 
}}<noinclude>
 
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:57, 29 May 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