Difference between revisions of "Template:News"
Jump to navigation
Jump to search
m (Tweaks to previous/next date boxes) |
(Remove trailing whitespace below the div.) |
||
(2 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
|- | |- | ||
|style="font-size: 80%; vertical-align: top; width: 150px; white-space: nowrap;"|{{#if:{{{prev|}}}|[[News/{{{prev}}}|< {{{prevperiod|{{{prev}}}}}}]]}} | |style="font-size: 80%; vertical-align: top; width: 150px; white-space: nowrap;"|{{#if:{{{prev|}}}|[[News/{{{prev}}}|< {{{prevperiod|{{{prev}}}}}}]]}} | ||
− | |style="text-align: center; font-size: 120%"|<span style="font-size: 120%">London Hackspace news | + | |style="text-align: center; font-size: 120%"|<span style="font-size: 120%">London Hackspace news<br>'''{{{start}}} – {{{end}}}'''</span> |
|style="font-size: 80%; vertical-align: top; text-align: right; width: 150px; white-space: nowrap;"|{{#if:{{{next|}}}|[[News/{{{next}}}|{{{nextperiod|{{{next}}}}}} >]]}} | |style="font-size: 80%; vertical-align: top; text-align: right; width: 150px; white-space: nowrap;"|{{#if:{{{next|}}}|[[News/{{{next}}}|{{{nextperiod|{{{next}}}}}} >]]}} | ||
|} | |} | ||
− | </div> | + | </div><noinclude> |
− | <noinclude> | ||
__NOEDITSECTION__ | __NOEDITSECTION__ | ||
== Documentation == | == Documentation == | ||
Line 24: | Line 23: | ||
:'''(Optional)''' The date for the previous news report (i.e. the date used in the link). It not specified, no previous link is created. | :'''(Optional)''' The date for the previous news report (i.e. the date used in the link). It not specified, no previous link is created. | ||
;prevperiod | ;prevperiod | ||
− | :'''(Optional)''' The previous report's date range. If not specified, defaults to ''prev''. | + | :'''(Optional)''' The previous report's date range. If not specified, defaults to ''prev''. Specify as, for example, "16th – 30th March 2011". |
;next | ;next | ||
:'''(Optional)''' The date for the next news report (i.e. the date used in the link). It not specified, no next link is created. | :'''(Optional)''' The date for the next news report (i.e. the date used in the link). It not specified, no next link is created. | ||
;nextperiod | ;nextperiod | ||
− | :'''(Optional)''' The next report's date range. If not specified, defaults to ''next''. | + | :'''(Optional)''' The next report's date range. If not specified, defaults to ''next''. Specify as, for example, "14th – 21st April 2011" |
</noinclude> | </noinclude> |
Latest revision as of 09:14, 14 April 2011
London Hackspace news {{{start}}} – {{{end}}} |
Documentation
All arguments are optional, but you should have at least 1 (ideally more). Don't worry about the way it looks on this page: that's purely because no arguments are specified.
Note: if version is set, the project title links to the parent of the page that includes this template.
Arguments
- start
- The start of the period of time which this news report covers, e.g. "31st March"
- end
- The end of the period of time which this news report covers, e.g. "6th April 2011"
- prev
- (Optional) The date for the previous news report (i.e. the date used in the link). It not specified, no previous link is created.
- prevperiod
- (Optional) The previous report's date range. If not specified, defaults to prev. Specify as, for example, "16th – 30th March 2011".
- next
- (Optional) The date for the next news report (i.e. the date used in the link). It not specified, no next link is created.
- nextperiod
- (Optional) The next report's date range. If not specified, defaults to next. Specify as, for example, "14th – 21st April 2011"