Difference between revisions of "Template:Person"

From Hackerspace ACKspace
Jump to: navigation, search
m (Got rid of the "image" text on the user profile if no image is set)
m (fixed styles: allow small screens)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
+
<noinclude>
{| style="width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
+
This is the "Person" template.
 +
It should be called in the following format:
 +
<pre>
 +
{{Person
 +
|Name=
 +
|Photo=
 +
|Role=
 +
|Committee=
 +
|Member since=
 +
|Homepage=
 +
|IM Address=
 +
|Extension=
 +
|Languages=
 +
|CAcert Assurer=
 +
|PGP key fingerprint=
 +
|Achievements=
 +
}}
 +
</pre>
 +
Edit the page to see the template text.
 +
</noinclude><includeonly>
 +
{| style="max-width: 30em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>User: {{PAGENAME}}</big>
 
! style="text-align: center; background-color:#ccccff;" colspan="2" |<big>User: {{PAGENAME}}</big>
 
|-
 
|-
{{#if: {{{Photo|}}} | ! colspan=2\|[[Image:{{{Photo|}}}|thumb|350px|center]] | }}
+
! colspan=2|{{#if: {{{Photo|}}} | [[Image:{{{Photo|}}}|thumb|350px|center]] | }}
 
|-
 
|-
 
! Name
 
! Name
Line 40: Line 60:
 
|-
 
|-
 
! PGP key
 
! PGP key
| {{#if: {{{PGP key|}}} | [[PGP key::http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x{{{PGP key|}}}|{{{PGP key|}}}]][[Category:PGP keys]] | No PGP key defined. Create your PGP key pair by following [https://ssd.eff.org/en/module/how-use-pgp-linux this guide]. }}
+
| {{#if: {{{PGP key fingerprint|}}} | [[PGP key::http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x{{#sub:{{#replace:{{{PGP key fingerprint|}}}| |}}|-16}}|{{#sub:{{#replace:{{{PGP key fingerprint|}}}| |}}|-16}}]][[Category:PGP keys]] | No PGP key defined. Create your PGP key pair by following [https://ssd.eff.org/en/module/how-use-pgp-linux this guide]. }}
 
|-
 
|-
 
! PGP key fingerprint
 
! PGP key fingerprint
Line 51: Line 71:
 
{{#ifeq:{{{CAcert Assurer}}}|Yes|[[Category:CAcert Assurers]]}}
 
{{#ifeq:{{{CAcert Assurer}}}|Yes|[[Category:CAcert Assurers]]}}
 
[[Category:People]]
 
[[Category:People]]
 +
<includeonly>

Latest revision as of 14:07, 20 March 2018

This is the "Person" template. It should be called in the following format:

{{Person
|Name=
|Photo=
|Role=
|Committee=
|Member since=
|Homepage=
|IM Address=
|Extension=
|Languages=
|CAcert Assurer=
|PGP key fingerprint=
|Achievements=
}}

Edit the page to see the template text.