Template:Blog
From ErfWiki
(Difference between revisions)
(Make it possible to display Blog links as inline text rather than only as citations) |
(syntax error fix) |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
| - | {{#ifeq {{{inline|no}}} | yes | | <sup class="plainlinks">}} | + | {{#ifeq: {{{inline|no}}} | yes | | <sup class="plainlinks">}} |
[http://www.erfworld.com/{{{1}}}/{{{2}}}/{{{3}}} <span title="Blog Entry {{{3}}}, {{{2}}}/{{{1}}}">{{{4|{{{3}}} }}}</span>] | [http://www.erfworld.com/{{{1}}}/{{{2}}}/{{{3}}} <span title="Blog Entry {{{3}}}, {{{2}}}/{{{1}}}">{{{4|{{{3}}} }}}</span>] | ||
| - | {{#ifeq {{{inline|no}}} | yes | | </sup>}} | + | {{#ifeq: {{{inline|no}}} | yes | | </sup>}} |
</includeonly> | </includeonly> | ||
<noinclude>{{{{PAGENAME}}/doc}}</noinclude> | <noinclude>{{{{PAGENAME}}/doc}}</noinclude> | ||
Revision as of 08:44, 2 April 2010
Documentation is at Template:Blog/doc. edit
For references to the Erfworld Blog.
Usage
As a citation: {{blog|year|month|title}}.
As an inline link: {{blog|year|month|title|display-text|inline=yes}}
Example
{{blog|2009|08|summer-updates-025}} would display summer-updates-025
.
{{blog|2009|08|summer-updates-025|This is an example|inline=yes}} would display This is an example
.
For references with 4 components ( e.g. http://www.erfworld.com/2009/10/page/9/ ), use Template Blog2.