Difference between revisions of "Template:News"
Jump to navigation
Jump to search
m |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div style="border:1px dotted gray;border-radius:5px;padding:2px 5px;font-size:90%;margin-bottom:5px;"> |
<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></includeonly><noinclude> |
</div></includeonly><noinclude> |
||
==What's This Template For?== |
==What's This Template For?== |
Latest revision as of 01:46, 7 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>