Template:WikilogTemplate2: Difference between revisions

The educational technology and digital learning wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template allows to include blog entries from a wikilog (bliki).
This template allows to include blog entries from a wikilog (bliki). It will list all items that you could include with a "Wikilog template".


This template will list all items that you could include in a Wikilog template:
;Sytax of use:
:<nowiki>{{Special:Wikilog/Blog:_blogname_;Template:_Wikilogtemplate2_;5}}</nowiki>


Sytax of use:
;Arguments
:_blogname_ = Name of your Blog, e.g. DKS
:_Wikilogtemplate_ = Name of the template, e.g. BlikiTitlePageTemplate
:5 = number of items to display


<nowiki>Special:Wikilog/Blog:blogname;Template:Wikilogtemplate;5</nowiki>
;Additional hints
 
: You can use the <nowiki><summary>...</summary></nowiki> to define what goes into the body of the entry. By default (as of v. 0.7.0) this extension will take all text before a title "==...==" or else the full text.
:blogname = Name of your Blog
: In my Wiki (MW 1.14), using this template after titles will include extra gibberish in the rendering of titles and the TOC. So use it before or use HTML tags. (this seems to be a little bug)
:Wikilogtemplate = Name of the template
: Install this template for testing :)
:5 = number of items to display


The template "includeonly" code has been defined as follows (look at the source):
The template "includeonly" code has been defined as follows (look at the source):
Line 31: Line 34:
<hr />
<hr />
</pre>
</pre>
[[Category:Templates]]
</noinclude><includeonly>
</noinclude><includeonly>
<hr />
<hr />

Latest revision as of 15:59, 11 July 2009

This template allows to include blog entries from a wikilog (bliki). It will list all items that you could include with a "Wikilog template".

Sytax of use
{{Special:Wikilog/Blog:_blogname_;Template:_Wikilogtemplate2_;5}}
Arguments
_blogname_ = Name of your Blog, e.g. DKS
_Wikilogtemplate_ = Name of the template, e.g. BlikiTitlePageTemplate
5 = number of items to display
Additional hints
You can use the <summary>...</summary> to define what goes into the body of the entry. By default (as of v. 0.7.0) this extension will take all text before a title "==...==" or else the full text.
In my Wiki (MW 1.14), using this template after titles will include extra gibberish in the rendering of titles and the TOC. So use it before or use HTML tags. (this seems to be a little bug)
Install this template for testing :)

The template "includeonly" code has been defined as follows (look at the source):

[[{{{page}}}|'''{{{title}}}''']]
<ul>
	<li>'class' = {{{class}}}</li>
	<li>'wikilogTitle' = {{{wikilogTitle}}}</li> 
	<li>'wikilogPage' = {{{wikilogPage}}}</li>  
	<li>'title' = {{{title}}}</li>
	<li>'page' = {{{page}}}</li>
	<li>'authors' = {{{authors}}}</li>
	<li>'tags' = {{{tags}}}</li>
	<li>'published' = {{{published}}}</li>
	<li>'pubdate' = {{{pubdate}}}</li>
	<li>'updated' = {{{updated}}}</li>
	<li>'summary' = {{{summary}}}</li>
	<li>'comments' = {{{comments}}}</li>
</ul>
<hr />