Jump to content

Template:Project: Difference between revisions

From Squirrel's Lair
Ttenbergen (talk | contribs)
No edit summary
Ttenbergen (talk | contribs)
mNo edit summary
 
(59 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Show:
Uses [[Form:Project]], use that to make new pages.
 
* internal link - if logged in, will redlink if page doesn't exist, right?
* photo - if related filename exist
* section for short description start (encode data)
* long description / free text
* possibly encode skillset and project type and list collapsables of similars at bottom?
* does it involve [[North Forge Fabrication Lab]]
 
* start with [[Integration of Espresso Maker Pod into Coffee Grinder Bucket]], [[:Category:Portfolio]] and [[:Category:Personal Project]]
 
 
To use:
<nowiki>{{ Project |
| shortDescription
| longDescription
| skillSet
| projectType
| northForge
}}</nowiki>


===Cargo declaration===
===Cargo declaration===
{{#cargo_declare:
{{#cargo_declare:
_table = Project
_table = Project
| Program = String
| shortDescription = Wikitext string
| StartDtTm = Date
| longDescription = Wikitext
| EndDtTm = Date
| geekery = Wikitext
| Frequency = String
| mainImage = File
| ContactPerson = String
| skillSet = List (;) of Page
| Recipients = String
| projectType = List (;) of Page
| MailingList = String
| northForge = boolean
| DataDependencies = List (;) of Page
| randomChangeForce = boolean
| SASFiles = String
}}
}}


[[Category:Project Wiki Infrastructure]]
[[Category:Project Wiki Infrastructure]]
----
----</noinclude>
 
 
 
 
</noinclude>
Internal Link: [[Internal:{{PAGENAME}}]]
This should only show if logged in, need to figure out CSS for that from Internal Wiki example
 
<div style="clear:right;">
<div style="clear:right;">
{| class="wikitable" border="1" style="float:right; width:30%"
{| class="wikitable" border="1" style="float:right; width:300px"
| style="text-align: center; background-color:#99c2ff;" colspan="2" | <span style="font-size: larger;">[[Reports]]</span>
| style="text-align: center; background-color:#99c2ff;" colspan="2" | <span style="font-size: larger;">[[Projects]]</span>
|-
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Report: '''
| style="text-align: center; background-color:#99c2ff;" colspan="2" | {{#cargo_query:
| {{PAGENAME}}
tables=Project
|fields=CONCAT("[[File:",mainImage,"|280px]]" )=
|where=_pageName="{{PAGENAME}}"
|format=list
|default=[[File:Squirrelslair.png|280px]]
}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''StartDtTm: '''
| style="background:silver; color:arsenic; width:25%" align="right"| '''Project: '''
| {{{StartDtTm|}}}
| {{PAGENAME}} <includeonly>[[Internal:{{PAGENAME}}|(I)]]</includeonly>
|-
|-
| style="background:silver; color:arsenic" align="right"| '''EndDtTm: '''
| style="background:silver; color:arsenic" align="right"| '''Description: '''
| {{{EndDtTm|}}}
| {{{shortDescription|}}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''Contact Person : '''
| style="background:silver; color:arsenic" align="right"| '''[[Skillset]](s) : '''
| {{{ContactPerson }}}
| <!-- direct parameter list won't display as links-->
|-
{{#cargo_query:
| style="background:silver; color:arsenic" align="right"| '''Recipients: '''
tables=Project
| {{{Recipients}}}
|fields=skillSet
|-
|where=_pageName = "{{PAGENAME}}"
| style="background:silver; color:arsenic" align="right"| '''Frequency: '''
|format=list
| {{{Frequency}}}
|default= No skillsets
|-
}}
| style="background:silver; color:arsenic" align="right"| '''MailingList: '''
| {{{MailingList}}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''[[Indicators|Data Dependencies]] : '''
| style="background:silver; color:arsenic" align="right"| '''[[Project Type]](s) : '''
| <!-- if we list the parameter here directly it will not display as page links, it needs to be processed by Cargo as a list to work right, so needs to be done as query.
| <!-- direct parameter list won't display as links-->
-->{{#cargo_query:
{{#cargo_query:
tables=Reports
tables=Project
|fields=DataDependencies
|fields=projectType
|where=_pageName = "{{PAGENAME}}"
|where=_pageName = "{{PAGENAME}}"
|format=list
|format=list
|default= No reports on this wiki list this as an indicator.
|default= No project type
}}
}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''SASFiles: '''
||  
| {{{SASFiles}}}
|{{#ifeq:{{{northForge}}}|Yes|[[File:NorthForgeLogo.jpg|100px|link=North Forge Fabrication Lab]]| }}
|-
|-
|}  
|}  


Auto-list project types and skillsets and similars...
{{{longDescription|}}}


&nbsp;<!-- without this nbsp the template misbehaves! --> <includeonly><div style="display: none;">
{{#if:{{{geekery|}}}|
=== How we did it ===
{{{geekery|}}}
|}}
 
<includeonly><div style="display: none;">
 
__NOCACHE__


* Cargo
* Cargo
{{#cargo_store:
{{#cargo_store:
_table = Reports
_table = Project
| Program = {{{Program|}}}
| shortDescription = {{{shortDescription|}}}
| StartDtTm = {{{StartDtTm|}}}
| longDescription = {{{longDescription |}}}
| EndDtTm = {{{EndDtTm|}}}
| geekery = {{{geekery|}}}
| Frequency = {{{Frequency|}}}
| mainImage = {{#ifexist:File:{{PAGENAME}}.jpg|{{PAGENAME}}.jpg|{{#ifexist:File:{{PAGENAME}}.png|{{PAGENAME}}.png|Squirrelslair.png}}}}
| ContactPerson = {{{ContactPerson |}}}
| skillSet = {{{skillSet |}}}
| Recipients  =  {{{Recipients|}}}
| projectType = {{{projectType |}}}
| MailingList = {{{MailingList|}}}
| northForge = {{{northForge |}}}
| DataDependencies = {{{DataDependencies|}}}
| SASFiles  = {{{SASFiles|}}}
}}
}}


* Categories
* Categories
[[Category:Reports]]
[[Category:Project]]
 


* Default form: {{#default_form:Report}}
* Default form
{{#default_form:Project}}


</div></includeonly>
</div></includeonly>

Latest revision as of 22:24, 2024 March 31

Uses Form:Project, use that to make new pages.

Cargo declaration

This template defines the table "Project". View table.


Projects
Project: Project
Description:
Skillset(s) :

No skillsets

Project Type(s) :

No project type