Difference between revisions of "Templates"

From WikiCU
Jump to: navigation, search
 
(18 intermediate revisions by 4 users not shown)
Line 1: Line 1:
Summary of WikiCU templates.
+
List of templates, and important notes on how to use them.
  
== Anywhere ==
+
== List of templates ==
{|
 
|- style="background:#DDDDDD;"
 
| '''Template'''
 
| '''Purpose'''
 
| '''Position'''
 
| '''Parameters'''
 
|-
 
| <nowiki>{{</nowiki>[[Template:Clickpic|clickpic]]|1|2<nowiki>}}</nowiki>
 
| insert an image which links to an image
 
| anywhere
 
| 1 = full URL of link<br>
 
2 = full URL of image
 
|}
 
 
 
* <nowiki>{{</nowiki>[[Template:End|end]]<nowiki>}}</nowiki>
 
  
* <nowiki>{{</nowiki>[[Template:Quotation
+
See '''[http://www.wikicu.com/index.php5?title=Special%3AAllPages&from=&to=&namespace=10 this link]''' for the most up-to-date list of templates. The following table lists most of these, with some practical usage notes. Please add new templates to this table.
* <nowiki>{{</nowiki>[[Template:Quote
 
* <nowiki>{{</nowiki>[[Template:S-aft
 
* <nowiki>{{</nowiki>[[Template:S-bef
 
* <nowiki>{{</nowiki>[[Template:S-ttl
 
* <nowiki>{{</nowiki>[[Template:Schools
 
* <nowiki>{{</nowiki>[[Template:Start
 
* <nowiki>{{</nowiki>[[Template:Succession
 
  
== Top of articles ==
 
 
{|
 
{|
 
|- style="background:#DDDDDD;"
 
|- style="background:#DDDDDD;"
Line 34: Line 11:
 
| '''Position'''
 
| '''Position'''
 
| '''Parameters'''
 
| '''Parameters'''
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Infobox administration|infobox administration]]<nowiki>}}</nowiki>
 +
| infobox for administrative offices
 +
| top of article
 +
| Name, Location, Phone, Hours, Website
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Infobox reshall|infobox reshall]]<nowiki>}}</nowiki>
 +
| infobox for residence halls
 +
| top of article
 +
| Name, Image, Built, Renovated, Population
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Infobox restaurant|infobox restaurant]]<nowiki>}}</nowiki>
 +
| infobox for restaurants
 +
| top of article
 +
| Name, Image, Cuisine, Address, Phone, Hours, Menu, Violations, Website
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Infobox school|infobox school]]<nowiki>}}</nowiki>
 +
| infobox for schools
 +
| top of article
 +
| Name, Image, Established, Dean, Degrees, Enrollment, Website
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Construction|construction]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Construction|construction]]<nowiki>}}</nowiki>
 
| article is under construction
 
| article is under construction
| top
+
| top of article
 
| none
 
| none
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Current|current]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Current|current]]<nowiki>}}</nowiki>
 
| article is a current event
 
| article is a current event
| top
+
| top of article
 +
| none
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Delete|delete]]<nowiki>}}</nowiki>
 +
| article is a candidate for deletion
 +
| top of article
 
| none
 
| none
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Wp-also|wp-also]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Wp-also|wp-also]]<nowiki>}}</nowiki>
 
| article has a Wikipedia counterpart
 
| article has a Wikipedia counterpart
| top
+
| top of article
 
| none
 
| none
 
|-
 
|-
| <nowiki>{{</nowiki>[[Template:Wp-only|wp-only]]<nowiki>}}</nowiki>
+
| <nowiki>{{</nowiki>[[Template:Wp-also2|wp-also2]]|1<nowiki>}}</nowiki>
| article is only covered on Wikipedia
+
| article has a Wikipedia counterpart with a different name
| top
+
| top of article
| none
+
| 1 = name of Wikipedia article
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:POV|pov]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:POV|pov]]<nowiki>}}</nowiki>
 
| article's neutrality is disputed
 
| article's neutrality is disputed
| top
+
| top of article
 
| none
 
| none
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Prefrosh|prefrosh]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Prefrosh|prefrosh]]<nowiki>}}</nowiki>
 
| article is largely for prefrosh
 
| article is largely for prefrosh
| top
+
| top of article
 
| none
 
| none
|}
+
|-
 
+
| <nowiki>{{</nowiki>[[Template:Clickpic|clickpic]]|1|2<nowiki>}}</nowiki>
== Bottom of articles ==
+
| inserts an image which links to an external URL
{|
+
| anywhere in article
|- style="background:#DDDDDD;"
+
| 1 = full URL of link; 2 = full URL of image
| '''Template'''
+
|-
| '''Purpose'''
+
| <nowiki>{{</nowiki>[[Template:Quotation|quotation]]|1|2<nowiki>}}</nowiki>
| '''Position'''
+
| inserts quotation in a special box
| '''Parameters'''
+
| anywhere in article
 +
| 1 = quote; 2 = author/source
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Dir-also|dir-also]]|1<nowiki>}}</nowiki>
 +
| inserts link to person's directory listing
 +
| top of article
 +
| 1 = person's [[UNI]]
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Disambig|disambig]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Disambig|disambig]]<nowiki>}}</nowiki>
 
| indicates and explains disambiguation
 
| indicates and explains disambiguation
| bottom
+
| bottom of article
 
| none
 
| none
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Stub|stub]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Stub|stub]]<nowiki>}}</nowiki>
 
| indicates and explains stub
 
| indicates and explains stub
| bottom
+
| bottom of article
 +
| none
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Schools|schools]]<nowiki>}}</nowiki>
 +
| indicates article is part of the schools series
 +
| bottom of article
 
| none
 
| none
|}
 
 
== Infoboxes ==
 
* Infobox administration
 
* Infobox building
 
* Infobox reshall
 
* Infobox restaurant
 
* Infobox school
 
 
== User page ==
 
{|
 
|- style="background:#DDDDDD;"
 
| '''Template'''
 
| '''Purpose'''
 
| '''Position'''
 
| '''Parameters'''
 
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Welcome|welcome]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Welcome|welcome]]<nowiki>}}</nowiki>
 
| welcomes new user
 
| welcomes new user
| anywhere
+
| anywhere on user page
 
| none
 
| none
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Sign|sign]]<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Sign|sign]]<nowiki>}}</nowiki>
 
| reminds user to sign messages
 
| reminds user to sign messages
| anywhere
+
| anywhere on user page
 
| none
 
| none
 
|-
 
|-
 
| <nowiki>{{</nowiki>[[Template:Prezbo|prezbo]]|1<nowiki>}}</nowiki>
 
| <nowiki>{{</nowiki>[[Template:Prezbo|prezbo]]|1<nowiki>}}</nowiki>
 
| awards user with a PrezBo Award
 
| awards user with a PrezBo Award
| anywhere
+
| anywhere on user page
 
| 1 = message to award recipient
 
| 1 = message to award recipient
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:sig|sig]]|1|<nowiki>~~~~~}}</nowiki>
 +
| identifies an unsigned comment on a talk page
 +
| after an unsigned comment
 +
| 1 = user name
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Wikithon2013|Wikithon2013]]<nowiki>}}</nowiki>
 +
| Awarded exclusively to participants in [[2013 Columbia Wikithon|#WikiCU2013]]
 +
| anywhere on user page
 +
| none
 +
|-
 +
| <nowiki>{{</nowiki>[[Template:Wikithon2014|Wikithon2014]]<nowiki>}}</nowiki>
 +
| Awarded exclusively to participants in [[2014 Columbia Wikithon]]
 +
| anywhere on user page
 +
| none
 
|}
 
|}
 +
 +
== Infobox usage ==
 +
 +
<pre>
 +
<nowiki>{{</nowiki>Infobox name
 +
|Parameter=Blah blah blah
 +
|Parameter=1 2 3 4 5 6 7
 +
|Parameter=http://www.columbia.edu/blah/
 +
|<nowiki>}}</nowiki>
 +
</pre>
 +
 +
 +
 +
[[Category:WikiCU]]

Latest revision as of 21:42, 29 January 2014

List of templates, and important notes on how to use them.

List of templates

See this link for the most up-to-date list of templates. The following table lists most of these, with some practical usage notes. Please add new templates to this table.

Template Purpose Position Parameters
{{infobox administration}} infobox for administrative offices top of article Name, Location, Phone, Hours, Website
{{infobox reshall}} infobox for residence halls top of article Name, Image, Built, Renovated, Population
{{infobox restaurant}} infobox for restaurants top of article Name, Image, Cuisine, Address, Phone, Hours, Menu, Violations, Website
{{infobox school}} infobox for schools top of article Name, Image, Established, Dean, Degrees, Enrollment, Website
{{construction}} article is under construction top of article none
{{current}} article is a current event top of article none
{{delete}} article is a candidate for deletion top of article none
{{wp-also}} article has a Wikipedia counterpart top of article none
{{wp-also2|1}} article has a Wikipedia counterpart with a different name top of article 1 = name of Wikipedia article
{{pov}} article's neutrality is disputed top of article none
{{prefrosh}} article is largely for prefrosh top of article none
{{clickpic|1|2}} inserts an image which links to an external URL anywhere in article 1 = full URL of link; 2 = full URL of image
{{quotation|1|2}} inserts quotation in a special box anywhere in article 1 = quote; 2 = author/source
{{dir-also|1}} inserts link to person's directory listing top of article 1 = person's UNI
{{disambig}} indicates and explains disambiguation bottom of article none
{{stub}} indicates and explains stub bottom of article none
{{schools}} indicates article is part of the schools series bottom of article none
{{welcome}} welcomes new user anywhere on user page none
{{sign}} reminds user to sign messages anywhere on user page none
{{prezbo|1}} awards user with a PrezBo Award anywhere on user page 1 = message to award recipient
{{sig|1|~~~~~}} identifies an unsigned comment on a talk page after an unsigned comment 1 = user name
{{Wikithon2013}} Awarded exclusively to participants in #WikiCU2013 anywhere on user page none
{{Wikithon2014}} Awarded exclusively to participants in 2014 Columbia Wikithon anywhere on user page none

Infobox usage

{{Infobox name
|Parameter=Blah blah blah
|Parameter=1 2 3 4 5 6 7
|Parameter=http://www.columbia.edu/blah/
|}}