Difference between revisions of "Template:Project"

From Funtoo
Jump to navigation Jump to search
Line 5: Line 5:
{{Project
{{Project
|summary=
|summary=
|leads=
|leads=''(comma-delimited User pages)''
|members=''(comma-delimited User pages)''
|contributors=''(comma-delimited User pages)''
|duration=''(date range -- project inception and completion/termination)''
}}
}}
</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}}
{{#cargo_declare:_table=projects|summary=Wikitext|leads=List (,) of Page|members=List (,) of Page|contributors=List (,) of Page|duration=Start date, End date}}
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:
{{#cargo_store:
Line 15: Line 18:
|summary={{{summary|}}}
|summary={{{summary|}}}
|leads={{#arraymap:{{{leads|}}}|,|x|User:x|,}}
|leads={{#arraymap:{{{leads|}}}|,|x|User:x|,}}
|members={{#arraymap:{{{members|}}}|,|x|User:x|,}}
|contributors={{#arraymap:{{{contributors|}}}|,|x|User:x|,}}
}}{{ProjectInfoBox|title=Summary|body={{{summary}}}{{#if:{{{leads|}}}|
}}{{ProjectInfoBox|title=Summary|body={{{summary}}}{{#if:{{{leads|}}}|
<br><br>'''Leads'''
<br><br>'''Leads'''
{{#arraymap:{{{leads}}}|,|%|{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}|<br>
{{#arraymap:{{{leads}}}|,|%|{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}|<br>
}}}}{{#if:{{{members|}}}|
<br><br>'''Members'''
{{#arraymap:{{{members}}}|,|%|{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}|<br>
}}}}
}}{{#if:{{{contributors|}}}|
<br><br>'''Contributors'''
{{#arraymap:{{{contributors}}}|,|%|{{#ifexist:User:%|[[User:%|{{lc:%}}]]|%}}|<br>
}}}}
}}}}
}}
{{DISPLAYTITLE:{{PAGENAME}} Project}}
{{DISPLAYTITLE:{{PAGENAME}} Project}}
<span style="display:none">{{#default_form:Project}}</span>
<span style="display:none">{{#default_form:Project}}</span>
</includeonly>
</includeonly>

Revision as of 03:47, 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)''
|duration=''(date range -- project inception and completion/termination)''
}}

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