summaryrefslogtreecommitdiff
path: root/pages/Template/Template:Case.mw
blob: d7ec0cae1c47b0f059e96c053814a582bfde2754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<noinclude>
<pre>
{{Case
|case:description=
|case:organization-name=
|case:organization-url=
|case:organization-email=
|case:info-authors=
|case:info-topics=
|case:info-participants=
|case:info-report=
|case:place=
|case:place-country=
|case:place-state=
|case:place-city=

# Non semantic

|banner-altura=
}}
</pre>
</noinclude><includeonly>
<div class="intro-copete">
[[Case:description::{{{case:description|}}}]]{{#description2:{{{case:description|}}}}}
</div>
<div class="intro-links">
{{#if: {{{case:organization-url|}}} | <span id="intro-links-url"><span class="glyphicon glyphicon-home"></span> [{{{case:organization-url|}}} {{{case:organization-name|}}}] </span>}}{{#if: {{{case:organization-email|}}} | <nowiki> | </nowiki> <span id="intro-links-email"><span class="glyphicon glyphicon-envelope"></span> [[Case:organization-email::{{{case:organization-email|}}}]] </span>}}{{#if: {{{case:organization-phone|}}} | <nowiki> | </nowiki> <span id="intro-links-phone"><span class="glyphicon glyphicon-earphone"></span> [[Case:organization-phone::{{{case:organization-phone|}}}]] </span>}}
</div><div style='padding-left: 0 !important;' class='col-lg-4 col-md-6 col-sm-12 col-xs-12'>
{| class="wikitable"
|+ {{#if: {{{case:place|}}} | {{#display_map:{{{case:place|}}}|width=100%|enablefullscreen=yes|height=300|zoom=3|service=leaflet|layers=CartoDB.PositronNoLabels}} }}<span class="map-address">{{#if: {{{case:place-street|}}} | [[Case:place-street::{{{case:place-street|}}}]] }}, {{#if: {{{case:place-city|}}} | [[Case:place-city::{{{case:place-city|}}}]] }}, {{#if: {{{case:place-state|}}} | [[Case:place-state::{{{case:place-state|}}}]] }}, {{#if: {{{case:place-country|}}} | {{int:rv-country-{{{case:place-country|}}}}} <span style="display:none">[[Case:place-country::{{{case:place-country|}}}]]</span> }}</span>
|- {{#if: {{{case:info-authors|}}} | | style="display:none;" }}
! {{int:rv-case:info-authors}}
| {{{case:info-authors|}}}
|- {{#if: {{{case:info-topics|}}} | | style="display:none;" }}
! {{int:rv-case:info-topics}}
| {{#arraymap:{{{case:info-topics|}}}|,|@|[[:Category:@|@]] |<nowiki>, </nowiki>}}<span style='display:none;'>[[Case:info-topics::{{{case:info-topics|}}}]]</span>
|- {{#if: {{{case:info-report|}}} | | style="display:none;" }}
! {{int:rv-case:info-report}}
| [[Report:{{{case:info-report|}}}|{{{case:info-report|}}}]]
|- {{#if: {{{case:info-participants|}}} | | style="display:none;" }}
! {{int:rv-case:info-participants}}
| {{{case:info-participants|}}}
|}
</div>
<div style="display:none;">{{#if: {{{case:imagen-destacada|}}} | {{#setmainimage:{{{case:imagen-destacada|}}}}} | {{#setmainimage:{{#replace:https://api.mapbox.com/styles/v1/mapbox/satellite-v9/static/{{#explode:{{{case:place|}}}|, |1}},{{#explode:{{{case:place|}}}|, |0}},{{#if: {{{case:banner-zoom|}}} | {{{case:banner-zoom|}}} | 9 }}/1000x400@2x?access_token=pk.eyJ1IjoiaWFjb21lbGxhIiwiYSI6ImNpdWJ3OHJoYTAwOHgyb3BneWd1NG16bjgifQ.8uFt1oMO57yDT9Xzb_ScAw}}| ||}}}}
[[Case:place::{{{case:place|}}}]]
[[Case:info-authors::{{{case:info-authors|}}}]]
[[Case:info-participants::{{{case:info-participants|}}}]]
[[Case:info-report::{{{case:info-report|}}}]]
[[Case:organization-url::{{{case:organization-url|}}}]]
[[Case:organization-name::{{{case:organization-name|}}}]]
</div>__NOTOC__
{{#arraymap:{{{case:info-topics|}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}}
[[Category:Case]]
{{#if: {{{banner-altura|}}} | {{#css: .bannerimage {background-position: 0px {{{banner-altura|}}}% !important;} }} }}
<div class="clean-p"></div>
</includeonly>