Template:Infobox mountain: Difference between revisions

From TSP Encyclopedia
Jump to navigation Jump to search
No edit summary
Tag: 2017 source edit
No edit summary
Tag: 2017 source edit
Line 3: Line 3:
| child        = {{{child|}}}
| child        = {{{child|}}}
| subbox        = {{{subbox|}}}
| subbox        = {{{subbox|}}}
| above        =  
| above        = {{#if:{{{name|}}}|{{{name}}}|<includeonly>{{PAGENAMEBASE}}</includeonly>}}
| aboveclass    = fn org
| aboveclass    = fn org
| autoheaders  = y
| autoheaders  = y
| abovestyle    = background-color: #E7DCC3;
| abovestyle    = background-color: #E7DCC3;
| headerstyle = background-color: #E7DCC3;
| headerstyle   = background-color: #E7DCC3;
| imagestyle    = padding: 0.3em 0.2em 0.2em 0.2em;
| imagestyle    = padding: 0.3em 0.2em 0.2em 0.2em;
| captionstyle = padding: 0.2em 0em;
| captionstyle = padding: 0.2em 0em;
| bodystyle    = width:24.5em; line-height:1.5em;
| bodystyle    = width:24.5em; line-height:1.5em;


Line 15: Line 15:
| subheader    = {{{other_name|}}}
| subheader    = {{{other_name|}}}


| image        = {{#invoke:InfoboxImage
| image        = {{#invoke:InfoboxImage|InfoboxImage|image={{#invoke:WikidataIB|getValue|1=P18|2={{{photo|}}}|name=photo|qid={{{qid|}}}|rank=best|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|onlysourced={{{onlysourced|false}}}|maxvals=1|noicon=true}}||size={{if empty|{{{photo_width|}}}|{{{photo_size|}}}}}|upright={{{photo_upright|}}}|sizedefault=272px|maxsize=288px|alt={{{photo_alt|}}}}}
|InfoboxImage
| caption      = {{#if:{{{photo|}}}|{{{photo_caption|}}}|{{#if:{{#invoke:WikidataIB|getValue|1=P18|2=|name=photo|qid={{{qid|}}}|rank=best|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|onlysourced={{{onlysourced|false}}}|maxvals=1|noicon=true}}|{{#invoke:WikidataIB|getValue|1=P18|2=|name=caption|qid={{{qid|}}}|qual=P2096|qualsonly=true|rank=best|maxvals=1|ps=2}}}}}}
|image={{#invoke:WikidataIB
  |getValue
  |1=P18
  |2={{{photo|}}}
  |name=photo
  |qid={{{qid|}}}
  |rank=best
  |suppressfields={{{suppressfields|}}}
  |fetchwikidata={{{fetchwikidata
  |NONE}}}
  |onlysourced={{{onlysourced
  |false}}}
  |maxvals=1
  |noicon=true}}
  |size={{if empty
  |{{{photo_width|}}}
  |{{{photo_size|}}}
}}
|upright={{{photo_upright|}}}
|sizedefault=272px
|maxsize=288px
|alt={{{photo_alt|}}}
}}
| caption      = {{#if:{{{photo|}}}
|{{{photo_caption|}}}
|{{#if:{{#invoke:WikidataIB
  |getValue
  |1=P18
  |2=
  |name=photo
  |qid={{{qid|}}}
  |rank=best
  |suppressfields={{{suppressfields|}}}
  |fetchwikidata={{{fetchwikidata|NONE}}}
  |onlysourced={{{onlysourced|false}}}
  |maxvals=1
  |noicon=true}}
  |{{#invoke:WikidataIB
  |getValue
  |1=P18
  |2=
  |name=caption
  |qid={{{qid|}}}
  |qual=P2096
  |qualsonly=true
  |rank=best
  |maxvals=1
  |ps=2
}}
}}
}}


| {{#if:{{#invoke:WikidataIB|getValue|1=P18|2={{{photo|}}}|name=photo|qid={{{qid|}}}|rank=best|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|onlysourced={{{onlysourced|false}}}|maxvals=1|noicon=true}}|data26|data1}} = {{#if:{{{map|}}}
| {{#if:{{#invoke:WikidataIB|getValue|1=P18|2={{{photo|}}}|name=photo|qid={{{qid|}}}|rank=best|suppressfields={{{suppressfields|}}}|fetchwikidata={{{fetchwikidata|NONE}}}|onlysourced={{{onlysourced|false}}}|maxvals=1|noicon=true}}|data26|data1}} = {{#if:{{{map|}}}
Line 203: Line 152:


| label37      = [[Ordnance Survey National Grid|OS grid]]
| label37      = [[Ordnance Survey National Grid|OS grid]]
| data37        = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}|name={{{name|{{PAGENAMEBASE}}}}} }}{{{grid_ref_UK_ref|{{{grid_ref_UK_note|}}}}}}}}
| data37        = {{#if:{{{grid_ref_UK|}}}|{{gbm4ibx|{{{grid_ref_UK|}}}|name={{{name|{{PAGENAMEBASE}}}} }}{{{grid_ref_UK_ref|{{{grid_ref_UK_note|}}}}}}}}


| label38      = [[Irish grid reference system|OSI/OSNI grid]]
| label38      = [[Irish grid reference system|OSI/OSNI grid]]
| data38        = {{#if:{{{grid_ref_Ireland|}}}|{{iem4ibx|{{{grid_ref_Ireland|}}}|name={{{name|{{PAGENAMEBASE}}}}} }}{{{grid_ref_Ireland_ref|{{{grid_ref_Ireland_note|}}}}}}}}
| data38        = {{#if:{{{grid_ref_Ireland|}}}|{{iem4ibx|{{{grid_ref_Ireland|}}}|name={{{name|{{PAGENAMEBASE}}}} }}{{{grid_ref_Ireland_ref|{{{grid_ref_Ireland_note|}}}}}}}}


| label39      = [[Topographic map|Topo map]]
| label39      = [[Topographic map|Topo map]]
Line 265: Line 214:
}}{{main other|{{#if:{{{region|}}}|{{#ifeq:{{#invoke:string|replace|{{{region}}}|^[A-Z0-9/\-]*$|MATCH|plain=false}}|MATCH|[[Category:Pages using infobox mountain with unknown parameters|ρ]]
}}{{main other|{{#if:{{{region|}}}|{{#ifeq:{{#invoke:string|replace|{{{region}}}|^[A-Z0-9/\-]*$|MATCH|plain=false}}|MATCH|[[Category:Pages using infobox mountain with unknown parameters|ρ]]
}}}}
}}}}
}}{{Wikidata image |1={{{photo|}}} |2={{{nocat_wdimage|{{#ifeq:ALL|{{uc:{{{fetchwikidata|}}}}}|1|}}}}}  
}}{{Wikidata image |1={{{photo|}}} |2={{{nocat_wdimage|{{#ifeq:ALL|{{uc:{{{fetchwikidata|}}}}}|1|}}}}  
}}{{main other|
}}{{main other|
{{#if:{{{language|}}}|[[Category:Pages using infobox mountain with language parameter|{{#invoke:string|replace|{{{language}}}|[^A-Za-z0-9]||plain=false}} ]]}}
{{#if:{{{language|}}}|[[Category:Pages using infobox mountain with language parameter|{{#invoke:string|replace|{{{language}}}|[^A-Za-z0-9]||plain=false}} ]]}}

Revision as of 22:21, 20 June 2024