News Guide

From BattleMaster Wiki
Revision as of 15:40, 21 June 2007 by Indirik (talk | contribs) (spambot revert)
Jump to navigation Jump to search

Some of you may wish to contribute to one of the 'newspapers' that are available. First off, it is not just as easy as putting the articles in the right spot and clicking 'submit', it takes a bit of fiddling to get the layout right. If you don't think you'll be able to do it properly without messing up, it's probably better you leave your article on the talk page for the issue you want to submit an article for and let someone who knows how to do it correctly put it in for you.

Templates used for News

Major News

Major news templates are the ones for articles you would expect for a front cover of a newspaper. You can tell them apart because they have 'major' in the name of the template. Major templates divide the page into thirds, and each template deals with these columns in certain ways.

Minor News

Minor news templates deal with articles that are not as large or important as major articles. With minor news templates, the page is divided in different ways for each template.

How to write a "Newspaper"

The templates above allow easy creation of "newspaper" pages, if used correctly. To put a page together, you use a number of the templates as shown above.

All the templates have various features. The header template allows you to organise the top of your newspaper, with headings, prices and issue numbers. The major and minor article templates are for determining specific positions within your page. These are further discussed below.

With templates, there are tags for where information should go. The purpose of the template is to allow you to provide this information, without having to mess around with formatting. For example, the section below:

{{Template:News_major_large_right|
title =Battle in Far East|
article =Today, there was a battle in a southern region of the Far East...
}}

Will give the effect shown on the right.

Battle in Far East
Today, there was a battle in a southern region of the Far East...

You use squiggly brackets to begin and end a template section. When in between the brackets, first you name what template you want to use (in the above case, this is Template:News_major_large_right). This is followed by a pipe. A pipe determines where each section ends. Following the template, you start providing the raw data. To find the tags that you need to use, you can click to the template directly and it will show you where the tags are and what they are called. In the above case, the title tag provides the title for the article and the article tag is the article itself. Notice there is no pipe at the end of the last piece of data - it goes straight back to brackets.

Mixing and Matching templates together

Templates usually have an opposite so that the entire page is filled. For example, the Template:News_major_large_right will place that article on the right two-thirds of the page, and Template:News_major_small_left will fill the empty space on the left. It is possible, although not recommended, to mix and match minor and major templates together, as the minor left and right pages are based on 50% rather than 33% divisions, and may cause formatting errors. For example, it would be possible to make a page with a minor left and a small major right template side by side, as 50% + 33% = 83%, and would fit within the margins of the page (although there would be a large blank space down the middle). However, with a large major right template, the sum of the two would equal 116%, which will invariably cause formatting errors.

Templates need not line up 1:1. If you have a single long major article and two smaller major articles, you can use one template to put the long article on one side, then use the opposite template twice so the two smaller articles appear next to the major article, one underneath the other.

See Also