注意:
The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Template:Project"
Jump to navigation
Jump to search
(36 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
|members=''(comma-delimited User pages)'' | |members=''(comma-delimited User pages)'' | ||
|contributors=''(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) | |||
|related pages=(comma-delimited list of subpages to display in infobox) | |||
|status= | |status= | ||
|status_date= | |status_date= | ||
|translate=yes/no | |||
}} | }} | ||
</pre> | </pre> | ||
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> | </noinclude><includeonly>{{#cargo_store: | ||
{{#cargo_store: | |||
_table=projects | _table=projects | ||
|summary={{{summary|}}} | |summary={{{summary|}}} | ||
Line 21: | Line 25: | ||
|members={{#arraymap:{{{members|}}}|,|x|User:x|,}} | |members={{#arraymap:{{{members|}}}|,|x|User:x|,}} | ||
|contributors={{#arraymap:{{{contributors|}}}|,|x|User:x|,}} | |contributors={{#arraymap:{{{contributors|}}}|,|x|User:x|,}} | ||
}}{{{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="infobox" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:project-diagram}} Summary</div><div class="note-body" style="padding: 8px;">{{{summary}}}<br><div> | |||
}}<div style="vertical-align: top; float: right; width: | {{#cargo_query: | ||
<div class=" | tables=project_components | ||
<div class="note" style="background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:user-friends}} People</div><div class="note-body" style="padding: 8px;">{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}</li>| | |intro=This page displays the components of the project, which are used to track the scope of the project, or in other words -- what is included in the effort. | ||
|where=_pageName="{{FULLPAGENAME}}" | |||
|fields=name=Component,support=Support Level,summary=Summary | |||
|order by=Component ASC | |||
|format=table | |||
|limit=0 | |||
|more results text=View Scope... | |||
|default=}}</div></div></div>}}{{#if:{{{subpages|}}}| | |||
<div class="infobox" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:scroll}} Subpages</div><div class="note-body" style="padding: 8px;">{{#arraymap:{{{subpages}}}|,|x|* '''[[{{FULLPAGENAME}}/x|x]]'''|\n}}</div></div>}}{{#if:{{{related pages|}}}| | |||
<div class="infobox" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:scroll}} Related Pages</div><div class="note-body" style="padding: 8px;">{{#arraymap:{{{related pages}}}|,|x|* '''[[x]]'''|\n}}</div></div>}} | |||
<div class="infobox" style="margin: 0px; margin-left: 14px; margin-bottom: 14px; background-color: #e6ede4;"><div class="note-head" style="background-color: #8da197;">{{#fas:user-friends}} People</div><div class="note-body" style="padding: 8px;">{{#if:{{{leads|}}}|''Leads''<ul>{{#arraymap:{{{leads}}}|,|%|<li>{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}</li>| | |||
}}</ul>}}{{#if:{{{members|}}}| | }}</ul>}}{{#if:{{{members|}}}| | ||
<br> | <br>''Members''<ul>{{#arraymap:{{{members}}}|,|%|<li>{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}</li>| | ||
}}</ul>}}{{#if:{{{contributors|}}}| | }}</ul>}}{{#if:{{{contributors|}}}| | ||
<br> | <br>''Contributors''<ul>{{#arraymap:{{{contributors}}}|,|%|<li>{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}</li>| | ||
}}</ul>}} | }}</ul>}} | ||
</div></div | </div></div>{{{updates|}}}{{Project/LatestUpdate}}</div> | ||
{{DISPLAYTITLE:Funtoo {{PAGENAME}} Project}} | |||
{ | |||
{{DISPLAYTITLE:{{PAGENAME}} Project}} | |||
<span style="display:none">{{#default_form:Project}}</span> | <span style="display:none">{{#default_form:Project}}</span> | ||
</includeonly> | </includeonly> |
Latest revision as of 03:39, March 2, 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) |related pages=(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.