Information icon.png The FamilySearch Research Wiki will be down for maintenance on Sunday, Sept. 27, at 11:59 pm until Monday, Sept 28, 4:00 am EDT.

Help:Wiki University Wikitext--Sidebars

From FamilySearch Wiki
Jump to navigation Jump to search

Lessons


Intermediate


Advanced


Flexbox


Additional Helps

What is a sidebar[edit | edit source]

  • The list of chapters to the left is a sidebar.
  • Sidebars contain a quick list of links to other pages that go into detail on the subject selected.
  • A place where you can navigate to the other pages without having to search for them.
  • Like infoboxes, sidebars are templates with a special use.

How sidebars differ from infoboxes[edit | edit source]

  • They are usually saved on the left side of the page as opposed to the right for infoboxes.
  • They usually contain a list of clickable links (internal or external), as you see, on the sidebar to the left.
  • They sometimes have a place to add announcements or additional information of interest.
  • They are floated to the left so text and other material may float alongside on the right.

How to create a sidebar[edit | edit source]

  • Sidebars are templates and created in the same manner.
  • If the sidebar only contains a list of links, using list format will do in most cases.

Adding News and Events[edit | edit source]

  • Sometimes these sidebars allow for announcements or additional information to be added and edited.
  • To add information to sidebars, we use our parameter coding.

Let's create a sidebar with the ability to add announcements and we will format it with a one column table:

News and Events
News and Events
Topics
  • Topic one
  • Topic two
Did You Know?
{{{items of interest}}}

Here is the coding; it should look familiar:

{| style="width:150px; background-color:#F4F1FB; border:1px solid gray; float:left"
|-
|style="width:140px; text-align:center; background-color:#E6E6FF" | <center>News and Events</center>
|-
| {{{news and events|News and Events}}}
|-
|style="width:140px; text-align:center; background-color:#E6E6FF" | <center>Topics</center>
|-
|
*Topic one
*Topic two
*
*
*
|-
|style="width:140px; text-align:center; background-color:#E6E6FF" | <center> Did You Know?</center>
|-
| {{{items of interest}}}
|}

Saving the sidebar[edit | edit source]

To save the sidebar template, use the word "sidebar" somewhere in the title like so:

template:Events sidebar

CAUTION: When doing your sidebar exercise, be sure to adhere to the restrictions for saving a template when saving your work. See sample below and refer to Ch 13-Templates.

Template:User:your username/sandbox/Events sidebar

Placing the sidebar[edit | edit source]

  • It is placed or embedded just like any other template.
  • If there are any parameters, they need to be included in the coding for the template; in this case the parameters News and Events and Additional Information.
  • The normal placement coding for a saved sidebar template is:
{{Events sidebar

| News and Events =
| Additional Information =

}}
  • NOTE: When doing your sidebar exercise, place the sidebar template into your sandbox with the following code:
{{User:your username/sandbox/Events sidebar

| News and Events =
| Additional Information =

}}

Try these out[edit | edit source]

Tests.gif
Exercises

Here is an existing infobox. Copy and paste this coding in your sandbox and fill out the information for the county you were born in:

  • This an existing infobox for US Counties. You will not need the brackets or the word "File" placed in the required image.

{{Infobox U.S. County
| county =
| county_map =
| state =
| state_map =
| founded year =
| founded date =
| seat wl =
}}


Quick Quiz
  • Once the information after the equal signs is entered and saved, there is no changing the parameters.
A. True
B. False
  • Infoboxes can only be used on county pages.
A. True
B. False
  • Infoboxes are limited just to genealogical organizations.
A. True
B. False
https://paas-loadb-dhtaff8ujtdt-1826058300.us-east-1.elb.amazonaws.com/wiki/en/Help:Wiki_University_Wikitext--Sidebars
paas-loadb-dhtaff8ujtdt-1826058300.us-east-1.elb.amazonaws.com
crawl=CC-MAIN-2020-40
68793
application/http; msgtype=response
sha1:UAUFE6ZTQDKQ6EDE4M7MIE3CQK4MJX5L
<urn:uuid:a3aab017-97cb-4fc8-914d-95beb5b04782>
2020-09-23T23:41:09Z
34.239.204.175
text/html
sha1:E6OD64VQ5WAKNVRIXJRT2UOWDEMDF2PE
<urn:uuid:8254d96a-2902-4873-86b1-08695da595c2>
https://paas-loadb-dhtaff8ujtdt-1826058300.us-east-1.elb.amazonaws.com/wiki/en/Help:Wiki_University_Wikitext--Sidebars
response
<urn:uuid:34c9ae25-14a2-416e-93a9-5b4864f24d10>
isPartOf: CC-MAIN-2020-40
publisher: Common Crawl
description: Wide crawl of the web for September 2020
operator: Common Crawl Admin (info@commoncrawl.org)
hostname: ip-10-67-67-115.ec2.internal
software: Apache Nutch 1.17 (modified, https://github.com/commoncrawl/nutch/)
robots: checked via crawler-commons 1.2-SNAPSHOT (https://github.com/crawler-commons/crawler-commons)
format: WARC File Format 1.1
conformsTo: http://iipc.github.io/warc-specifications/specifications/warc-format/warc-1.1/