Template:AAType

From Asian Canadian Wiki
(Difference between revisions)
Jump to: navigation, search
 
(19 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
This is the "AAType" template.
 
This is the "AAType" template.
 
It should be used with the form.
 
It should be used with the form.
</noinclude><includeonly>--{{ #titleparts: {{FULLPAGENAME}} | -1 }}--
+
</noinclude><includeonly>
 
<div style="display: none">
 
<div style="display: none">
{{ #ifeq: {{ #titleparts: {{FULLPAGENAME}} | -1 }}|fr
+
 
|[[Category:Pages françaises]]{{ #vardefine: lang|fr}}{{#vardefine: otherlang|{{#replace: {{FULLPAGENAME}}|/fr|}} }}
+
{{ #ifeq: {{ #titleparts: {{FULLPAGENAME}}|1|-1}}|fr
|[[Category:English pages]]{{#vardefine:lang|en}}{{#vardefine: otherlang|{{FULLPAGENAME}}/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">
 
</div><div style="float: right; width: 230px; padding: 1em">
 
{{ #ifeq: {{ #var: lang}}|en
 
{{ #ifeq: {{ #var: lang}}|en
|{{ #ifexist: {{#var: otherlang}}|[[{{#var: otherlang}}|Version français]]|[http://www.asiancanadianwiki.org/w/Special:FormEdit/AAType/{{#var: otherlang}}?AAType%5BImage%5D={{ #replace:{{{Image|}}}| |_}} Créer la version française] }}
+
|{{ #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: otherlang}}?AAType%5BImage%5D={{ #replace:{{{Image|}}}| |_}} Create the English version] }}
+
|{{ #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|{{PAGENAME}}]]
+
{{ #ifeq: {{#titleparts: {{{Image}}} }}|Http:
| }}
+
|{{{Image}}}
<br class="cleared" />
+
|[[File:{{{Image}}}|200px|thumb|{{PAGENAME}}]]
{{ #ask: [[Category:Event]][[People::{{PAGENAME}}]]
+
|?Start date
+
|?End date
+
|?Location
+
|format=template
+
|template=Event item
+
|intro=<div style="background-color: #aaf; padding: 5px"><h2>Events with {{PAGENAME}}</h2>'''Please verify event details with the organizer'''</div>
+
 
}}
 
}}
 
+
|[[Category:Profiles with no image]] }}
{{#forminput:form=Event|||button text=Add an event|query string=Event[People]={{PAGENAME}}&Event[Arts]={{{Arts}}}|}}
+
{{ #if: {{{Featured|}}}|[[Category:Featured]]'''Featured'''}}{{ #set: Featured={{{Featured|}}} }}
 +
<br class="cleared" />
 
</div>
 
</div>
  
Line 53: Line 48:
 
<span class="hidden">{{#arraymap:{{{Aspects}}}|,|x|[[Aspects::x]] |<nowiki> </nowiki>}}</span>
 
<span class="hidden">{{#arraymap:{{{Aspects}}}|,|x|[[Aspects::x]] |<nowiki> </nowiki>}}</span>
 
| }}
 
| }}
__TOC__
 
  
 +
{{ #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 08:36, 4 August 2015

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

Personal tools
Namespaces

Variants
Actions
Participating
Categories
Toolbox