Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

Difference between revisions of "Template:Project"

From Funtoo
Jump to navigation Jump to search
Line 13: Line 13:
</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|duration=Start date, End date}}
{{#cargo_declare:_table=projects|summary=Wikitext|leads=List (,) of Page|members=List (,) of Page|contributors=List (,) of Page|start_date=Date|end_date=Date}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:
{{#cargo_store:
Line 21: Line 21:
|members={{#arraymap:{{{members|}}}|,|x|User:x|,}}
|members={{#arraymap:{{{members|}}}|,|x|User:x|,}}
|contributors={{#arraymap:{{{contributors|}}}|,|x|User:x|,}}
|contributors={{#arraymap:{{{contributors|}}}|,|x|User:x|,}}
|duration={{#if:{{{start_date|}}}|{{{start_date}}},{{{end_date|}}}}}
|start_date={{{start_date|}}}
|end_date={{{end_date|}}}
}}{{ProjectInfoBox|title=Summary|body={{{summary}}}<br>{{#if:{{{leads|}}}|
}}{{ProjectInfoBox|title=Summary|body={{{summary}}}<br>{{#if:{{{leads|}}}|
<br>'''Leads'''<ul>{{#arraymap:{{{leads}}}|,|%|<li>{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}</li>|
<br>'''Leads'''<ul>{{#arraymap:{{{leads}}}|,|%|<li>{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}</li>|

Revision as of 04:19, February 8, 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)''
|start_date=
|end_date=
}}

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