Template:Contributor: Difference between revisions
Template page
More actions
No edit summary |
No edit summary |
||
| (8 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params:native_name (label=Native Name)}} | {{#template_params:image (label=Image)|native_name (label=Native Name)|birthplace (label=Birthplace)|birthdate (label=Birthdate)|deathdate (label=Deathdate)|startdate (label=Start Date)|enddate (label=End Date)|type (label=Type)}} | ||
{{#cargo_declare:_table=contributors|native_name=String}} | {{#cargo_declare:_table=contributors|image=File|native_name=String|birthplace=String|birthdate=Date|deathdate=Date|startdate=Start date|enddate=End date|type=String (allowed values=Person,Group)}} | ||
</noinclude><includeonly>{{#cargo_store:_table=contributors}}<table class="infobox-table citizen-table-nowrap floatright"> | </noinclude><includeonly>{{#cargo_store:_table=contributors}}<table class="infobox-table citizen-table-nowrap floatright"> | ||
<tr id="infobox-table-img-bg"> | <tr id="infobox-table-img-bg"> | ||
<td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{ | <td width="100%" colspan="3" class="infobox-table-img">{{#if:{{{image|}}}|[[{{{image}}}|400px]]|[[File:Portrait_Placeholder.png|400px]]}}</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
<th width="100%" colspan="3" class="infobox-table-name"><b> | <th width="100%" colspan="3" class="infobox-table-name"><b>{{PAGENAME}}</b></th> | ||
</tr> | </tr> | ||
{{#if:{{{type|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Type<noinclude></noinclude></td> | |||
<td width="60%">{{{type}}}</td> | |||
</tr>}} | |||
{{#if:{{{native_name|}}}|<tr> | {{#if:{{{native_name|}}}|<tr> | ||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Native name<noinclude></noinclude></td> | <td width="40%" valign="top" colspan="2"><noinclude></noinclude>Native name<noinclude></noinclude></td> | ||
<td width="60%">{{native_name}}</td> | <td width="60%">{{{native_name}}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{birthplace|}}}|<tr> | |||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude>Birthplace<noinclude></noinclude></td> | |||
<td width="60%">{{{birthplace}}}</td> | |||
<tr | </tr>}} | ||
<td width=" | {{#if:{{{birthdate|}}}|<tr> | ||
</tr> | <td width="40%" valign="top" colspan="2"><noinclude></noinclude>Birthdate<noinclude></noinclude></td> | ||
<tr> | <td width="60%">{{{birthdate}}}</td> | ||
< | </tr>}} | ||
</tr> | {{#if:{{{deathdate|}}}|<tr> | ||
{{#if:{{{ | <td width="40%" valign="top" colspan="2"><noinclude></noinclude>Deathdate<noinclude></noinclude></td> | ||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude> | <td width="60%">{{{deathdate}}}</td> | ||
<td width="60%">{{ | |||
</tr>}} | </tr>}} | ||
{{#if:{{{ | {{#if:{{{startdate|}}}|<tr> | ||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude> | <td width="40%" valign="top" colspan="2"><noinclude></noinclude>Start date<noinclude></noinclude></td> | ||
<td width="60%">{{ | <td width="60%">{{{startdate}}}</td> | ||
</tr>}} | </tr>}} | ||
{{#if:{{{ | {{#if:{{{enddate|}}}|<tr> | ||
<td width="40%" valign="top" colspan="2"><noinclude></noinclude> | <td width="40%" valign="top" colspan="2"><noinclude></noinclude>End date<noinclude></noinclude></td> | ||
<td width="60%">{{ | <td width="60%">{{{enddate}}}</td> | ||
</tr>}} | </tr>}} | ||
</table>[[Category: | </table>{{{Members|}}} [[Category:Contributors]] {{DISPLAYTITLE:{{{name}}}}}<templatestyles src="Template:Game/styles.css" /></includeonly> | ||
Latest revision as of 06:00, 2 November 2025
This is the "Contributor" template.
It should be called in the following format:
{{Contributor
|image=
|native_name=
|birthplace=
|birthdate=
|deathdate=
|startdate=
|enddate=
|type=
}}
Edit the page to see the template text.
This template defines the table "contributors". View table.