Template:SCBar: Difference between revisions
mNo edit summary |
(+more documentation) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<div class="boilerplate metadata" id="wiki" style="margin: 0.5em; padding: 0.5em; border: 1px solid #AAAAAA; background-color: #F2F2F2; color: black;"> | <noinclude>== Usage== | ||
<div style="text-align: left;"></div>[[File:shortcut.png|text-top|16px|link=]] Shortcuts: [[{{{1}}}]] {{#if: {{{2| | 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: | |||
{{SCBar|name=Testing|Link 1{{!}}First Link|/Link 2{{!}}Link II: The Sequel|#Link 3{{!}}Link the Third}} | |||
You would type the following: | |||
<pre>{{SCBar|name=Testing|Link 1{{!}}First Link|/Link 2{{!}}Link II: The Sequel|#Link 3{{!}}Link the Third}}</pre> | |||
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: | |||
{{SCBar|name=Testing|Link 1|/Link 2|#Link 3}} | |||
You would type the following: | |||
<pre>{{SCBar|name=Testing|Link 1|/Link 2|#Link 3}}</pre> | |||
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= &nbsp; | |||
or just leave the area blank.</noinclude><includeonly><div class="boilerplate metadata" id="wiki" style="margin: 0.5em; padding: 0.5em; border: 1px solid #AAAAAA; background-color: #F2F2F2; color: black;"> | |||
<div style="text-align: left;"></div>[[File:shortcut.png|text-top|16px|link=]] '''{{{name|{{PAGENAME}}}}} Shortcuts''': [[{{{1}}}]] {{#if: {{{2|}}} | '''|''' [[{{{2}}}]]|}} {{#if: {{{3|}}} | '''|''' [[{{{3}}}]]|}} {{#if: {{{4|}}} | '''|''' [[{{{4}}}]]}} {{#if: {{{5|}}} | '''|''' [[{{{5}}}]]}} {{#if: {{{6|}}} | '''|''' [[{{{6}}}]]}} {{#if: {{{7|}}} | '''|''' [[{{{7}}}]]}} {{#if: {{{8|}}} | '''|''' [[{{{8}}}]]}} {{#if: {{{9|}}} | '''|''' [[{{{9}}}]]}}</div></includeonly> |
Latest revision as of 23:00, 14 September 2017
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.