Difference between revisions of "Template:Post"

From Bioinformatics Core Wiki
 
(8 intermediate revisions by the same user not shown)
Line 15: Line 15:
 
|Geo=
 
|Geo=
 
|Geo_details=
 
|Geo_details=
|Creation_date=
 
 
|Approved=
 
|Approved=
 
|Outside_CRG=
 
|Outside_CRG=
Line 22: Line 21:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{{DISPLAYTITLE:{{{Title}}}}}{{#vardefine:visiblepost|{{#if:{{{Approved|}}}|true|false}}}}{{#vardefine:visiblepost|{{#ifeq:{{{Approved|}}}|true|true|false}}}}{{#vardefine:visiblepost|{{#ifingroup:biocore|true|{{#var:visiblepost}}}}}}{{#ifeq:{{#var:visiblepost}}|true|<div class="post">[[Has Title::{{{Title|}}}|]]{{#if:{{{End date|}}}|<div class="post_events">''Starts on'' [[Post Date Start::{{{Start date}}}]] ''and ends on'' [[Post Date End::{{{End date}}}]]</div>|}}<div class="post_subtitle">Published on [[Publication date::{{{Publication_date|}}}]][[Creation date::{{{Creation_date|}}}| ]] by [[User:{{{Author}}}|{{{Author}}}]][[Post Author::{{{Author}}}|]]{{#if:{{{Tags|}}}| — <span class="post_tags">{{#arraymap:{{{Tag|}}}|,|x|[[Special:SearchByProperty/Post-20Tag/x|x]]}}{{#arraymap:{{{Tag|}}}|,|x|[[Post_Tag::x| ]]|}}</span>|}}</div>
+
</noinclude><includeonly>{{DISPLAYTITLE:{{{Title}}}}}{{#vardefine:visiblepost|{{#if:{{{Approved|}}}|true|false}}}}{{#vardefine:visiblepost|{{#ifeq:{{{Approved|}}}|Yes|true|false}}}}{{#vardefine:visiblepost|{{#ifingroup:biocore|true|{{#var:visiblepost}}}}}}{{#ifeq:{{#var:visiblepost}}|true|<div class="post">[[Has Title::{{{Title|}}}|]]{{#if:{{{End date|}}}|<div class="post_events">''Starts on'' [[Post Date Start::{{{Start date}}}]] ''and ends on'' [[Post Date End::{{{End date}}}]]</div>|}}<div class="post_subtitle">Published on [[Publication date::{{{Publication_date|}}}]] by [[User:{{{Author}}}|{{{Author}}}]][[Has Author::User:{{{Author}}}| ]]{{#if:{{{Tags|}}}| — <span class="post_tags">{{#arraymap:{{{Tag|}}}|,|x|[[Special:SearchByProperty/Post-20Tag/x|x]]}}{{#arraymap:{{{Tag|}}}|,|x|[[Post_Tag::x| ]]|}}</span>|}}</div>
[[Category:{{{Category|}}}|{{PAGENAME}}]][[Has Summary Length::{{{Summary|}}}| ]]
+
[[Category:{{{Category|News}}}|{{PAGENAME}}]][[Has Summary Length::{{{Summary|}}}| ]]
 
<div class="post_map">{{#if:{{{Geo|}}}|{{#display_point:{{{Geo}}}|service=googlemaps|width=300|height=300|controls=small|type=hybrid|autozoom=off}}[[Geo::{{{Geo}}}|]]{{#if:{{{Geo_details|}}}|<div class="post_map_details">[[Geo details::{{{Geo_details}}}]]</div>|}}|}}</div>
 
<div class="post_map">{{#if:{{{Geo|}}}|{{#display_point:{{{Geo}}}|service=googlemaps|width=300|height=300|controls=small|type=hybrid|autozoom=off}}[[Geo::{{{Geo}}}|]]{{#if:{{{Geo_details|}}}|<div class="post_map_details">[[Geo details::{{{Geo_details}}}]]</div>|}}|}}</div>
<div class="post_body">[[Has Body::{{{Body|}}}]]</div>
+
<div class="post_body">{{#set:Post Body={{{Body|}}}}}{{{Body|}}}</div>
</div>|Post is not approved for broad public}} {{#if:{{{Approved|}}}|[[Has approval::{{{Approved|}}}| ]]|[[Has no value::Has approval| ]]}}{{#ifeq:{{{Outside_CRG|}}}|Yes|[[Is Visible Outside CRG::true| ]]|<ipblock />}}
+
</div>|Post is not approved for a broad public.}} {{#if:{{{Approved|}}}|[[Has approval::{{{Approved|}}}| ]]|[[Has no value::Has approval| ]]}}
 
</includeonly>
 
</includeonly>

Latest revision as of 17:28, 7 November 2017

This is the "Post" template. It should be called in the following format:

{{Post
|Title=
|Publication_date=
|Body=
|Summary=
|Category=
|Tag=
|Language=
|Start date=
|End date=
|Geo=
|Geo_details=
|Approved=
|Outside_CRG=
|Author=
}}

Edit the page to see the template text.

Bioinformatics Core Facility @ CRG — 2011-2024