Help:SidebarEdit This Page

From FamilySearch Wiki

Contents

What is a sidebar

Sidebar is a term that refers to various forms of information that is displayed in a box, with or without borders, to the side of an article. You can display text, images, widgets, etc. in them. They behave just like a template, see: Help:Templates.

What is the purpose of sidebars?

The purpose of the sidebars is to isolate the material in it from any changes in the main article that might affect the location or arrangement of the material in the sidebar.

What are the advantages of sidebars?

It has the advantage of being updatable without having to go to each of the articles where the sidebar may appear. This very important if you have a particular sidebar on many pages. You simply go to the sidebar article and make whatever changes you want. Then, when someone goes to any of the pages where the sidebar appears, they will see the updated material. Again, this material will appear on all the articles where the sidebar is embedded.

IMPORTANT: Now, if you want to put the same sidebar in a number of articles, but may want to edit them separately on the various articles it is embedded, then you will have to create a separate sidebar with its own name for each article. Otherwise if you have the same on many pages you will change them all if you make a change to the sidebar.

How to create a sidebar

Probably the easiest way to create sidebars is to do so in the wikitext editor using "div" tags. For example: <div>text</div>. But to control the width and the location of the sidebar you must include the width and its desired location on the page.

This is an example for setting the width and location of the sidebar: <div style=”width:25%; float:left;”>text</div>. In this example, the width is set to 25% of the total page width and the sidebar is to float on the left side of the article and will do so on the page where you want it. Click here to see the coding for the Template:Example-sidebar on this page.

  • Note the code: {{Sidebar-div}} at the top of the code. This allows for the text to wrap around the sidebar.
  • Please note: The headers cannot be <h1> or <h2>. They must be <h3> or higher in value for the material to wrap around the sidebar.
  • If you don't use {{Sidebar-div}}, you will have to set the width of the rest of the material on the page.

If you want to keep the large headers, you must set a width to the material in the article itself. Otherwise the material in the article into which you imbedded the sidebar will be pushed down the page below the sidebar.

To control the width of the material to the side of the sidebar, you can use <div> tags. You can enclose all the material just like was done with the sidebar. Example: <div style="width:74%; float:right;">article material</div>. Notice that you need to put in the float:right so the material will appear at the top of the page instead of remaining below the sidebar.

In addition make sure that the width of the sidebar and the width of the article adds up to 99%, not 100%. This give a little room if their are spacing problems in the text.

How to embed a sidebar

Type the following: {{Name of sidebar-sidebar}} where you want the sidebar to appear. It can be placed anywhere on the page. It will begin where you place it. So, if you put it at the top, it will appear at the top. If you place it half way down the page, it appear somewhere in the middle of the article.

How to edit a sidebar

  • Sometimes article sidebars are programmed so you can add text such as announcements of meetings and/or news events.
  • First Click the "Edit This Page"
  • Click on "Wikitext"
  • In Wikitext, look for coding such as:

{{Name of Sidebar-sidebar
|news=
|info=
}}

  • Many times, there is text already in the place where you want to add text. If the text you see on the sidebar on the article does not show up when you click "Edit This Page," it is part of the sidebar template and when you add your announcement that text will disappear.
  • If the text on the sidebar appears in the edit box, you can change or add to it.
  • Add your item after the equal sign in "news=" or "info=", etc.
  • Example: |news=Genealogical meeting will start at 7pm next Thursday. Your text will appear in the main article on the sidebar. Again whatever text was in the place you put your edit will disappear.
  • Otherwise to edit a sidebar, you treat it just like a regular article. Click on the "Edit This Page" button on the sidebar page and make whatever changes you want just as you do on any article in the Wiki.
  • To access the sidebar to edit, you can type in the search box "Template:Name of the Sidebar-sidebar."

How to Add to "News and Events"

  • On the article where the sidebar appears, click on "Edit This Page" button.
  • In the Wikitext editor of the article, look for news= with its equal sign inside the braces surrounding the sidebar. The sidebar coding could be anywhere on the page.
  • After "news=" type the announcement. Example:

|news=Genealogical meeting will start at 7pm next Thursday

  • Do not leave off the pipe | before the word news.

How to Edit or Add to "Topics"

To add to or subtract items in the Topic section, you need to go to the individual county templates to make changes.

  • Click on "Edit This Button" on the page you want to edit the sidebar.
  • At the bottom of the edit page, look for "Template:name of sidebar (edit)."
  • Click on that link and it will take you to the sidebar so you can edit it.

How to Add to "Did You Know"

  • On the article where the sidebar appears, click on "Edit This Page" button.
  • In the Wikitext editor of the article, look for info= with its equal sign inside the braces surrounding the sidebar. The sidebar coding could be anywhere on the page.
  • After "info=" type the did you know item. Example:

|info=The History of Utah

  • Do not leave off the pipe | before the word info.
  • This page was last modified on 2 August 2014, at 18:09.
  • This page has been accessed 3,734 times.
http://familysearch.org/learn/wiki/en/Help:Sidebar
familysearch.org
crawl=CC-MAIN-2015-35
53789
application/http; msgtype=response
sha1:GDQQ4XUPHIYW5HWJP3GVHYWZXNQVTHFM
<urn:uuid:ce01f067-edd5-4bb3-a9a6-429ba0dea867>
2015-08-28T14:32:17Z
204.9.224.11
sha1:MWZV7KWZ7B7PT7MW7PZDWOV4IAVQWPHB
<urn:uuid:55f5e324-e57e-4359-a293-5daf1a57d433>
http://familysearch.org/learn/wiki/en/Help:Sidebar
response
<urn:uuid:335651e9-695d-460f-b88a-219df778115a>
robots: classic
hostname: ip-10-171-96-226.ec2.internal
software: Nutch 1.6 (CC)/CC WarcExport 1.0
isPartOf: CC-MAIN-2015-35
operator: CommonCrawl Admin
description: Wide crawl of the web for August 2015
publisher: CommonCrawl
format: WARC File Format 1.0
conformsTo: http://bibnum.bnf.fr/WARC/WARC_ISO_28500_version1_latestdraft.pdf