Difference between revisions of "Template:DDNews2"

From BattleMaster Wiki
Jump to navigation Jump to search
m (new two column template)
 
m
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><table width="100%" style="background-color: #FFFFFF; margin-bottom: 24px" cellspacing="0">
+
<includeonly><table width="100%" style="background-color: #FFFFFF; margin-bottom: 5px" cellspacing="0">
<tr>
+
<tr><td width="70%" style="font-weight: bold; padding: 4px 4px 4px 4px; border-top: 1px solid #DDDDDD; border-right: 0px none #DDDDDD; border-left: 1px solid #DDDDDD; border-bottom: 0px none #DDDDDD; background-color: #FBFBFC; font-size:160%;">{{{title}}}</td><td width="30%" colspan="2" style="font-size:87%; text-align: right; padding: 4px 4px 4px 4px; border-top: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; border-left: 0px none #DDDDDD; border-bottom: 0px none #DDDDDD;">{{{month}}} {{{day}}}, {{{year}}}</td></tr>
<td colspan="2" style="font-weight: bold; padding: 10px 6px 10px 12px; border-top: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; border-bottom: 0px none #DDDDDD; background-color: #FBFBFC"><div style="font-size:160%; float:left; width: 80%">{{{title}}}</div><div style="font-size:87%; width: 20%; text-align: right; float:right">{{{date}}}</div></td>
+
<tr><td colspan="3" width="100%" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; padding: 4px 4px 4px 4px; text-align: justify;"><table width="100%" border="0" cellspacing="0"><tr><td width="50%" valign="top" style="padding-right: 8px; border-right: 1px solid #DDDDDD; text-align: justify;">{{{article}}}</td><td width="50%" valign="top" style="padding-left: 8px; border-left: 1px solid #DDDDDD; text-align: justify;">{{{article_right}}}</td></tr></table></td></tr><tr><td width="70%" style="font-size: 90%; padding-left: 4px; border-right: 0px none #DDDDDD; border-left: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD; font-size:87%; text-align: left;">[[Talk:{{#titleparts: {{PAGENAME}} | 1 | 1 }}/{{{year}}}/{{{month}}}/{{{day}}}|Comment on this story.]]</td><td align="right" width="29%" style="font-size:87%; text-align: right; border-right: 0px none #DDDDDD; border-left: 0px none #DDDDDD; border-bottom: 1px solid #DDDDDD;">''by {{{author|Anonymous}}}&nbsp;''</td><td align="right" width="1%" style="padding-right: 4px; font-size:87%; text-align: right; border-right: 1px solid #DDDDDD; border-left: 0px none #DDDDDD; border-bottom: 1px solid #DDDDDD;">{{:Template:DDNews/{{{realm|Anonymous}}}}}</td></tr></table>[[Category:{{#titleparts: {{PAGENAME}} | 1 | 1 }}|{{{year}}}/{{Numerical Months/{{{month}}}}}]]</includeonly>
</tr>
+
<noinclude>
<tr>
 
<td width="50%" valign="top" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; padding: 2px 4px 2px 4px;"><div align="justify">{{{article}}}</div></td>
 
<td width="50%" valign="top" style="border-left: 1px solid #DDDDDD; border-right: 1px solid #DDDDDD; padding: 2px 4px 2px 4px; "><div align="justify">{{{article_right}}}</div></td>
 
</tr>
 
<tr>
 
<td colspan="2" style="font-size: 90%; text-align: right; padding-right: 20px; border-right: 1px solid #DDDDDD; border-left: 1px solid #DDDDDD; border-bottom: 1px solid #DDDDDD;">''by [[Dwilight Daily/Writers|{{{author}}}]]'', [[Image:{{{icon}}}]]</td>
 
</tr>
 
</table>
 
</includeonly><noinclude>
 
 
__NOTOC__
 
__NOTOC__
 +
==Intro==
 +
Two column newspaper article. See [[Template:DDNews]] for more details.
 +
 
== Usage ==
 
== Usage ==
 
'''All parameters, vertical format'''
 
'''All parameters, vertical format'''
 
<pre>{{DDNews2
 
<pre>{{DDNews2
|date =  
+
|month =
 +
|day =
 +
|year =  
 
|title =  
 
|title =  
 
|article =  
 
|article =  
 
|article_right =  
 
|article_right =  
 
|author =  
 
|author =  
|icon =  
+
|realm =  
 
}}</pre>
 
}}</pre>
*'''date''' is conventionally written as ''January 11th'', month preceding date.
+
*'''month''' is the month in which the article appears.
 +
*'''day''' is the day of the month on which the article appears
 +
*'''year''' is the year in which the article appears
 
*'''title''' should be concise and fitting into one line
 
*'''title''' should be concise and fitting into one line
*'''article''' the left column, to separate lines, remember to use <nowiki><br><br></nowiki>. Try to balance the columns.
+
*'''article''' to separate lines, remember to use <nowiki><br><br></nowiki>.
*'''article_right''' the right column, to separate lines, remember to use <nowiki><br><br></nowiki>. Try to balance the columns.
+
*'''article_right''' to separate lines, remember to use <nowiki><br><br></nowiki>.
 
*'''author''' Use the name of the character that is doing the reporting. A link will be made back to the DD Writer's page. You should put a link on the [[Dwilight Daily/Writers|Writers]] page with your name, family name, and a link back to your realm.
 
*'''author''' Use the name of the character that is doing the reporting. A link will be made back to the DD Writer's page. You should put a link on the [[Dwilight Daily/Writers|Writers]] page with your name, family name, and a link back to your realm.
*'''icon''' The file name of your realm's icon. Only the file name, not the "Image:" part. If your realm does not have an icon uploaded yet, you will need to upload one, or have someone else do it for you.
+
*'''realm''' The full name of the realm. Used to get the realm icon. Capitalization counts!
''Based largely on the [[Atamaran Advocate]]'s templates.
+
===Realm Icon Subpages===
 +
* See [[Template:DDNews]] for additional information.
 +
 
 +
''Based loosely on the [[Atamaran Advocate]]'s templates.
  
 
== Example ==
 
== Example ==
 
{{DDNews2
 
{{DDNews2
|date = September 6, 2007
+
|month = October
 +
|day = 12
 +
|year = 2007
 
|title = Test article
 
|title = Test article
 
|article = This is a test article. Bloggity, bloggity, blog. This is the left column of a two-column article.
 
|article = This is a test article. Bloggity, bloggity, blog. This is the left column of a two-column article.
 
|article_right = This is a test article. Bloggity, bloggity, blog. This is the right column of a two-column article.
 
|article_right = This is a test article. Bloggity, bloggity, blog. This is the right column of a two-column article.
 
|author = Danost Indirik
 
|author = Danost Indirik
|icon = Pains Icon Indirik.png
+
|realm = DD_OOC
 
}}
 
}}
</noinclude>
+
[[Category:Dwilight Daily]]</noinclude>

Latest revision as of 22:25, 25 June 2009


Intro

Two column newspaper article. See Template:DDNews for more details.

Usage

All parameters, vertical format

{{DDNews2
|month = 
|day =
|year = 
|title = 
|article = 
|article_right = 
|author = 
|realm = 
}}
  • month is the month in which the article appears.
  • day is the day of the month on which the article appears
  • year is the year in which the article appears
  • title should be concise and fitting into one line
  • article to separate lines, remember to use <br><br>.
  • article_right to separate lines, remember to use <br><br>.
  • author Use the name of the character that is doing the reporting. A link will be made back to the DD Writer's page. You should put a link on the Writers page with your name, family name, and a link back to your realm.
  • realm The full name of the realm. Used to get the realm icon. Capitalization counts!

Realm Icon Subpages

Based loosely on the Atamaran Advocate's templates.

Example

Test articleOctober 12, 2007
This is a test article. Bloggity, bloggity, blog. This is the left column of a two-column article.This is a test article. Bloggity, bloggity, blog. This is the right column of a two-column article.
Comment on this story.by Danost Indirik