News Guide

From BattleMaster Wiki
Revision as of 14:54, 29 July 2005 by DorianGray (talk | contribs) (basic guide - see talk page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Templates used for News

Major articles

Minor articles

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.

To use a template, you need to first look at the template and see what variables they have. For all article templates, the variables are called title and article. For example, to make a major article, spanning two-thirds of the page, that will appear dominantly on the right side of the page, with title 'Battle in Far East' and the article consisting of 'Today, there was a battle in a southern region of the Far East...' then you would edit that part of the page as such:

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

This will show the following:

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

As you can see, you use double squiggly brackets to open, followed by the template page and a pipe |. From there, you define any variable you want by writing the variable name and and using an equals sign to apply any value (in this case, article or title) you want. You then use pipes after each entry until you reach the last one, where you do not pipe but use double close squiggly brackets. It is not necessary to spread it out one per line, however it makes it easier to come back to and edit later.

As you can see above, major articles are split up into 'large' or 'small'. 'Large' major articles cover approximately two-thirds of the page, and 'small' covers one-third. This is so two large articles can be made side by side, as you would see at the beginning of any news page. There is also 'fullpage', where the article spans the entire page, and 'columns', where there the page is divided into three columns for articles to go in (the names are title_left, title_center, title_right, and the same for articles in this case).

Minor articles have left or right divisions, which are split up to cover half the page each. It is possible in some cases, but not recommended, to try and place major and minor articles side by side, as they are formatted for different widths (50% and 33% increments, for minor and major respectively). The fullpage and columns templates work in the same fashion as their respective major pairs.