Template: Semorg-project: Difference between revisions

From SemanticOrganization
Jump to: navigation, search
No edit summary
No edit summary
 
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-category}}]]{{#semorg-set:project  
<noinclude>{{semorg-bundle}}</noinclude><includeonly>[[Category:{{int:semorg-project-category}}]]{{#semorg-set:project  
   |title={{PAGENAME}}  
   |title={{{title|{{PAGENAME}}}}}  
   |start={{{start|}}}  
   |start={{{start|}}}  
   |end={{{end|}}}  
   |end={{{end|}}}  
   |contact-person={{{contact-person|}}}  
   |contact-person={{{contact-person|}}}  
   |description={{{description|}}}  
   |description={{{description|}}}  
   |closed={{{closed|false}}}
   |closed={{#if:{{{closed-date|}}}|true|{{{closed|false}}}}}
  |closed-date={{{closed-date|}}}
  |active={{{active|true}}}
   |budget={{{budget|}}}
   |budget={{{budget|}}}
   |short-title={{{short-title|}}}
   |short-title={{{short-title|}}}
Line 14: Line 16:
   |status={{{status|}}}
   |status={{{status|}}}
   |type={{{type|}}}
   |type={{{type|}}}
  |outlook={{{outlook|}}}
  |picture={{#if:{{{picture|}}}|File:{{{picture}}}}}
  |homepage={{{homepage|}}}
}}{{#semorg-set-list:project
}}{{#semorg-set-list:project
  |topic={{{topic|}}}
  |tag={{{tag|}}}
   |target-group={{{target-group|}}}
   |target-group={{{target-group|}}}
   |phase={{{phase|}}}
   |phase={{{phase|}}}
   |strategic-objective={{{strategic-objective|}}}
   |strategic-objective={{{strategic-objective|}}}
}}{{#semorg-detail:project
}}{{#semorg-detail:project
   |overview page={{#if:{{{closed|}}}
   |heading={{{title|{{PAGENAME}}}}}  
    |{{#semorg-true:{{{closed|}}}
  |overview page={{#semorg-true:{{{closed|{{#explode:{{int:smw false words}}|,|0}}}}}
      |{{int:semorg-project-closed-page-name}}
    |{{int:semorg-project-closed-page-name}}
    |{{#semorg-true:{{{active|{{#explode:{{int:smw true words}}|,|0}}}}}
       |{{int:semorg-project-page-name}}
       |{{int:semorg-project-page-name}}
      |{{int:semorg-project-inactive-page-name}}
     }}
     }}
    |{{int:semorg-project-page-name}}
   }}
   }}
}}{{#if:{{{closed|}}}
}}{{#if:{{{closed-date|}}}
   |{{#semorg-true:{{{closed|}}}
  |<span class="badge text-bg-secondary">{{int:semorg-value-status-closed-since|{{{closed-date|}}}}}</span>
     |<span class="badge badge-secondary">{{int:semorg-value-status-closed}}</span>
   |{{#semorg-true:{{{closed|}{{#explode:{{int:smw false words}}|,|0}}}}
     |<span class="badge badge-success">{{int:semorg-value-status-open}}</span>
     |<span class="badge text-bg-secondary">{{int:semorg-value-status-closed}}</span>
     |{{#semorg-true:{{{active|{{#explode:{{int:smw true words}}|,|0}}}}}
      |<span class="badge text-bg-success">{{int:semorg-value-status-open}}</span>
      |<span class="badge text-bg-secondary">{{int:semorg-value-status-inactive}}</span>
    }}
   }}
   }}
}}{{#semorg-tabs:project
}}{{#semorg-tabs:project
Line 37: Line 49:
     |team-external={{{team-external|}}}
     |team-external={{{team-external|}}}
     |{{#ifexist:{{int:semorg-project-update-page-name}}
     |{{#ifexist:{{int:semorg-project-update-page-name}}
       |last-update={{semorg-project-last-update|{{FULLPAGENAME}}}}
       |last-update={{semorg-project-last-update|{{FULLPAGENAME}}|{{{title|{{PAGENAME}}}}} }}{{#semorg-nocache:}}
     }}
     }}
   }}{{#ifexist:{{int:semorg-meeting-project-page-name}}
   }}{{#ifexist:{{int:semorg-meeting-project-page-name}}
Line 46: Line 58:
   }}{{semorg-project-subpage-overview}}
   }}{{semorg-project-subpage-overview}}
   |?details={{#semorg-table:project  
   |?details={{#semorg-table:project  
    |homepage={{{homepage|}}}
     |short-title={{{short-title|}}}
     |short-title={{{short-title|}}}
     |run-time={{#if:{{{start|}}}{{{end|}}}
     |run-time={{#if:{{{start|}}}{{{end|}}}
Line 51: Line 64:
       }}
       }}
     |description={{{description|}}}  
     |description={{{description|}}}  
    |tag={{{tag|}}}
    |topic={{semorg-topic-link|{{{topic|}}}}}
     |contact-person={{semorg-person-link|{{{contact-person|}}}}}
     |contact-person={{semorg-person-link|{{{contact-person|}}}}}
     |team-internal={{{team-internal|}}}
     |team-internal={{{team-internal|}}}
Line 58: Line 73:
     |milestone={{{milestone|}}}
     |milestone={{{milestone|}}}
     |sales={{#ifexist:{{int:semorg-invoice-page-name}}
     |sales={{#ifexist:{{int:semorg-invoice-page-name}}
       |[{{fullurl:{{int:semorg-invoice-page-name}}|invoice-project={{FULLPAGENAMEE}}&invoice-year=}} {{semorg-currency|{{#ask:[[Category:semorg-invoice]][[semorg-invoice-project::{{FULLPAGENAME}}]]
       |{{semorg-invoice-sales|{{#ask:[[Category:semorg-invoice]][[semorg-invoice-project::{{FULLPAGENAME}}]]
         |?semorg-invoice-amount-net
         |?semorg-invoice-amount-net
         |format=sum
         |format=sum
         |limit=1000
         |limit=1000
         |default=0
         |default=0
       }}}}] ({{int:semorg-net-text}})
       }}}}
     }}
     }}
     |openproject-id={{{openproject-id|}}}
     |openproject-id={{{openproject-id|}}}
     |toggl-id={{{toggl-id|}}}
     |toggl-id={{{toggl-id|}}}
     |target-group={{{target-group|}}}
     |target-group={{semorg-target-group-link|{{{target-group|}}}}}
    |milestones={{#ask:[[semorg-milestone-project::{{FULLPAGENAME}}]]
      |?semorg-milestone-plot.semorg-plot-scj.semorg-scj-name=
      |format=ul
    }}
     |phase={{{phase|}}}
     |phase={{{phase|}}}
     |strategic-objective={{{strategic-objective|}}}
     |strategic-objective={{{strategic-objective|}}}
     |status={{{status|}}}
     |status={{{status|}}}
     |type={{{type|}}}
     |type={{{type|}}}
    |outlook={{{outlook|}}}
    |bmcs={{#ask:[[semorg-bmc-project::{{FULLPAGENAME}}]]
      |format=ul
    }}
    |picture={{#if:{{{picture|}}}|[[File:{{{picture}}}|class=img-fluid]]}}
   }}
   }}
   |{{#ifexist:{{int:semorg-meeting-project-page-name}}
   |{{#ifexist:{{int:semorg-meeting-project-page-name}}
Line 78: Line 102:
   |{{#ifexist:{{int:semorg-project-grant-page-name}}|?grants}}
   |{{#ifexist:{{int:semorg-project-grant-page-name}}|?grants}}
   |{{#ifexist:{{int:semorg-contact-page-name}}|?contact}}
   |{{#ifexist:{{int:semorg-contact-page-name}}|?contact}}
   |{{#if:{{{openproject-id|}}}|?openproject={{semorg-openproject-project|{{{openproject-id}}}}}}}
   |{{#ifexpr:{{#ask:[[semorg-agenda-project::{{FULLPAGENAME}}]]|format=count}}>0
    |?agenda
  }}
}}
}}
</includeonly>
</includeonly>

Latest revision as of 18:02, 23 November 2024

This page is part of the Semantic Organization extension.

If you want to customize this template you can copy its contents to another page (use for example Template:Semorg-project-custom) and change the following system message to the name of the newly created page: MediaWiki:semorg-project-template