Template:SCBar

From FrathWiki
(Redirected from Template:Scbar)
Jump to navigationJump to search

Usage

This template can be used to create a bar on a given page that provides shortcuts to related pages and/or important sections of the page on which it is used. While the usage is not the most straight-forward due to my limited knowledge in the area... it can be used to make a pretty simple bar for up to (currently) 9 links. If fewer than 9 are provided, only those that exist will be shown.

Syntax

In order to have this:

You would type the following:

{{SCBar|name=Testing|Link 1{{!}}First Link|/Link 2{{!}}Link II: The Sequel|#Link 3{{!}}Link the Third}}

Notice that the first links to another page, the second would link to a Sub-Page and the third would link to a section of the page on which this template is placed. (Please note that none of the examples link to existing places, hence the red-links. Should extant pages be supplied, they would link normally.) Also, the ! Template must be used as shown above in order for the template to function properly and allow each link to be specified an alternate string to be shown in the bar. However, if one does not need a string to appear that is in anyway different from the actual link, then that portion of the code could be omitted. Below will be an example of that syntax and how it would appear.

In order to have this:

You would type the following:

{{SCBar|name=Testing|Link 1|/Link 2|#Link 3}}

Also, the "name" parameter can be omitted as well. In that case, it will supply the Pagename. Should it be desired to have no name, one could add:

name=  

or just leave the area blank.