<?xml version="1.0" encoding="UTF-8"?>
<!--The use of the Povo API is subject to the terms and conditions of Povo, which can be found at http://world.povo.com/Povo:Terms_of_Use-->
<feed povo:type="page" xmlns:georss="http://www.georss.org/georss" xmlns:povo="http://world.povo.com/Help:AtomFeeds" xmlns="http://www.w3.org/2005/Atom">
  <id>http://www.povo.com/Help:Templates</id>
  <title>Help:Templates</title>
  <link rel="alternate" href="http://www.povo.com/Help:Templates" />
  <author>
    <name>The Povo Community</name>
  </author>
  <georss:point>42.3197 -71.0784</georss:point>
  <subtitle>This wiki page represents an area in www,  called Templates</subtitle>
  <icon>http://static.povo.com/img/logos/povo32.png</icon>
  <logo>http://static.povo.com/img/logos/povo_text.png</logo>
  <rights>Portions Creative Commons Licensed via cc-by-sa-3.0.  Terms of use: http://world.povo.com/Povo:Terms%20of%20Use.  Geographic location data is NOT Creative Commons, but copyright TeleAtlas.</rights>
  <updated>2008-11-05T11:15:38.1270000-05:00</updated>
  <link rel="self" href="http://boston.povo.com/Help:Templates?output=xml" />
  <entry>
    <title>Templates</title>
    <updated>2008-11-05T11:15:38.1270000-05:00</updated>
    <link rel="alternate" title="Help:Templates" href="http://www.povo.com/Help:Templates" />
    <id>http://www.povo.com/Help:Templates</id>
    <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">Templates are special pages which provide a format for similar information displayed on multiple pages. Essentially, you can create a page in the Template namespace and then include it on other pages; when the template changes, the other pages will automatically change. Additionally, you can pass information from a page to a template to control its appearance.
<div class="p"></div>If you've used templates on Wikipedia, you already know how this works: the syntax is exactly the same. You might want to read up on Lingua (Povo's scripting language) and search templates for new ways of creating and using templates.

<table id="toc" summary="Contents"><tr><td><div id="toctitle"><h2>Contents</h2></div>
<ul id="tocTop">
<li class="toclevel-1"><a href="#Syntax" class="tocJump"><span class="tocnumber">1</span> <span class="toctext">Syntax</span></a></li>
<li class="toclevel-1"><a href="#Templates_in_different_regions" class="tocJump"><span class="tocnumber">2</span> <span class="toctext">Templates in different regions</span></a></li>
<li class="toclevel-1"><a href="#Template_Parameters" class="tocJump"><span class="tocnumber">3</span> <span class="toctext">Template Parameters</span></a></li>
<li class="toclevel-1"><a href="#Lingua" class="tocJump"><span class="tocnumber">4</span> <span class="toctext">Lingua</span></a></li>
<li class="toclevel-1"><a href="#Template_examples" class="tocJump"><span class="tocnumber">5</span> <span class="toctext">Template examples</span></a></li>
</ul>
</td></tr></table><script type="text/javascript">addToc();</script>
</div></content>
  </entry>
  <entry>
    <title>Syntax</title>
    <link rel="alternate" title="Help:Templates: Syntax" href="http://www.povo.com/Help:Templates#Syntax" />
    <id>http://www.povo.com/Help:Templates?section=Syntax</id>
    <published>2008-11-05T11:15:38.1270000-05:00</published>
    <updated>2008-11-05T11:15:38.1270000-05:00</updated>
    <povo:section level="2" />
    <summary type="html" />
    <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
You can create a new template by just creating a page in the Template namespace. You can then include the text of that page on any other page by using double braces: {{<b>TemplateName</b>}}. When the page is displayed, {{<b>TemplateName</b>}} will be replaced with the text of the template. This is known as "calling a template".
<div class="p"></div>If there are template calls on a page, you will see a "Templates" tab while editing it which lists all the templates in use. If you edit a page and can't find the text you'd like to change, it's most likely contained in a template.
<div class="p"></div>You can make template calls even if the template doesn't exist.  In this case, the template will render as red text to indicate that it hasn't been made yet.  To see a list of these "missing template uses," you can use the <a href="http://www.povo.com/Special:Broken/Templates">Broken Templates</a> page.
<div class="p"></div></div></content>
  </entry>
  <entry>
    <title>Templates in different regions</title>
    <link rel="alternate" title="Help:Templates: Templates in different regions" href="http://www.povo.com/Help:Templates#Templates_in_different_regions" />
    <id>http://www.povo.com/Help:Templates?section=Templates_in_different_regions</id>
    <published>2008-11-05T11:15:38.1270000-05:00</published>
    <updated>2008-11-05T11:15:38.1270000-05:00</updated>
    <povo:section level="2" />
    <summary type="html" />
    <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
Templates can be region-specific (regions are things like <a href="http://boston.povo.com/">Boston</a> or <a href="http://somerville.ma.povo.com/">Somerville</a>). If you create a template on www.povo.com, it is available to all regions in Povo. If you create a template in a specific region, it will only be available to pages within that region or any child regions. When you call a template, Povo first looks to see if the template exists in the region of the page you're calling from. If it doesn't, Povo looks for the template in the root region. This allows you to create templates that override the default templates for a particular region.
<div class="p"></div></div></content>
  </entry>
  <entry>
    <title>Template Parameters</title>
    <link rel="alternate" title="Help:Templates: Template Parameters" href="http://www.povo.com/Help:Templates#Template_Parameters" />
    <id>http://www.povo.com/Help:Templates?section=Template_Parameters</id>
    <published>2008-11-05T11:15:38.1270000-05:00</published>
    <updated>2008-11-05T11:15:38.1270000-05:00</updated>
    <povo:section level="2" />
    <summary type="html" />
    <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
You can also pass parameters into a template call to change how it renders. This is done by appending a pipe to the template name and then providing a pipe-delimited list of name-value pairs. This is easier to see in an example:
<div class="p"></div>{{TemplateName|Parameter1=foo|Parameter2=baz}}
<div class="p"></div>In this case, the template named "TemplateName" will be called, and two parameters ("Parameter1" and "Parameter2") will be passed in with the values "foo" and "baz", respectively. The TemplateName template can now use parameters using a triple-brace syntax. If the text of TemplateName were:
<div class="p"></div>This is parameter 1: {{{Parameter1}}}
This is parameter 2: {{{Parameter2}}}
<div class="p"></div><br />
Then the output of the above template call would be:
<div class="p"></div><br />
This is parameter 1: foo
This is parameter 2: baz
<div class="p"></div><br />
Template calls don't need to be constrained to a single line, as in the above example; in fact, they're usually easier to read when broken up:
<div class="p"></div><br />
<a href="http://www.povo.com/Template:TemplateName?edit&amp;args=Parameter1=foo|Parameter2=baz&amp;ReturnUrl=http://boston.povo.com/Help:Templates?output=xml" class="new">Template:TemplateName</a>
<div class="p"></div>The &lt;noinclude&gt; template call renders the enclosed information only on the template's editing page. This is useful for providing additional information about creating and using a template. For example,

&lt;noinclude&gt;
This is help text
&lt;/noinclude&gt;

<div class="p"></div>"This is help text" will not be rendered when the template is included, but will appear on the page [[template:templatename]]
<div class="p"></div></div></content>
  </entry>
  <entry>
    <title>Lingua</title>
    <link rel="alternate" title="Help:Templates: Lingua" href="http://www.povo.com/Help:Templates#Lingua" />
    <id>http://www.povo.com/Help:Templates?section=Lingua</id>
    <published>2008-11-05T11:15:38.1270000-05:00</published>
    <updated>2008-11-05T11:15:38.1270000-05:00</updated>
    <povo:section level="2" />
    <summary type="html" />
    <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
Povo templates differ from Wikipedia templates mainly by the inclusion of a scripting language to control rendering.
<div class="p"></div>You use Lingua in a template by embedding Lingua tags that contain code; if you've used PHP or ASP, it's very similar. A Lingua tag starts with &lt;% and ends with %&gt;; everything in between is interpreted as Lingua code. So, for example, you could make a template with the following Lingua code:
<div class="p"></div><br />
&lt;% if Parameter1 = &quot;blue&quot; %&gt;
	The first parameter was the color blue
&lt;% else if Parameter2 = &quot;red&quot; %&gt;
	The first parameter was the color red
&lt;% end %&gt;
<div class="p"></div><br />
Then, if you called the template with {{TemplateName|Parameter1=blue|Parameter2=orange}}, you would see the following output:
<div class="p"></div><br />
The first parameter was the color blue
<div class="p"></div><br />
You can read more about Lingua syntax <a href="/Help:Lingua">here</a>.
<div class="p"></div></div></content>
  </entry>
  <entry>
    <title>Template examples</title>
    <link rel="alternate" title="Help:Templates: Template examples" href="http://www.povo.com/Help:Templates#Template_examples" />
    <id>http://www.povo.com/Help:Templates?section=Template_examples</id>
    <published>2008-11-05T11:15:38.1270000-05:00</published>
    <updated>2008-11-05T11:15:38.1270000-05:00</updated>
    <povo:section level="2" />
    <summary type="html" />
    <content type="xhtml"><div xmlns="http://www.w3.org/1999/xhtml">
See some of the most popular templates <a href="/Help:Template_Examples">here</a>.
</div></content>
  </entry>
</feed>