<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wikidot="http://www.wikidot.com/rss-namespace">

	<channel>
		<title>Content Templates</title>
		<link>http://community.wikidot.com/forum/t-1046/content-templates</link>
		<description>Posts in the discussion thread &quot;Content Templates&quot; - Add the ability to template content in addition to entire pages.</description>
				<copyright></copyright>
		<lastBuildDate>Tue, 14 Feb 2012 03:34:09 +0000</lastBuildDate>
		
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2267</guid>
				<title>Re: Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2267</link>
				<description></description>
				<pubDate>Wed, 01 Nov 2006 13:22:46 +0000</pubDate>
				<wikidot:authorName>Goon</wikidot:authorName>				<wikidot:authorUserId>1364</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p> Yeah, with all the bells and whistles - waffles, punch and funny hats … ;-) </p>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2265</guid>
				<title>Re: Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2265</link>
				<description></description>
				<pubDate>Wed, 01 Nov 2006 12:54:21 +0000</pubDate>
				<wikidot:authorName>michal frackowiak</wikidot:authorName>				<wikidot:authorUserId>1</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p> Wikidot users' meeting someday? ;-) </p>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2263</guid>
				<title>Re: Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2263</link>
				<description></description>
				<pubDate>Wed, 01 Nov 2006 12:16:41 +0000</pubDate>
				<wikidot:authorName>Goon</wikidot:authorName>				<wikidot:authorUserId>1364</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p> That's marvellous and works perfectly! Let's celebrate this <em>HERO</em> you talked about. :-) </p>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2234</guid>
				<title>Re: Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2234</link>
				<description></description>
				<pubDate>Tue, 31 Oct 2006 23:26:34 +0000</pubDate>
				<wikidot:authorName>ubivis</wikidot:authorName>				<wikidot:authorUserId>2528</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p>You are my HERO! It works as advertised ;-)</p> <p>I'm just going to put in a bit of an example here for anyone interested, if you want you can just copy and paste it into the doc if you think it's useful (I'm an intermediate user with Wiki's so I could put it all together myself but I know some beginners may be scratching their heads).</p> <p>Okay, to get common layouts and styles (which I will call <strong>content templates</strong>) to work follow these fairly simple steps:</p> <ul> <li>Create a new page with a meaningful name for your content template<br /> Example: <a href="http://yourWiki.WikiDot.com/GlossaryEntry">http://yourWiki.WikiDot.com/GlossaryEntry</a></li> <li>Next populate that page with the content layout and styles that you<br /> want substituting the logical chuncks of content with variables like so:<br /></li> </ul> <div class="code"> <pre> <code>+++ {$acronym} - **{$meaning}** [[div style="widht:500px;position:relative;top:-20px"]] {$definition} [[/div]]</code> </pre></div> <br /> The {$someVar} are the variables. <ul> <li>Save this and GlossaryEntry page should look like this:<br /></li> </ul> <h3><span>{$acronym} - <strong>{$meaning}</strong></span></h3> <div style="widht:500px;position:relative;top:-20px"> <p>{$definition}</p> </div> <br /> Now here comes the real magic. Go to the page where you want<br /> to use your template, in this case it would be your glossary page<br /> <a href="http://yourWiki.wikidot.com/glossary">http://yourWiki.wikidot.com/glossary</a>, and type the following code: <div class="code"> <pre> <code>[[include GlossaryEntry acronym=GUI |meaning=Graphical User Interface |definition=Is a particular case of user interface for interacting with a computer which employs graphical images and widgets in addition to text to represent the information and actions available to the user. [Source: Wikipedia] ]]</code> </pre></div> <p>When you save this and view it, you will see something like:</p> <h3><span>GUI - <strong>Graphical User Interface</strong></span></h3> <div style="widht:500px;position:relative;top:-20px"> <p>Is a particular case of user interface for interacting with a computer which employs graphical images and widgets in addition to text to represent the information and actions available to the user. [Source: Wikipedia]</p> </div> <p>Happy Templating!</p> 
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2220</guid>
				<title>Re: Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2220</link>
				<description></description>
				<pubDate>Tue, 31 Oct 2006 21:49:14 +0000</pubDate>
				<wikidot:authorName>michal frackowiak</wikidot:authorName>				<wikidot:authorUserId>1</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p> Done! :-D </p> <p> <a href="http://www.wikidot.com/doc:wiki-syntax#toc32">http://www.wikidot.com/doc:wiki-syntax#toc32</a> </p> <p> MediaWiki offers some scripting elements but I have found it a bit complicated… What I have implemented is a simple substitution, without any extra options (yet?).<br /> If you have any idea how to improve the [[include]] command (i.e. if there is anything you <span style="text-decoration: underline;">need</span>, because I am trying to implement things that people actually need), just post it here! </p> <p> michal </p> <p> BTW: I really DO care about this project (i.e. Wikidot) and treat it both as a community project and a business project. And I have quit my current job to concentrate on Wikidot ;-) I hope that more and more people can benefit from this! </p>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2206</guid>
				<title>Re: Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2206</link>
				<description></description>
				<pubDate>Tue, 31 Oct 2006 15:14:27 +0000</pubDate>
				<wikidot:authorName>ubivis</wikidot:authorName>				<wikidot:authorUserId>2528</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p> Wow, couple of days! Can't even get that kind of service when you pay for it most of the time ;-) </p>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2142</guid>
				<title>Re: Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2142</link>
				<description></description>
				<pubDate>Mon, 30 Oct 2006 08:18:29 +0000</pubDate>
				<wikidot:authorName>michal frackowiak</wikidot:authorName>				<wikidot:authorUserId>1</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p> Good idea, I was thinking about more or less the same. Unfortunately there is some "naming conflict" - the word "templates" is already used here and means "templates for newly created pages" which can be configured from the Site Manager and by creating pages like template:name-of-template. </p> <p> I think however that I could easily extend the [[include]] tag to take parameters just as you have described. Perhaps the syntax might be a bit different but it should work ~ the same. </p> <p> Ok, I have put it on the <a href="http://www.wikidot.com/working-on">TODO</a> list. Should be ready in a couple of days. </p> <p> regards - michal </p>
				 	]]>
				</content:encoded>							</item>
					<item>
				<guid>http://community.wikidot.com/forum/t-1046#post-2130</guid>
				<title>Content Templates</title>
				<link>http://community.wikidot.com/forum/t-1046/content-templates#post-2130</link>
				<description></description>
				<pubDate>Mon, 30 Oct 2006 02:57:13 +0000</pubDate>
				<wikidot:authorName>ubivis</wikidot:authorName>				<wikidot:authorUserId>2528</wikidot:authorUserId>				<content:encoded>
					<![CDATA[
						 <p> I couldn't find discussions on this so forgive me if it's been brought up already. I think it would be useful to add a feature like in wikimedia where I can create a template for a chunk of a page. </p> <p> Example.<br /> Lets say I want all users of my website to use a consitent<br /> format for creating glossary entries such as: </p> <div style="width:500px;"> <h3> <span>NOI - <strong>Net Operating Income</strong></span> </h3> <div style="widht:500px;position:relative;top:-20px"> <p> Is the gross operating income, less the operating expenses. </p> </div> </div> <p> But I don't want them to have to write the code: </p> <div class="code"> <pre> <code>[[div style="width:500px;"]] +++ NOI - **Net Operating Income** [[div style="widht:500px;position:relative;top:-20px"]] Is the gross operating income, less the operating expenses. [[/div]] [[/div]]</code> </pre> </div> <p> Every time they need to make an entry. Instead I could define a template, and then use it like: </p> <div class="code"> <pre> <code>[template:glossaryEntry |Accronym=NOI |Full_Name=Net Operating Income |Description=Is the gross operating income, less the operating expenses. ]</code> </pre> </div> <p> What do you think? </p>
				 	]]>
				</content:encoded>							</item>
				</channel>
</rss>
