Template:Chapter: Difference between revisions

From OpenCommons
Jump to navigation Jump to search
No edit summary
No edit summary
 
(91 intermediate revisions by the same user not shown)
Line 2: Line 2:
<nowiki>{{Chapter</nowiki></br>
<nowiki>{{Chapter</nowiki></br>
<nowiki>| blueprint        = Name of the blueprint</nowiki></br>
<nowiki>| blueprint        = Name of the blueprint</nowiki></br>
<nowiki>| sectors           = Energy, Waste, Water, Transportation, Buildings, etc.</nowiki></br>
<nowiki>| sectors           = Utility, Transportation, Buildings, etc.</nowiki></br>
<nowiki>| authors          = Authors</nowiki></br>
<nowiki>| authors          = Authors</nowiki></br>
<nowiki>| poc              = point of contact</nowiki></br>
<nowiki>| poc              = point of contact</nowiki></br>
<nowiki>| email            = email address of point of contact</nowiki></br>
<nowiki>| email            = email address of point of contact</nowiki></br>
<nowiki>| document          = PDF version of this blueprint</nowiki></br>
<nowiki>| chapter          = Integer Sequence number to order chapters</nowiki></br>
<nowiki>| chapter          = Integer Sequence number to order chapters</nowiki></br>
<nowiki>}}</nowiki>
<nowiki>}}</nowiki>
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{| class="wikitable" style="float:right;width:650px"
__NOEDITSECTION__
! colspan="2" style="background:ltgrey;font-size:10pt" | [[Has blueprint::{{{blueprint}}}]]
{| class="wikitable" style="float:right;width:40%;margin-left: 40px;"
! colspan="2" style="background:ltgrey;font-size:10pt" | [[Has blueprint::{{{blueprint}}} ]]
|-
|-
| colspan="2" style="text-align:center;font-size:9pt" | [[File:opencommons.png|350px|link=Blueprint]]
| colspan="2" style="text-align:center;font-size:9pt" |[[File:{{#if:{{{image|}}} |{{{image|}}}|Chapter.jpg}}|{{{blueprint}}}|600px|x200px]] {{#set: Has image={{{image}}}}}
|-
|-
| colspan="2" style="background:ltgrey;text-align:center;font-size:9pt" |
| colspan="2" style="background:ltgrey;text-align:center;font-size:9pt" |
|-
|-
| style="font-size:9pt;width:100px" | <b>Sectors</b> || style="font-size:9pt" | {{#arraymap:{{{sectors|}}}|,|x|[[Has sector::x]]| <br> }}
| style="font-size:9pt;width:100px" | <b>Sectors</b> || style="font-size:9pt" | {{#arraymap:{{{sectors}}}|,|x|[[x]]| <br> }} {{#arraymap:{{{sectors}}}|,|x|{{#set: Has sector=x}}|}} {{#arraymap:{{{authors}}}|,|x|{{#set: Has author=x}}|}}
|-
|-
| style="font-size:9pt;width:100px" | <b>Authors</b> || style="font-size:9pt" | {{#arraymap:{{{authors|}}}|,|x|[[Has author::x]]| <br> }}
| style="font-size:9pt;width:100px" | <b>Contact</b> || style="font-size:9pt" | [[Has contact::{{{poc}}}| ]] [[Has email::{{{email}}}| ]] [[{{{poc}}}]]
|-
|-
| style="font-size:9pt;width:100px" | <b>Contact</b> || style="font-size:9pt" | [[Has contact::{{{poc}}}]] [[Has email::{{{email}}}| ]]
| style="font-size:9pt;width:100px" | <b>Topics</b> || style="font-size:9pt" | <!--[[In chapter::{{{chapter}}}| ]] {{#ifeq: {{{blueprint}}} | All | {{#ask: [[Category:Chapter]] |?title |limit=200 |format=ol |sort=In chapter }} |}}-->
|-
| style="font-size:9pt;width:100px" | <b>Blueprint PDF</b> || style="font-size:9pt" | [[Media:{{{blueprint}}}.pdf|{{{blueprint}}}]]
|-
| style="font-size:9pt;width:100px" | <b>{{{blueprint}}} Chapters</b> || style="font-size:9pt" | [[Has chapter::{{{chapter}}}| ]]
{{#ask:
{{#ask:
[[Category:Blueprint]]
[[Category:Chapter]]
[[Has sector::{{{blueprint}}}]]
[[Has sector::{{{blueprint}}}]]
|?title
|?title
|format=ol
|format=Ul
|sort=Has chapter
|sort=
}}
|-
| colspan="2" |{{#ifexpr: {{#ask: [[Category:Activity]]  [[In chapter::{{PAGENAME}}]] |format=count}}>0 | '''Activities''' | }}{{#ask:
[[Category:Activity]]
[[In chapter::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has description#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}{{#ifexpr: {{#ask: [[Category:Chapter]]  [[In chapter::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Blueprint Chapters''' | }}{{#ask:
[[Category:Chapter]]
[[In chapter::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has description#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}{{#ifexpr: {{#ask: [[Category:Webinar]]  [[In chapter::{{PAGENAME}}]] |format=count}}>0 | <hr>'''Webinars''' | }}{{#ask:
[[Category:Webinar]]
[[In chapter::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has description#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}{{#ifexpr: {{#ask: [[Category:News]]  [[In chapter::{{PAGENAME}}]] | |format=count}} > 0 | <hr>'''Press''' | }}{{#ask:
[[Category:News]]
[[In chapter::{{PAGENAME}}]]
|?=#
|?Has image#=2
|?Has summary#=3
|format=plainlist
|named args=yes
|introtemplate=Show image Header
|template=Show image
|outrotemplate=Show link Footer
}}
}}
|}
|}
;Authors
{{Display headshot | names      = {{{authors|}}} }}


[[Category:Blueprint]]
[[Has description::{{{summary}}}]]
[[Category:Chapter]]
</includeonly>
</includeonly>

Latest revision as of 17:42, July 31, 2023

{{Chapter
| blueprint = Name of the blueprint
| sectors = Utility, Transportation, Buildings, etc.
| authors = Authors
| poc = point of contact
| email = email address of point of contact
| document = PDF version of this blueprint
| chapter = Integer Sequence number to order chapters
}}