Template:News: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<div style="border:1px dotted gray;border-radius:5px;padding:2px 5px;font-size:90%;margin-bottom: | <includeonly><div style="border:1px dotted gray;border-radius:5px;padding:2px 5px;font-size:90%;margin-bottom:5px;"> | ||
<span style="float:right;margin-left:5px;"><small>{{{date}}}</small></span> | {{#if: {{{date|}}} | <span style="float:right;margin-left:5px;"><small>{{{date}}}</small></span> }} | ||
<span style="font-size:120%;">'''{{{title}}}'''</span> | {{#if: {{{title|}}} | <span style="font-size:120%;">'''{{{title}}}'''</span> }} | ||
<div style="margin-left:10px;">{{{content}}}</div> | {{#if: {{{content|}}} | <div style="margin-left:10px;">{{{content}}}</div> }} | ||
</div> | </div></includeonly><noinclude> | ||
< | ==What's This Template For?== | ||
Use this template for adding nicely formatted news entries to the Main Page | |||
==Instructions== | |||
Copy this code: | |||
<pre>{{News | |||
title=[your news item title] | |||
date=[the date] | |||
content=[whatever you want to write] | |||
}} | |||
</pre> | |||
If you want to leave any field '''blank''', you should just leave the field blank, but remember to write "date=" or "content=". | |||
If you're having trouble making line breaks show nicely, consider using these tags for line-breaks instead: <pre><br></pre> | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Latest revision as of 23:46, 6 April 2014
What's This Template For?
Use this template for adding nicely formatted news entries to the Main Page
Instructions
Copy this code:
{{News title=[your news item title] date=[the date] content=[whatever you want to write] }}
If you want to leave any field blank, you should just leave the field blank, but remember to write "date=" or "content=".
If you're having trouble making line breaks show nicely, consider using these tags for line-breaks instead:
<br>