Template:Person infobox: Difference between revisions

From NPOWiki
Jump to navigation Jump to search
(added ages/eras params)
(added auto link to Singularity page)
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:{{{pronouns|}}}|
</tr>}}|[[Category:Missing forum ID]]}}{{#if:{{{nosing|}}}||
<tr>
    <th>Singularity</th>
    <td>[https://singularity.npowned.net/users/{{lc:{{#replace:{{#if:{{{singularity|}}}|{{{singularity}}}|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}|<nowiki> </nowiki>|-}}}} {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}'s achievements]</td>
</tr>}}{{#if:{{{pronouns|}}}|
<tr>
<tr>
     <th>Pronouns</th>
     <th>Pronouns</th>

Revision as of 06:57, 19 December 2020

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
  • 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).
  • 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).
  • 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.