Template:US-sidebar: Difference between revisions
(Created page with '<div style="float: left; width: 24%"> {| class="FCK__ShowTableBorders" border="0" |- | style="font-size: 85%; background: rgb(238,238,238); color: rgb(51,51,51); font-family: ver…') |
(tweak template) |
||
Line 4: | Line 4: | ||
| style="font-size: 85%; background: rgb(238,238,238); color: rgb(51,51,51); font-family: verdana; text-align: center; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"| '''News & Events''' | | style="font-size: 85%; background: rgb(238,238,238); color: rgb(51,51,51); font-family: verdana; text-align: center; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial"| '''News & Events''' | ||
|- | |- | ||
| style="background: rgb(250, 245, 255) none repeat scroll 0% 0%; font-size: | | style="background: rgb(250, 245, 255) none repeat scroll 0% 0%; font-size: 85%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: verdana; text-align: left;" |{{{news| | ||
* Add news items | * Add news items | ||
}}} | }}} | ||
Line 35: | Line 35: | ||
*[[{{PAGENAME}} Obituaries|Obituaries]] | *[[{{PAGENAME}} Obituaries|Obituaries]] | ||
*[[{{PAGENAME}} Occupations|Occupations]] | *[[{{PAGENAME}} Occupations|Occupations]] | ||
*[[{{PAGENAME}} Periodicals|Periodicals]] | *[[{{PAGENAME}} Periodicals|Periodicals]] | ||
*[[{{PAGENAME}} Probate Records|Probate Records]] | *[[{{PAGENAME}} Probate Records|Probate Records]] | ||
Line 44: | Line 43: | ||
| style="font-size: 85%; background: rgb(238,238,238); color: rgb(51,51,51); font-family: verdana; text-align: center; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" | '''Did You Know?''' | | style="font-size: 85%; background: rgb(238,238,238); color: rgb(51,51,51); font-family: verdana; text-align: center; moz-background-clip: -moz-initial; moz-background-origin: -moz-initial; moz-background-inline-policy: -moz-initial" | '''Did You Know?''' | ||
|- | |- | ||
| style="background: rgb(250, 245, 255) none repeat scroll 0% 0%; font-size: | | style="background: rgb(250, 245, 255) none repeat scroll 0% 0%; font-size: 85%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; font-family: verdana; text-align: left;" |{{{info| | ||
* Add information | * Add information | ||
}}} | }}} | ||
Line 56: | Line 55: | ||
== Usage== | == Usage== | ||
To use this template insert the code {{tl| | To use this template insert the code {{tl|US-sidebar}} at the top of an article. This will produce a sidebar menu with 3 sections, '''News & Events''', '''Topics''' and '''Did You Know'''. | ||
The '''Topics''' section will list a number of articles as defined by this template. The article links for each will be prefixed by the name of the page in which the sidebar is inserted, although this prefix will not be shown in the listing. | The '''Topics''' section will list a number of articles as defined by this template. The article links for each will be prefixed by the name of the page in which the sidebar is inserted, although this prefix will not be shown in the listing. | ||
Line 74: | Line 73: | ||
|} | |} | ||
[[Category: | [[Category:Sidebar templates|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Revision as of 16:06, 12 December 2009
Purpose[edit source]
To easily add and maintain a sidebar with links to standard pages for an article about a place in the United States.
Usage[edit source]
To use this template insert the code {{US-sidebar}} at the top of an article. This will produce a sidebar menu with 3 sections, News & Events, Topics and Did You Know.
The Topics section will list a number of articles as defined by this template. The article links for each will be prefixed by the name of the page in which the sidebar is inserted, although this prefix will not be shown in the listing.
The other two boxes can be configured for each specific page. Two parameters are set-up to allow this; news and info. If not defined the default text as shown below will be shown.
Field Name | Usage | Description |
---|---|---|
news | optional | Add items to the News & Events box Default
|
info | optional | Add items to the Did You Know box Default
|