Template:AAType: Difference between revisions

From Asian Canadian Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(67 intermediate revisions by 3 users not shown)
Line 3: Line 3:
It should be used with the form.
It should be used with the form.
</noinclude><includeonly>
</noinclude><includeonly>
<div style="display: none">
{{ #ifeq: {{ #titleparts: {{FULLPAGENAME}}|1|-1}}|fr
|[[Category:Pages françaises]]{{ #vardefine: lang|fr}}{{#vardefine: otherlang|{{#replace: {{FULLPAGENAME}}|/fr|}} }}{{#vardefine: otherlange|{{#replace: {{FULLPAGENAMEE}}|/fr|}} }}
|[[Category:English pages]]{{#vardefine:lang|en}}{{#vardefine: otherlang|{{FULLPAGENAME}}/fr }}{{#vardefine: otherlange|{{FULLPAGENAMEE}}/fr }}
}}{{ #set: Lang={{#var: lang}} }}
</div><div style="float: right; width: 230px; padding: 1em">
{{ #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|}}} |
{{ #if: {{{Image|}}} |
{{ #set:Image={{{Image|}}} }}
{{ #set:Image={{{Image}}} }}
[[File:{{{Image}}}|200px|thumb|left|{{PAGENAME}}]]
{{ #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>
 
{{ #if: {{{Home page|}}} |
{{ #if: {{{Home page|}}} |
<div class="tpldiv"><span class="tpllabel">Home page</span>
<div class="tpldiv"><span class="tpllabel">Home page</span>
Line 14: Line 32:
{{ #if: {{{Location|}}} |
{{ #if: {{{Location|}}} |
{{#arraymap:{{{Location}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}}
{{#arraymap:{{{Location}}}|,|x|[[Category:x]] |<nowiki> </nowiki>}}
<span class="hidden">{{#arraymap:{{{Location}}}|,|x|[[Location::x]] |<nowiki> </nowiki>}}
<div class="tpldiv"><span class="tpllabel">Location</span>
[[GPS Location::{{ #geocode:{{{Location}}}, Canada}}]]</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|}}} |
{{ #if: {{{Arts|}}} |
Line 30: Line 49:
| }}
| }}


{{ #ask: [[Category:Event]][[People::{{PAGENAME}}]]
{{ #ask: [[Category:Book]][[Author::{{PAGENAME}}]]
|?Start date
|intro=<h2>Published books</h2>
|?End date
|mainlabel=Title
|?Location
|?Extended title
|intro=<h2>Events with {{PAGENAME}}</h2>'''Please verify event dates with the organizer'''
|?Year of Publication
|sort=Year of Publication
}}
}}
 
{{ #ask: [[Category:Film]][[Producer::{{PAGENAME}}]] OR [[Director::{{PAGENAME}}]]
{{#forminput:form=Event|||button text=Add an event|query string=Event[People]={{PAGENAME}}&Event[Arts]={{{Arts}}}|}}
|intro=<h2>Films</h2>
 
|mainlabel=Title
<br class="cleared" />
|?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.