summaryrefslogtreecommitdiff
path: root/pages/Template/Template:Case.mw
diff options
context:
space:
mode:
Diffstat (limited to 'pages/Template/Template:Case.mw')
-rw-r--r--pages/Template/Template:Case.mw58
1 files changed, 58 insertions, 0 deletions
diff --git a/pages/Template/Template:Case.mw b/pages/Template/Template:Case.mw
new file mode 100644
index 0000000..14151d9
--- /dev/null
+++ b/pages/Template/Template:Case.mw
@@ -0,0 +1,58 @@
+<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]]
+[[Category:Map]]
+{{#if: {{{banner-altura|}}} | {{#css: .bannerimage {background-position: 0px {{{banner-altura|}}}% !important;} }} }}
+<div class="clean-p"></div>
+</includeonly>