Difference between revisions of "Template:Contact2"

From Organic Design wiki
m
 
(7 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
This template simplifies the creation of articles which are part of a contact list. When inserted in a contact page, it creates a decorative table providing contact details. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles.  
 
This template simplifies the creation of articles which are part of a contact list. When inserted in a contact page, it creates a decorative table providing contact details. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles.  
  
This Template is used by [[Form:Person]]
+
This Template is used by [[Form:Contact2]]
  
 
<pre>{{Contact2|
 
<pre>{{Contact2|
Line 12: Line 12:
 
}}</pre>
 
}}</pre>
 
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page.
 
The order of the fields is not relevant. The template should be given as the ''first'' thing on a page.
 +
 +
[[Category:Examples/Semantic_MediaWiki]]
 
</noinclude>
 
</noinclude>
  
Line 18: Line 20:
 
! colspan="2" style="background: #cedff2; color: black" |[[Name:={{{Name|{{PAGENAME}}}}}]]
 
! colspan="2" style="background: #cedff2; color: black" |[[Name:={{{Name|{{PAGENAME}}}}}]]
 
|-
 
|-
{{#ifeq:{{{Address|}}}|||{{Tablerow|Label=Email:|Value=[[email::{{{Address}}}]]}}}}
+
{{#ifeq:{{{Address|}}}|||{{Tablerow|Label=Address:|Value=[[Address::{{{Address}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{Phone|}}}|||{{Tablerow|Label=Email:|Value=[[email::{{{Phone}}}]]}}}}
+
{{#ifeq:{{{Phone|}}}|||{{Tablerow|Label=Phone:|Value=[[Phone::{{{Phone}}}]]}}}}
 
|-
 
|-
{{#ifeq:{{{Email|}}}|||{{Tablerow|Label=Email:|Value=[[email::{{{Email}}}]]}}}}
+
{{#ifeq:{{{Email|}}}|||{{Tablerow|Label=Email:|Value=[[email::{{{Email}}}]] }}}}
 
|-
 
|-
{{#ifeq:{{{Fax|}}}|||{{Tablerow|Label=Email:|Value=[[email::{{{Fax}}}]]}}}}
+
{{#ifeq:{{{Fax|}}}|||{{Tablerow|Label=Fax:|Value=[[Fax::{{{Fax}}}]]}}}}
 
|}
 
|}
  
Line 35: Line 37:
 
[[Category:Contacts]]
 
[[Category:Contacts]]
 
</includeonly>
 
</includeonly>
[[Category:Examples/Semantic_MediaWiki]]
 

Latest revision as of 03:36, 17 January 2008

This template simplifies the creation of articles which are part of a contact list. When inserted in a contact page, it creates a decorative table providing contact details. It also takes care of annotating the given data semantically, so that users can easily find it or query it in other articles.

This Template is used by Form:Contact2

{{Contact2|
Name=|
Address=|
Phone=|
Email=|
Fax=|
}}

The order of the fields is not relevant. The template should be given as the first thing on a page.