TB Wiki Style Guide for Content Developers: Difference between revisions
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:TB Wiki Content Development Guidelines}} | {{DISPLAYTITLE:TB Wiki Content Development Guidelines}} | ||
__NOTOC__ | |||
=General= | =General= | ||
| Line 8: | Line 8: | ||
=Header Tabs= | =Header Tabs= | ||
[[Image:TbWikiStyle1.png]] | [[Image:TbWikiStyle1.png]] | ||
To create a page with tabbed content, do the following: | To create a page with tabbed content, do the following: | ||
| Line 15: | Line 14: | ||
* For every tab header, use one equal sign before and after the header name. Then enter your content. '''Do not use == or === for lower level headers.''' | * For every tab header, use one equal sign before and after the header name. Then enter your content. '''Do not use == or === for lower level headers.''' | ||
* To make tabbed headers work, at the end of the article enter <pre><headertabs/></pre> | * To make tabbed headers work, at the end of the article enter <pre><headertabs/></pre> | ||
* If you want to return the user to a tab on another page, and have a specific tab highlighted, enter <pre>{{#switchtablink:<tab name>|<Link text>|<Page Name}} | * If you want to return the user to a tab on another page, and have a specific tab highlighted, enter | ||
<pre>{{#switchtablink:<tab name>|<Link text>|<Page Name}} | |||
as in | as in | ||
{{#switchtablink:System|Return to Web Portal 3.1 Home Page|Sbc_Tutorial_Guide_v3.1}}</pre> | {{#switchtablink:System|Return to Web Portal 3.1 Home Page|Sbc_Tutorial_Guide_v3.1}}</pre> | ||
Revision as of 11:34, 22 December 2021
General
Page Display Title
It is recommended that
{{DISPLAYTITLE:<title name.}} is inserted at the start of every article. This will enable you to define a display title that may differ from the url of the article. This will also improve on searches when the title of the page is entered as search criteria.
=Header Tabs=
[[Image:TbWikiStyle1.png]]
To create a page with tabbed content, do the following:
* At the top of a page, enter <pre>__NOTOC__
- For every tab header, use one equal sign before and after the header name. Then enter your content. Do not use == or === for lower level headers.
- To make tabbed headers work, at the end of the article enter
<headertabs/>
- If you want to return the user to a tab on another page, and have a specific tab highlighted, enter
{{#switchtablink:<tab name>|<Link text>|<Page Name}}
as in
{{#switchtablink:System|Return to Web Portal 3.1 Home Page|Sbc_Tutorial_Guide_v3.1}}
Use this page as an example of Tabbed Headers
</headertabs>