Difference between revisions of "Template:Person/doc"

From RecSysWiki
Jump to navigation Jump to search
(move documentation to a separate page to prevent template loop)
 
(update)
Line 5: Line 5:
 
<pre>{{Person
 
<pre>{{Person
 
  |name        = John Doe
 
  |name        = John Doe
|image      = JohnDoe.jpg
 
 
  |affiliation = Foobar University
 
  |affiliation = Foobar University
 
  |website    = http://example.com
 
  |website    = http://example.com
Line 11: Line 10:
 
}}</pre>
 
}}</pre>
  
Result:
+
Result: ----->
  
 
{{Person
 
{{Person
Line 19: Line 18:
 
  |user        = [[User:JohnDoe]]
 
  |user        = [[User:JohnDoe]]
 
}}
 
}}
 +
 +
;Note: The <tt><nowiki>{{{image}}}</nowiki></tt> parameter is optional; if not passed, it is replaced by the default image. The other parameters should be provided, otherwise they will show up in their raw form (e.g. {{{country}}})

Revision as of 08:47, 9 January 2012

This template provides a quick way to add basic information about a person on their page.

Example usage:

{{Person
 |name        = John Doe
 |affiliation = Foobar University
 |website     = http://example.com
 |user        = [[User:JohnDoe]]
}}

Result: ----->

John Doe
Image needed (male).png
Affiliation
Foobar University
{{{country}}}
Website
http://example.com
User:JohnDoe
Note
The {{{image}}} parameter is optional; if not passed, it is replaced by the default image. The other parameters should be provided, otherwise they will show up in their raw form (e.g. {{{country}}})