Template:Person infobox: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
added auto link to Singularity page
hide singularity if no forum account
 
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
     <th>NPO forums</th>
     <th>NPO forums</th>
     <td>{{forumlink|NPO|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'s profile|profile={{{forumid}}}{{#iferror:{{#expr:{{{forumid}}}}}||-{{lc:{{#replace:{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}|<nowiki> </nowiki>|-}}}}}}}}</td>
     <td>{{forumlink|NPO|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'s profile|profile={{{forumid}}}{{#iferror:{{#expr:{{{forumid}}}}}||-{{lc:{{#replace:{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}|<nowiki> </nowiki>|-}}}}}}}}</td>
</tr>}}|[[Category:Missing forum ID]]}}{{#if:{{{nosing|}}}||
</tr>}}|[[Category:Missing forum ID]]}}{{#if:{{{nosing|}}}{{#ifeq:{{uc:{{{forumid}}}}}|N/A|x|}}||
<tr>
<tr>
     <th>Singularity</th>
     <th>Singularity</th>
Line 16: Line 16:
     <td>{{{pronouns}}}</td>
     <td>{{{pronouns}}}</td>
</tr>}}{{#if:{{{nsaffiliation|}}}{{{nsaccount|}}}{{{nspacifican|}}}|
</tr>}}{{#if:{{{nsaffiliation|}}}{{{nsaccount|}}}{{{nspacifican|}}}|
<tr class="center-row">
<tr>
     <th colspan="2">[[NationStates]]</th>{{if ns|main|[[Category:NationStates players]]}}
     <th colspan="2">[[NationStates]]</th>{{if ns|main|[[Category:NationStates players]]}}
</tr>{{#if:{{{nsaffiliation|}}}|
</tr>{{#if:{{{nsaffiliation|}}}|
Line 36: Line 36:
</tr>}}
</tr>}}
}}{{#if:{{{cnaffiliation|}}}{{{cnaccount|}}}{{{cnpacifican|}}}|
}}{{#if:{{{cnaffiliation|}}}{{{cnaccount|}}}{{{cnpacifican|}}}|
<tr class="center-row">
<tr>
     <th colspan="2">[[Cyber Nations]]</th>{{if ns|main|[[Category:Cyber Nations players]]}}
     <th colspan="2">[[Cyber Nations]]</th>{{if ns|main|[[Category:Cyber Nations players]]}}
</tr>{{#if:{{{cnaffiliation|}}}|
</tr>{{#if:{{{cnaffiliation|}}}|
Line 46: Line 46:
</tr>}}{{#if:{{{cnaccount|}}}|
</tr>}}{{#if:{{{cnaccount|}}}|
<tr>
<tr>
     <th>Account(s)</th>
     <th>Account</th>
     <td>
     <td>
{{{cnaccount}}}
{{{cnaccount}}}
Line 56: Line 56:
</tr>}}
</tr>}}
}}{{#if:{{{tornaffiliation|}}}{{{tornaccount|}}}{{{tornpacifican|}}}|
}}{{#if:{{{tornaffiliation|}}}{{{tornaccount|}}}{{{tornpacifican|}}}|
<tr class="center-row">
<tr>
     <th colspan="2">[[Torn]]</th>{{if ns|main|[[Category:Torn players]]}}
     <th colspan="2">[[Torn]]</th>{{if ns|main|[[Category:Torn players]]}}
</tr>{{#if:{{{tornaffiliation|}}}|
</tr>{{#if:{{{tornaffiliation|}}}|
Line 66: Line 66:
</tr>}}{{#if:{{{tornaccount|}}}|
</tr>}}{{#if:{{{tornaccount|}}}|
<tr>
<tr>
     <th>Account(s)</th>
     <th>Account</th>
     <td>
     <td>
{{{tornaccount}}}
{{{tornaccount}}}

Latest revision as of 15:01, 22 October 2025

Documentation [edit]

This template is used on non-game-specific pages for individuals. All parameters are optional.

Available parameters

  • width - the width of the infobox, only use this if really necessary.
  • name - the name of the person, defaults to page name.
  • image - file name and extension.
  • imagewidth - width of the image in pixels, if the original image is narrower than 250px.
  • caption - a caption for the image specified above, optional.
  • forumid - the id for the person's profile page on the NPO forums, e.g. 16171. If the person does not have a forum account, enter N/A (this will not show anything on the page, but removes it from Category:Missing forum ID). By default, the page name will be added as the slug (the forum software requires one to be present, but it doesn't matter what it is, so providing only the number to this parameter is preferable). This can easily be found on Singularity.
  • singularity - the name of the person's profile on Singularity; defaults to the name parameter or the page name.
  • nosing - define this parameter to hide the link to Singularity, e.g. for non-Pacificans (unless they have been given an NPO award). Implied when forumid is N/A.
  • pronouns - the person's preferred pronouns, if desired to be shared.
  • nsaffiliation - groups with which the person is affiliated in NationStates. This is a free-form field. Be sure to link to the NS-specific page for the group using {{NSp}}.
  • nsaccount - the person's nation(s) in NS. This is a free-form field. Nations can be linked or not.
  • nspacifican - the date(s) the person was a member of the NS NPO branch. This is also passed to Template:AgesEras.
  • cnaffiliation - same as nsaffiliation, but for Cyber Nations (the template is {{CNp}}).
  • cnaccount - same as nsaccount, but for Cyber Nations.
  • cnpacifican - same as nspacifican, but for Cyber Nations.
  • tornaffiliation - same, for Torn ({{Tornp}}).
  • tornaccount - same, for Torn.
  • tornpacifican - same, for Torn.

Skeleton

{{Person infobox
|image = 
|caption = 
|forumid = 
|pronouns = 
|nsaffiliation = 
|nsaccount = 
|nspacifican = 
|cnaffiliation = 
|cnaccount = 
|cnpacifican = 
|tornaffiliation = 
|tornaccount = 
|tornpacifican = 
}}

The above documentation is transcluded from Template:Person infobox/doc.