Santa Fe Institute Collaboration Platform

COMPLEX TIME: Adaptation, Aging, & Arrow of Time

Get Involved!
Contact: Caitlin Lorraine McShea, Program Manager, cmcshea@santafe.edu

Difference between revisions of "Template:Agenda item"

From Complex Time
(Moved presentation file upload button out from ask query default param, used if check instead to make it similar to Related file button rendering)
 
(15 intermediate revisions by 2 users not shown)
Line 13: Line 13:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
</noinclude><includeonly>{{#set:
+
</noinclude><includeonly><!--
 +
--><div class="pull-right" style="margin-right: 10px">{{EditWithForm|Agenda item}}</div><!--
 +
-->{{#set:
 
|On date={{{Date|}}}
 
|On date={{{Date|}}}
 
|Start time={{{Start time|}}}
 
|Start time={{{Start time|}}}
Line 37: Line 39:
 
}}
 
}}
 
<div class="button-link button-primary">
 
<div class="button-link button-primary">
{{#formlink:form=Agenda item info|link text=Edit this information|target={{FULLPAGENAMEE}}|popup|reload}}
+
{{#formlink:form=Agenda item info|link text=Edit this information|target={{FULLPAGENAMEE}}|returnto={{FULLPAGENAMEE}}}}
 
</div>
 
</div>
; Presentation file
+
; Presentation file(s)
{{#ask:
+
{{#ifexpr:{{#ask: [[File:+]] [[Presentation file for::{{FULLPAGENAME}}]] |format=count }} < 2|<!--
 +
-->{{#ask:
 
[[File:+]]
 
[[File:+]]
 
[[Presentation file for::{{FULLPAGENAME}}]]
 
[[Presentation file for::{{FULLPAGENAME}}]]
Line 47: Line 50:
 
|link=none
 
|link=none
 
|intro=:
 
|intro=:
}}{{#if:{{#ask:
+
}}<!--
[[File:+]]
+
-->{{#if:<!--
[[Presentation file for::{{FULLPAGENAME}}]]
+
---->{{#ask: [[File:+]] [[Presentation file for::{{FULLPAGENAME}}]] }}<!--
}}|&nbsp;{{#ask:
+
-->|<!--
[[File:+]]
+
---->&nbsp;<!--
[[Presentation file for::{{FULLPAGENAME}}]]
+
---->{{#ask: [[File:+]] [[Presentation file for::{{FULLPAGENAME}}]]
|link=none
+
      |link=none
|template=Delete button
+
      |template=Delete button
}}|<span class="button-link button-primary">[{{fullurl:Special:UploadWizard|campaign={{urlencode:Presentation file}}&{{urlencode:fields[]}}={{FULLPAGENAMEE}}}} Upload a presentation file]</span>}}
+
    }}<!--
 +
-->}}<!--
 +
-->|<!--
 +
--><ul>{{#arraymap:{{{Presenter|}}}|;|x|<!--
 +
----><li>{{#ask:
 +
      [[File:+]]
 +
      [[Presentation file for::{{FULLPAGENAME}}]]
 +
      [[Presentation file for presenter::x]]
 +
      |?Presentation file for presenter=presenter
 +
      |named args=yes
 +
      |format=template
 +
      |template=Presentation_file_presenter_display
 +
      |link=none
 +
    }}&nbsp;{{#ask: [[File:+]] [[Presentation file for::{{FULLPAGENAME}}]] [[Presentation file for presenter::x]]
 +
      |link=none
 +
      |template=Delete button
 +
    }}</li><!--
 +
-->|}}</ul><!--
 +
-->}}<!--
 +
--><div class="button-link button-primary sysop-show">[{{fullurl:Special:UploadWizard|campaign={{urlencode:Presentation file}}&{{urlencode:fields[]}}={{urlencode:{{FULLPAGENAME}}}}}} Upload a presentation file]</div>
 
; Related files{{#if:{{{Related files|}}}|
 
; Related files{{#if:{{{Related files|}}}|
 
{{{Related files|}}}
 
{{{Related files|}}}
Line 71: Line 93:
 
}}
 
}}
 
}}
 
}}
<span class="button-link button-primary">[{{fullurl:Special:UploadWizard|campaign=Add_image_to_page&fields{{urlencode:[]}}={{FULLPAGENAMEE}}}} Upload a related file]</span>
 
  
 
{{#ifeq:{{{Is presentation|}}}|Yes|
 
{{#ifeq:{{{Is presentation|}}}|Yes|

Latest revision as of 16:21, December 6, 2019

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

{{Agenda item
|Date=
|Start time=
|End time=
|Presenter=
|Presenter notes=
|Related file=
}}

Edit the page to see the template text.