Template:Navbar table: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
Line 1: Line 1:
<includeonly>{{#if: {{{cols|}}}
<includeonly>{{#if: {{{cols|}}}
| {{!-}} class{{=}}"sortbottom" style{{=}}"border-top: double; text-align: center;"
| {{!-}} class{{=}}"sortbottom" style{{=}}"border-top: double; text-align: center;"
{{!}} colspan{{=}}"{{{cols}}}" {{!}} {{navbar|{{{1|}}}|text={{{text|This table&#58;}}}|ns={{#if: {{NAMESPACE:{{{1|}}}}}|{{NAMESPACE:{{{1|}}}}}{{colon}}|}}}}
{{!}} colspan{{=}}"{{{cols}}}" {{!}} {{navbar|{{{1|}}}|text={{{text|This table&#58;}}}|ns={{NAMESPACE:{{{1|}}}}}}}
|  
|  
}}</includeonly><noinclude>
}}</includeonly><noinclude>

Revision as of 18:55, 4 December 2024

Template documentation[view] [edit] [history] [purge]

Usage

This template is used for adding a navigation bar to a transcluded template.

cols (required)
The number of columns in the table in which the links are to be inserted.
{{{1}}} (optional)
The name of the page where the table resides.

It is recommended to enclose the navigation bar in an <includeonly> tag since it does not need to be displayed on the source page.

For example:

{| class="wikitable"
|+ Caption
|-
! Head A !! Head B !! Head C
|-
| Cell A1 || Cell B1 || Cell C1
|-
| Cell A2 || Cell B2 || Cell C2
|-
| Cell A3 || Cell B3 || Cell C3
<includeonly>
{{Navbar table|cols=3|Navbar table}}
</includeonly>
|}

gives:

Caption
Head A Head B Head C
Cell A1 Cell B1 Cell C1
Cell A2 Cell B2 Cell C2
Cell A3 Cell B3 Cell C3
This table: ViewTalkEdit

where the links point to the source page, the source page's talk page, and the editing function.

See also