Template:WikilogTemplate2: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(9 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". | ||
;Sytax of use: | |||
:<nowiki>{{Special:Wikilog/Blog:_blogname_;Template:_Wikilogtemplate2_;5}}</nowiki> | |||
;Arguments | |||
:_blogname_ = Name of your Blog, e.g. DKS | |||
:_Wikilogtemplate_ = Name of the template, e.g. BlikiTitlePageTemplate | |||
:5 = number of items to display | |||
<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. | |||
: 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): | |||
<pre> | |||
[[{{{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 /> | |||
</pre> | |||
[[Category:Templates]] | |||
</noinclude><includeonly> | </noinclude><includeonly> | ||
<hr /> | |||
[[{{{page}}}|'''{{{title}}}''']] | |||
<ul> | <ul> | ||
<li>'class' = {{{class}}}</li> | <li>'class' = {{{class}}}</li> | ||
Line 26: | Line 51: | ||
<li>'summary' = {{{summary}}}</li> | <li>'summary' = {{{summary}}}</li> | ||
<li>'comments' = {{{comments}}}</li> | <li>'comments' = {{{comments}}}</li> | ||
</ul></includeonly> | </ul> | ||
<hr /> | |||
</includeonly> |
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 />