Template: CapGrad

From TSAS Library
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the "CapGrad" template.
+
This is the "Capstone" template.
 
It should be called in the following format:
 
It should be called in the following format:
 
<pre>
 
<pre>
{{CapGrad
+
{{Capstones
 
|Graduate=
 
|Graduate=
 
|Gradlast=
 
|Gradlast=
Line 25: Line 25:
 
|Cappresentation=
 
|Cappresentation=
 
|Capdocument=
 
|Capdocument=
 +
|Captext=
 
|Capfeaturedimage=
 
|Capfeaturedimage=
 
|Capadvisor=
 
|Capadvisor=
Line 30: Line 31:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=CapGrads|Graduate=String|Gradlast=String|Gradyear=Integer|Gradimage=File|Gradhouse=Page|Gradplans=List (,) of String|Gradadvice=String|Captype=Page|Capformat=Page|Capssubject=List (,) of Page|Capaward=Page|Capdiscipline=Page|Capdescription=String|Capshortdescrip=String|Capstonebegin=String|Capchange=String|Capreflection=String|Capimages=List (,) of File|Capvideos=List (,) of File|Cappresentation= String|Capdocument=File|Captext=Wikitext|Capfeaturedimage=File|Capadvisor=Page}}
+
{{#cargo_declare:_table=Capstones|Graduate=String|Gradlast=String|Gradyear=Integer|Gradimage=File|Gradhouse=Page|Gradplans=List (,) of String|Gradadvice=String|Captype=Page|Capformat=Page|Capssubject=List (,) of Page|Capaward=Page|Capdiscipline=Page|Capdescription=String|Capshortdescrip=String|Capstonebegin=String|Capchange=String|Capreflection=String|Capimages=List (,) of File|Capvideos=List (,) of File|Cappresentation= String|Capdocument=File|Captext=Wikitext|Capfeaturedimage=File|Capadvisor=Page}}
</noinclude><includeonly>{{#default_form:CapGrad}}{{#cargo_store:_table=CapGrads|Graduate={{{Graduate|}}}|Gradlast={{{Gradlast|}}}|Gradyear={{{Gradyear|}}}|Gradimage={{{Gradimage|}}}|Gradhouse={{{Gradhouse|}}}|Gradplans={{{Gradplans|}}}|Gradadvice={{{Gradadvice|}}}|Captype={{{Captype|}}}|Capformat={{{Capformat|}}}|Capssubject={{{Capssubject|}}}|Capaward={{{Capaward|}}}|Capdiscipline={{{Capdiscipline|}}}|Capdescription={{{Capdescription|}}}|Capshortdescrip={{{Capshortdescrip|}}}|Capstonebegin={{{Capstonebegin|}}}|Capchange={{{Capchange|}}}|Capreflection={{{Capreflection|}}}|Capimages={{{Capimages|}}}|Capvideos={{{Capvideos|}}}|Cappresentation={{{Cappresentation|}}}|Capdocument={{{Capdocument|}}}|Capfeaturedimage={{{Capfeaturedimage|}}}|Capadvisor={{{Capadvisor|}}} }}{{{Capdescription|}}}
+
</noinclude><includeonly>{{#default_form:Capstone}}{{#cargo_store:_table=Capstones|Graduate={{{Graduate|}}}|Gradlast={{{Gradlast|}}}|Gradyear={{{Gradyear|}}}|Gradimage={{{Gradimage|}}}|Gradhouse={{{Gradhouse|}}}|Gradplans={{{Gradplans|}}}|Gradadvice={{{Gradadvice|}}}|Captype={{{Captype|}}}|Capformat={{{Capformat|}}}|Capssubject={{{Capssubject|}}}|Capaward={{{Capaward|}}}|Capdiscipline={{{Capdiscipline|}}}|Capdescription={{{Capdescription|}}}|Capshortdescrip={{{Capshortdescrip|}}}|Capstonebegin={{{Capstonebegin|}}}|Capchange={{{Capchange|}}}|Capreflection={{{Capreflection|}}}|Capimages={{{Capimages|}}}|Capvideos={{{Capvideos|}}}|Cappresentation={{{Cappresentation|}}}|Capdocument={{{Capdocument|}}}|Captext={{{Captext|}}}|Capfeaturedimage={{{Capfeaturedimage|}}}|Capadvisor={{{Capadvisor|}}} }}{{{Capdescription|}}}
<div class="flex-row row">{{#if: {{{Capdocument|}}} | {{#if: {{{Cappresentation|}}} {{{Capvideos|}}} {{{Capimages|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{{Capdocument|}}}</div> | {{{Capdocument|}}} }} }}{{#if: {{{Capvideos|}}} | {{#if: {{{Cappresentation|}}} {{{Capimages|}}} {{{Capdocument|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{#arraymap:{{{Capvideos|}}}|,|u|[[File:u|450px|center]]}}</div> | {{#arraymap:{{{Capvideos|}}}|,|u|[[File:u|450px|center]]}} }} }} {{#if: {{{Cappresentation|}}} | {{#if: {{{Capvideos|}}} {{{Capimages|}}} {{{Capdocument|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{#widget:Google Presentation|docid={{{Cappresentation|}}}}}</div> | {{#widget:Google Presentation|docid={{{Cappresentation|}}}}} }} }} {{#if: {{{Capimages|}}} | {{#if: {{{Cappresentation|}}} {{{Capvideos|}}} {{{Capdocument|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{#tag:gallery|{{#arraymap:{{{Capimages|}}}|,|x|x|\n}} }}</div> | {{#tag:gallery|{{#arraymap:{{{Capimages|}}}|,|x|x|\n}}|mode="slideshow"}} }} }}</div>
+
<div class="flex-row row">{{#if: {{{Capdocument|}}} | {{#if: {{{Cappresentation|}}} {{{Capvideos|}}} {{{Capimages|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{{Capdocument|}}}</div> | {{{Capdocument|}}} }} }}{{#if: {{{Capvideos|}}} | {{#if: {{{Cappresentation|}}} {{{Capimages|}}} {{{Capdocument|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{#arraymap:{{{Capvideos|}}}|,|u|[[File:u|450px|center]]}}</div> | {{#arraymap:{{{Capvideos|}}}|,|u|[[File:u|450px|center]]}} }} }} {{#if: {{{Cappresentation|}}} | {{#if: {{{Capvideos|}}} {{{Capimages|}}} {{{Capdocument|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{#widget:Google Presentation|docid={{{Cappresentation|}}}}}</div> | {{#widget:Google Presentation|docid={{{Cappresentation|}}}}} }} }} {{#if: {{{Capimages|}}} | {{#if: {{{Cappresentation|}}} {{{Capvideos|}}} {{{Capdocument|}}}| <div class="col-xs-12 col-md-6 col-lg-6">{{#tag:gallery|{{#arraymap:{{{Capimages|}}}|,|x|x|\n}} }}</div> | {{#tag:gallery|{{#arraymap:{{{Capimages|}}}|,|x|x|\n}}|mode="slideshow"}} }} }}{{#if: {{{Captext|}}}|{{{Captext}}} }}</div>
 
{{Infobox
 
{{Infobox
| bodyclass    = col-lg-4 col-sm-6 col-xs-12
 
 
| bodystyle    = border: 0px; background-color: #ffffff; margin-top:16px;
 
| bodystyle    = border: 0px; background-color: #ffffff; margin-top:16px;
 
| titlestyle    = display: none;
 
| titlestyle    = display: none;

Revision as of 18:28, 3 May 2020

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

{{Capstones
|Graduate=
|Gradlast=
|Gradyear=
|Gradimage=
|Gradhouse=
|Gradplans=
|Gradadvice=
|Captype=
|Capformat=
|Capssubject=
|Capaward=
|Capdiscipline=
|Capdescription=
|Capshortdescrip=
|Capstonebegin=
|Capchange=
|Capreflection=
|Capimages=
|Capvideos=
|Cappresentation=
|Capdocument=
|Captext=
|Capfeaturedimage=
|Capadvisor=
}}

Edit the page to see the template text. This template defines the table "Capstones". This table has not been created yet.