Jump to content

Template:Project: Difference between revisions

From Squirrel's Lair
Ttenbergen (talk | contribs)
No edit summary
Ttenbergen (talk | contribs)
mNo edit summary
 
(57 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===
Line 26: Line 7:
| shortDescription = Wikitext string
| shortDescription = Wikitext string
| longDescription = Wikitext
| longDescription = Wikitext
| geekery = Wikitext
| mainImage = File
| skillSet = List (;) of Page
| skillSet = List (;) of Page
| projectType = List (;) of Page
| projectType = List (;) of Page
| northForge = boolean
| northForge = boolean
| randomChangeForce = boolean
}}
}}


[[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
 
{{{longDescription|}}}
 
<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="text-align: center; background-color:#99c2ff;" colspan="2" | {{#cargo_query:
tables=Project
|fields=CONCAT("[[File:",mainImage,"|280px]]" )=
|where=_pageName="{{PAGENAME}}"
|format=list
|default=[[File:Squirrelslair.png|280px]]
}}
|-
|-
| style="background:silver; color:arsenic; width:25%" align="right"| '''Project: '''
| style="background:silver; color:arsenic; width:25%" align="right"| '''Project: '''
| {{PAGENAME}}
| {{PAGENAME}} <includeonly>[[Internal:{{PAGENAME}}|(I)]]</includeonly>
|-
|-
| style="background:silver; color:arsenic" align="right"| '''Description: '''
| style="background:silver; color:arsenic" align="right"| '''Description: '''
| {{{shortDescription|}}}
| {{{shortDescription|}}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''[[Skillset]] : '''
| style="background:silver; color:arsenic" align="right"| '''[[Skillset]](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=Projects
tables=Project
|fields=skillSet
|fields=skillSet
|where=_pageName = "{{PAGENAME}}"
|where=_pageName = "{{PAGENAME}}"
Line 61: Line 45:
}}
}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''[[Project Types]] : '''
| 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=Projects
tables=Project
|fields=projectType  
|fields=projectType  
|where=_pageName = "{{PAGENAME}}"
|where=_pageName = "{{PAGENAME}}"
Line 71: Line 55:
}}
}}
|-
|-
| style="background:silver; color:arsenic" align="right"| '''North Forge: '''
||  
| {{{northForge|}}}
|{{#ifeq:{{{northForge}}}|Yes|[[File:NorthForgeLogo.jpg|100px|link=North Forge Fabrication Lab]]| }}
|-
|-
|}  
|}  


Auto-list project types and skillsets and similars...
{{{longDescription|}}}
 
{{#if:{{{geekery|}}}|
=== How we did it ===
{{{geekery|}}}
|}}
 
<includeonly><div style="display: none;">


&nbsp;<!-- without this nbsp the template misbehaves! --> <includeonly><div style="display: none;">
__NOCACHE__


* Cargo
* Cargo
{{#cargo_store:
{{#cargo_store:
_table = Projects
_table = Project
| shortDescription = {{{shortDescription|}}}
| shortDescription = {{{shortDescription|}}}
| longDescription = {{{longDescription |}}}
| longDescription = {{{longDescription |}}}
| geekery = {{{geekery|}}}
| mainImage = {{#ifexist:File:{{PAGENAME}}.jpg|{{PAGENAME}}.jpg|{{#ifexist:File:{{PAGENAME}}.png|{{PAGENAME}}.png|Squirrelslair.png}}}}
| skillSet = {{{skillSet |}}}
| skillSet = {{{skillSet |}}}
| projectType = {{{projectType |}}}
| projectType = {{{projectType |}}}
Line 92: Line 85:
* Categories
* Categories
[[Category:Project]]
[[Category:Project]]


* Default form
* Default form

Latest revision as of 23: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