Difference between revisions of "Template:Project"

From Funtoo
Jump to navigation Jump to search
Line 18: Line 18:
Edit the page to see the template text.
Edit the page to see the template text.
{{#cargo_declare:_table=projects|summary=Wikitext|leads=List (,) of Page|members=List (,) of Page|contributors=List (,) of Page|status_date=Date|status=Wikitext}}
{{#cargo_declare:_table=projects|summary=Wikitext|leads=List (,) of Page|members=List (,) of Page|contributors=List (,) of Page|status_date=Date|status=Wikitext}}
</noinclude><includeonly>{{#ifeq:{{{translate|}}}|yes|<languages/>}}{{#cargo_store:
</noinclude><includeonly>{{#cargo_store:
_table=projects
_table=projects
|summary={{{summary|}}}
|summary={{{summary|}}}
Line 26: Line 26:
|status={{{status|}}}
|status={{{status|}}}
|status_date={{{status_date|}}}
|status_date={{{status_date|}}}
}}{{{components|}}}<div style="vertical-align: top; float: right; width: 20%; margin: 0; margin-left: 1em; margin-bottom: 1em;>{{#if:{{{summary|}}}|
}}{{{components|}}}<div style="vertical-align: top; float: right; width: 20%; margin: 0; margin-left: 1em; margin-bottom: 1em;>{{#ifeq:{{{translate|}}}|yes|<languages/>}}{{#if:{{{summary|}}}|
<div class="note" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:project-diagram}}&nbsp;&nbsp;&nbsp;Summary</div><div class="note-body" style="padding: 8px;">{{{summary}}}</div></div>}}{{#if:{{{subpages|}}}|
<div class="note" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:project-diagram}}&nbsp;&nbsp;&nbsp;Summary</div><div class="note-body" style="padding: 8px;">{{{summary}}}</div></div>}}{{#if:{{{subpages|}}}|
<div class="note" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:scroll}}&nbsp;&nbsp;&nbsp;Subpages</div><div class="note-body" style="padding: 8px;">{{#arraymap:{{{subpages}}}|,|x|* [[{{FULLPAGENAME}}/x|x]]|\n}}</div></div>}}
<div class="note" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:scroll}}&nbsp;&nbsp;&nbsp;Subpages</div><div class="note-body" style="padding: 8px;">{{#arraymap:{{{subpages}}}|,|x|* [[{{FULLPAGENAME}}/x|x]]|\n}}</div></div>}}

Revision as of 06:01, February 25, 2022

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

{{Project
|summary=
|leads=''(comma-delimited User pages)''
|members=''(comma-delimited User pages)''
|contributors=''(comma-delimited User pages)''
|components=(a bunch of Project/Component templates here)
|updates=(a bunch of Project/Update templates here)
|subpages=(comma-delimited list of subpages to display in infobox)
|status=
|status_date=
|translate=yes/no
}}

Edit the page to see the template text. This template defines the table "projects". View table.