template:River item box

{{#switch:{{{table|}}}

|line|end|middle=

|start|#default={{s-start|noclear=on}}

}}

{{River item box/core

|type={{#if:{{{type|}}}

|{{lc:{{{type|}}}}}

|{{#switch:{{wikidata|property|raw|P31}}

|Q23442|Q162602 = island

|Q44377|Q1311958|Q2354973 = tunnel

|Q12280|Q537127|Q1210334|Q1068842 = bridge

|Q105731 = lock

|Q12323|Q3497167 = dam

|#default = crossing

}}

}}

|headings={{#ifeq:{{{table}}}|line|no|yes}}

|river={{#if:{{{river|{{{River|}}}}}}|{{{river|{{{River}}}}}}|{{#if:{{wikidata|property|linked|P177}}|{{wikidata|property|linked|P177}}|{{wikidata|property|linked|P706}}}}}}

|upstream={{#if:{{{upstream|}}}|{{{upstream}}}|{{#if:{{wikidata|property|linked|P2673}}|{{wikidata|property|linked|P2673}}|{{wikidata|property|linked|P155}}}}}}

|upsub={{#if:{{{upsub|}}}|
{{{upsub}}}}}

|upstream2={{#if:{{{upstream2|}}}|
{{{upstream2}}}}}

|upsub2={{#if:{{{upsub2|}}}|
{{{upsub2}}}}}

|downstream={{#if:{{{downstream|}}}|{{{downstream}}}|{{#if:{{wikidata|property|linked|P2674}}|{{wikidata|property|linked|P2674}}|{{wikidata|property|linked|P156}}}}}}

|downsub={{#if:{{{downsub|}}}|
{{{downsub}}}}}

|thisis={{#if:{{{thisis|}}}|{{{thisis}}}|{{PAGENAMEBASE}}}}

|osgridref={{#if:{{{location|}}}|{{{location}}}|{{wikidata|property|linked|P613}}}}

}}

{{#switch:{{{table|}}}

|start|middle=

|end|#default=

}}

{{documentation}}