Template:AAType: Difference between revisions

From Asian Canadian Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(112 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Person" template.
This is the "AAType" template.
It should be called in the following format:
It should be used with the form.
<pre>
{{Person
|Image=
|Home page=
|Location=
|GPS Location=
}}
</pre>
Edit the page to see the template text.
</noinclude><includeonly>
</noinclude><includeonly>
{{ #set:Image={{{Image|}}} }}
<div style="display: none">
{{ #set:GPS Location={{ #geocode: {{{Location|}}}}}}}
[[File:{{{Image}}}|200px|thumb|left|{{PAGENAME}}]]
{| class="wikitable"
! Home page
| [[Home page::{{{Home page|}}}]]
|-
! Location
| [[Location::{{{Location|}}}]]
|}


== Events including {{PAGENAME}} ==
{{ #ifeq: {{ #titleparts: {{FULLPAGENAME}}|1|-1}}|fr
 
|[[Category:Pages françaises]]{{ #vardefine: lang|fr}}{{#vardefine: otherlang|{{#replace: {{FULLPAGENAME}}|/fr|}} }}{{#vardefine: otherlange|{{#replace: {{FULLPAGENAMEE}}|/fr|}} }}
{{ #ask: [[Category:Events]][[People::{{PAGENAME}}]]
|[[Category:English pages]]{{#vardefine:lang|en}}{{#vardefine: otherlang|{{FULLPAGENAME}}/fr }}{{#vardefine: otherlange|{{FULLPAGENAMEE}}/fr }}
|?Start date
}}{{ #set: Lang={{#var: lang}} }}
|?End date
</div><div style="float: right; width: 230px; padding: 1em">
|?Location
{{ #ifeq: {{ #var: lang}}|en
|{{ #ifexist: {{#var: otherlang}}|[[{{#var: otherlang}}|Version français]]|[http://www.asiancanadianwiki.org/w/Special:FormEdit/AAType/{{#var: otherlange}}?AAType%5BImage%5D={{ #replace:{{{Image|}}}| |_}} Créer la version française] }}
|{{ #ifexist: {{#var: otherlang}}|[[{{#var: otherlang}}|English version]]|[http://www.asiancanadianwiki.org/w/Special:FormEdit/AAType/{{#var: otherlange}}?AAType%5BImage%5D={{ #replace:{{{Image|}}}| |_}} Create the English version] }}
}}
{{ #if: {{{Image|}}} |
{{ #set:Image={{{Image}}} }}
{{ #ifeq: {{#titleparts: {{{Image}}} }}|Http:
|{{{Image}}}
|[[File:{{{Image}}}|200px|thumb|{{PAGENAME}}]]
}}
}}
|[[Category:Profiles with no image]] }}
{{ #if: {{{Featured|}}}|[[Category:Featured]]'''Featured'''}}{{ #set: Featured={{{Featured|}}} }}
<br class="cleared" />
</div>


{{#formlink:Level|Add an event|Button|Event[People]={{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>}}
<div class="tpldiv"><span class="tpllabel">Location</span>
<span class="tblvalue">{{#arraymap:{{{Location}}}|,|x|[[Location::x]] |<nowiki> </nowiki>}}<span class="tblvalue">
<span class="hidden">[[GPS Location::{{ #geocode:{{{Location}}}, Canada}}]]</span>
| }}
{{ #if: {{{Arts|}}} |
{{#arraymap:{{{Arts}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}}
<span class="hidden">{{#arraymap:{{{Arts}}}|,|x|[[Arts::x]] |<nowiki> </nowiki>}}</span>
| }}
{{ #if: {{{Type|}}} |
{{#arraymap:{{{Type}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}}
<span class="hidden">{{#arraymap:{{{Type}}}|,|x|[[Type::x]] |<nowiki> </nowiki>}}</span>
| }}
{{ #if: {{{Aspects|}}} |
{{#arraymap:{{{Aspects}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}}
<span class="hidden">{{#arraymap:{{{Aspects}}}|,|x|[[Aspects::x]] |<nowiki> </nowiki>}}</span>
| }}


[[Category:Person]]
{{ #ask: [[Category:Book]][[Author::{{PAGENAME}}]]
|intro=<h2>Published books</h2>
|mainlabel=Title
|?Extended title
|?Year of Publication
|sort=Year of Publication
}}
{{ #ask: [[Category:Film]][[Producer::{{PAGENAME}}]] OR [[Director::{{PAGENAME}}]]
|intro=<h2>Films</h2>
|mainlabel=Title
|?Description
|?Year
|sort=Year
}}
__TOC__
</includeonly>
</includeonly>

Latest revision as of 12:36, 4 August 2015

This is the "AAType" template. It should be used with the form.