<b:section id='header' class='header' maxwidgets="1" showaddelement="no">
</b:section>
<b:widget id="header" type='HeaderView' locked="yes"/>
<b:widget id="myList" type='ListView' locked="no" title="My Favorite Things"/>
tag can have the following attributes.Attribute | Required? | Description |
id | Required | A unique name, with letters and numbers only. An ID serves as the unique identifier for a section. |
class | Optional | Common class names are 'navbar,' 'header,' 'main,' 'sidebar,' and 'footer.' If you switch templates later, these names help Blogger determine how best to transfer over your content. However, you can use different names, if you like. |
maxwidgets | Optional | The maximum number of widgets to allow in this section. If you don't specify a limit, there won't be one. |
showaddelement | Optional | Can be 'yes' or 'no,' with 'yes' as the default. This determines whether the Page Elements tab will show the 'Add a Page Element' link in this section. |
growth | Optional | Can be 'horizontal' or 'vertical,' with 'vertical' as the default. This determines whether widgets within this section are arranged side-by-side or stacked. |
Attribute | Required? | Description |
id | Required | May contain letters and numbers only, and each widget ID in your template should be unique. A widget's ID cannot be changed without deleting the widget and creating a new one. |
type | Required | Should be one of the valid widget types listed in the list below this table. |
locked | Optional | Can be 'yes' or 'no,' with 'no' as the default. A locked widget cannot be moved or deleted from the Page Elements tab. |
title | Optional | A display title for the widget. If none is specified, a default title such as 'List1' will be concocted for you. |
pageType | Optional | Can be 'all,' 'archive,' 'main,' or 'item,' with 'all' as the default. The widget will display only on the designated pages of your blog. All widgets display on the Page Elements tab, regardless of their pageType. |
<b:includable id='main' var='thiswidget'>
<!-- Contents of Includable -->
</b:includable>
<b:include name='name-of-includable' />
<b:include name='name-of-includable' data='argument-of-includable'/>
Attribute | Required? | Description |
id | Required | A identifier unique within the template consisting of letters and numbers. Each widget must have one includable with id='main' as the entry point to perform the widget's task.The main includable will usually contain most or all of the content that will display for this widget, and in many cases it will be all you need. |
var | Optional | An identifier made up of letters and numbers, for referencing data made available by Blogger through the data tag. |
Attribute | Required? | Description |
name | Required | ID of the includable to call. The includable must have been declared within the same widget. |
data | Optional | An argument to pass to the includable being called. This will become the value of the var attribute in the includable. The argument may be an expression or data made available by Blogger through the data tag. |
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
<head>
<title><data:blog.pageTitle/></title>
<b:skin><![CDATA[/*
<!-- SKIN CONTENTS -->
]]></b:skin>
</head>
<body>
<!-- BODY CONTENTS -->
</body>
</html>
<b:if cond='condition'>
<!-- content to display if condition is true -->
<b:else/>
<!-- content to display if condition is false -->
</b:if>
<b:if cond='data:post.showBacklinks'> True if the current post is set to show backlinks.
<b:if cond='data:blog.pageType == "item"'> True if the current page is an item page (post page).
<b:if cond='data:displayname != "Fred"'> True if this is not Fred's display name.
<b:if cond='data:post.numComments > 1'> True if the current post has more than one comment.
<b:loop var='loop-variable' values='iteration-list'>
<!-- repeated content -->
</b:loop>
Attribute value | Required? | Description |
loop_variable | Required | Can be any alphanumeric name. It will be used as the handle to each member of the iteration list. |
iteration_list | Required | The handle to data containing multiple members over which the loop is to iterate. Any of the data handles in the list of data handles. |
<data:data-namespace/>