Solar Cooking
mNo edit summary
Tag: sourceedit
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
  +
{{GoogleTranslateLinks}}
  +
{{Updated|9|19|15}}
 
This page documents commonly used templates on the Solar Cookers International Network Wiki.
 
This page documents commonly used templates on the Solar Cookers International Network Wiki.
 
   
 
==Templates for adding new pages of different types==
 
==Templates for adding new pages of different types==
Line 29: Line 30:
 
Adds translation links to a page. This template should be used when the native language of a page is English:
 
Adds translation links to a page. This template should be used when the native language of a page is English:
   
<div style=margin-left:25px;>{{GoogleTranslateLinks}}</div>
+
::{{GoogleTranslateLinks}}
  +
  +
==='''[[Template:GoogleTranslateLinksAuto]]'''===
  +
Adds translation links to a page. This template will translate a page in any language. The downside for use on an English page is that this template also includes an option to translate INTO English:
  +
  +
<div style=margin-left:25px;>{{GoogleTranslateLinksAuto}}</div>
   
 
==='''[[Template:GoogleTranslateLinksFromFrench]]'''===
 
==='''[[Template:GoogleTranslateLinksFromFrench]]'''===
Line 75: Line 81:
 
<div style=margin-left:25px;>{{LocalizationLinks}}</div>
 
<div style=margin-left:25px;>{{LocalizationLinks}}</div>
   
 
==Miscellaneous templates==
==Templates for embedding YouTube videos==
 
  +
==='''[[Template:Updated]]'''===
  +
Adds date to top of page. Add a fourth parameter to make the SCI Association logo appear to the left: <nowiki>{{Updated|1|1|15|Associate}}</nowiki>
  +
==='''[[Template:Degree]]'''===
  +
Used to display temperatures in Celsius with Fahrenheit in parentheses. Just enter the Celsius temperature and conversion to Fahrenheit is done automatically: <nowiki>{{Degree|100}}</nowiki> will display this: 100 °C (212 °F)
   
  +
==='''[[Template:CO2]]'''===
  +
Used to display this: {{CO2}}
   
  +
==='''[[Template:HeadlineExt]]'''===
  +
This template is used to create the small image and hot link for news stories in [[Template:TopNews]] and [[Template:OtherNews]].
   
==='''[[Template:Youtube]]'''===
+
==='''[[Template:AmazonSmile]]'''===
  +
This template describes how to support the site by setting up an Amazon Smile account.
 
  +
==='''[[Template:Section]]'''===
<nowiki>{{Youtube|<youtube>djo3k4jofkj</youtube>|Title for video}}</nowiki>
 
  +
This template is used to simulate page sections inside of tabs, since tabber doesn't allow true sections using "==".
 
  +
==='''[[Template:Cat]]'''===
==Miscellaneous templates==
 
  +
Use this template to link to a category page without the need to do something like this: <nowiki>[[:Category:Whatever|Whatever]]</nowiki>. Instead use this syntax: <nowiki>{{Cat|Whatever}}</nowiki>
 
==='''[[Template:InterwikiLinks]]'''===
 
==='''[[Template:InterwikiLinks]]'''===
 
Use the '''InterwikiLinks template''' at the bottom of each page in the Spanish and French sites to point to the English site. And on those pages on the English site that are pointed to, use the template to point back to the other site(s).
 
Use the '''InterwikiLinks template''' at the bottom of each page in the Spanish and French sites to point to the English site. And on those pages on the English site that are pointed to, use the template to point back to the other site(s).
Line 139: Line 154:
   
 
<nowiki>{{State|Gujarat}}</nowiki><br />
 
<nowiki>{{State|Gujarat}}</nowiki><br />
<nowiki>{{State|Arizona|AZ}}</nowiki>
+
<nowiki>{{State|Arizona}</nowiki>
   
 
==='''[[Template:UsageTable]]'''===
 
==='''[[Template:UsageTable]]'''===
Line 153: Line 168:
   
 
==='''[[Template:CategoryDetails]]'''===
 
==='''[[Template:CategoryDetails]]'''===
  +
Creates a link on a category page that points to the main article.
  +
  +
==='''[[Template:DPL]]'''===
  +
Creates a list of links to pages in single category or those which are a member of two categories. Syntax: <nowiki>{{DPL|category1|category2|number_of_columns}}.</nowiki>
  +
  +
Note that to use this for a single category, repeat the single category twice, e.g.:
  +
  +
<nowiki>{{DPL|Brazil|Brazil|3}}</nowiki>
  +
  +
==See also==
  +
* [[Style guide]]
 
[[Category:Help]]
 
[[Category:Help]]

Revision as of 19:52, 3 November 2015

Searchbox
Last edited: 19 September 2015      

This page documents commonly used templates on the Solar Cookers International Network Wiki.

Templates for adding new pages of different types

Template:CookerPage

Use this template when you are starting a new page about a cooker. Type {{Subst:CookerPage}} into the edit box for the new page. Then click the "Save page" button. Then click "Edit" to add specific information.

See main article: Adding a cooker article

Template:BioPage

Use this template when you are starting a new page about a person. Type {{Subst:BioPage}} into the edit box for the new page. Then click the "Save page" button. Then click "Edit" to add specific information.

See main article: Adding a biographical article

Template:CountryPage

Use this template when you are starting a new page about a country. Type {{Subst:CountryPage}} into the edit box for the new page. Then click the "Save page" button. Then click "Edit" to add specific information.

See main article: Adding a country page

Template:NGOPage

Use this template when you are starting a new page about an NGO. Type {{Subst:NGOPage}} into the edit box for the new page. Then click the "Save page" button. Then click "Edit" to add specific information.

See main article: Adding an NGO page

Templates for adding translation links to the page

Template:GoogleTranslateLinks

Adds translation links to a page. This template should be used when the native language of a page is English:

Searchbox

Template:GoogleTranslateLinksAuto

Adds translation links to a page. This template will translate a page in any language. The downside for use on an English page is that this template also includes an option to translate INTO English:

Template:GoogleTranslateLinksFromFrench

Adds translation links to a page. This template should be used when the native language of a page is French:

Template:GoogleTranslateLinksFromPortuguese

Adds translation links to a page. This template should be used when the native language of a page is Portuguese:

Template:GoogleTranslateLinksFromSpanish

Adds translation links to a page. This template should be used when the native language of a page is Spanish:

Template:GoogleLinkFromFrench

Use this template to create an external link to a French page. A link to the Google translation of that page is automatically created:

French link text - Optional newspaper name

Template:GoogleLinkFromPortuguese

Use this template to create an external link to a Portuguese page. A link to the Google translation of that page is automatically created:

Portuguese link text - Optional newspaper name

Template:GoogleLinkFromSpanish

Use this template to create an external link to a Spanish page. A link to the Google translation of that page is automatically created:

Spanish link text - Optional newspaper name

Template:GoogleLinkFromItalian

Use this template to create an external link to a Italian page. A link to the Google translation of that page is automatically created:

Italian link text - Optional newspaper name

Template:LocalizationLinks

Use this template to add external links to translated versions of a page (e.g., a construction plan):

===Plans in other languages===
  • [ Arabic]
  • [ Catalan]
  • [ Chinese]
  • [ French]
  • [ German]
  • [ Hebrew]
  • [ Italian]
  • [ Persian]
  • [ Portuguese]
  • [ Russian]
  • [ Spanish]
  • [ Thai]
  • [ Urdu]
  • [ Vietnamese]

Miscellaneous templates

Template:Updated

Adds date to top of page. Add a fourth parameter to make the SCI Association logo appear to the left: {{Updated|1|1|15|Associate}}

Template:Degree

Used to display temperatures in Celsius with Fahrenheit in parentheses. Just enter the Celsius temperature and conversion to Fahrenheit is done automatically: {{Degree|100}} will display this: 100 °C (212 °F)

Template:CO2

Used to display this: CO2

Template:HeadlineExt

This template is used to create the small image and hot link for news stories in Template:TopNews and Template:OtherNews.

Template:AmazonSmile

This template describes how to support the site by setting up an Amazon Smile account.

Template:Section

This template is used to simulate page sections inside of tabs, since tabber doesn't allow true sections using "==".

Template:Cat

Use this template to link to a category page without the need to do something like this: [[:Category:Whatever|Whatever]]. Instead use this syntax: {{Cat|Whatever}}

Template:InterwikiLinks

Use the InterwikiLinks template at the bottom of each page in the Spanish and French sites to point to the English site. And on those pages on the English site that are pointed to, use the template to point back to the other site(s).

Syntax on the Spanish site is the following:

{{InterwikiLinks|English title|French title}}

On the French site the syntax is this:

{{InterwikiLinks|English title|Spanish title}}

…and on the English site:

{{InterwikiLinks|French title|Spanish title}}

Replace the words “French title”, “English title”, and “Spanish title” with the actual titles.

You’ll see that this template adds visible links to the other site(s) and it also adds the interwiki links (e.g., [[fr:Cookit]]) to the page.

If only one language is available then you can leave out the last parameter or leave an empty bar section for the first parameter. For example, using the template on the English site:

{{InterwikiLinks|CooKit}} -- The page only exists on the French site.

{{InterwikiLinks||El Panel “Cocínalo”}} -- The page only exists on the Spanish site.

Template:NewsArchive

Use this template using "subst" in order to create a new archive page for news for a given year.

Template:ArchivedPage

Information no longer current, but included for archival purposes. Use for groups and individuals no longer promoting solar cooking.

Template:Clr

Use this template at the end of a section of text to prevent any text from below from wrapping around any images above this point.

Template:Delete

Marks an article for deletion.

Template:PlanHeader

Used on Category:Solar cooker plans pages to encourage discussion.


Template:HTMLTable

Used to place images side-by-side.

Template:Talk

Indicates that an article has a talk page associated with it with active content.

A question or comment about this article has been posted on its talk page. Click the 'discussion' tab to see it.

Template:State

Automatically creates a link to the state category. Works also with US state abbreviations.

Examples:

{{State|Gujarat}}
{{State|Arizona}

Template:UsageTable

For possible use on for adding standard info for each NGO.

Use solar cookers  
Number taught  
Number sold  
Countries  

Template:Main

Used to link a summary to the main article within the SCWN website.

Template:See

Create a link to an article within the SCWN website.

Template:CategoryDetails

Creates a link on a category page that points to the main article.

Template:DPL

Creates a list of links to pages in single category or those which are a member of two categories. Syntax: {{DPL|category1|category2|number_of_columns}}.

Note that to use this for a single category, repeat the single category twice, e.g.:

{{DPL|Brazil|Brazil|3}}

See also