SemWeb: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
<noinclude> | |||
This is the "Person" template. | |||
It should be called in the following format: | |||
<pre> | |||
{{Person | |||
|Image= | |||
|Home page= | |||
|Location= | |||
|GPS Location= | |||
}} | |||
</pre> | |||
Edit the page to see the template text. | |||
</noinclude><includeonly> | |||
{{ #if: {{{Image|}}} | | |||
{{ #set:Image={{{Image|}}} }}{{ #set:GPS Location={{ #geocode: {{{Location}}} }} }} | |||
[[File:{{{Image}}}|200px|thumb|left|{{PAGENAME}}]] | |||
| }} | |||
{{ #if: {{{Home page|}}} | | |||
<div class="tpldiv"><span class="tpllabel">Home page</span> | |||
<span class="tblvalue">[[Home page::{{{Home page|}}}]]</span> | |||
</div> | |||
| }} | |||
{{ #if: {{{Location|}}} | | |||
{{#arraymap:{{{Location}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}} | |||
<!-- {{#arraymap:{{{Location}}}|,|x|[[Location::x]] |<nowiki> </nowiki>}} --> | |||
| }} | |||
{{ #if: {{{Arts|}}} | | |||
{{#arraymap:{{{Arts}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}} | |||
<!-- {{#arraymap:{{{Arts}}}|,|x|[[Arts::x]] |<nowiki> </nowiki>}} --> | |||
| }} | |||
{{ #if: {{{Type|}}} | | |||
{{#arraymap:{{{Type}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}} | |||
<!-- {{#arraymap:{{{Type}}}|,|x|[[Type::x]] |<nowiki> </nowiki>}} --> | |||
| }} | |||
== Events with {{PAGENAME}} == | |||
{{ #ask: [[Category:Event]][[People::{{PAGENAME}}]] | |||
|?Start date | |||
|?End date | |||
|?Location | |||
}} | |||
{{#forminput:form=Event|||button text=Add an event|query string=Event[People]={{PAGENAME}}&Event[Tags]={{{Tags}}}|}} | |||
<br class="cleared" /> | |||
[[Category:Person]] | |||
</includeonly> | |||
Revision as of 19:26, 24 September 2009
This is the "Person" template. It should be called in the following format:
{{Person |Image= |Home page= |Location= |GPS Location= }}
Edit the page to see the template text.