Difference between revisions of "Template:SLINav"

From Star Trek Timelines Wiki
Jump to navigation Jump to search
Line 76: Line 76:
 
| Bat'leth | Gowron's Bat'leth | Jadzia's Bat'leth | Kahless's Bat'leth | Kang's Bat'leth | Miral's Bat'leth | Quark's Bat'leth | Worf's Bat'leth =
 
| Bat'leth | Gowron's Bat'leth | Jadzia's Bat'leth | Kahless's Bat'leth | Kang's Bat'leth | Miral's Bat'leth | Quark's Bat'leth | Worf's Bat'leth =
 
     {{SLIpic| Bat'leth | Gowron's Bat'leth | Jadzia's Bat'leth | Kahless's Bat'leth | Kang's Bat'leth | Miral's Bat'leth | Quark's Bat'leth | Worf's Bat'leth }}
 
     {{SLIpic| Bat'leth | Gowron's Bat'leth | Jadzia's Bat'leth | Kahless's Bat'leth | Kang's Bat'leth | Miral's Bat'leth | Quark's Bat'leth | Worf's Bat'leth }}
| Bloodwine | Kor's Bloodwine | Late Vintage Bloodwine =
+
| Bloodwine | Jodmos' Bloodwine | Kor's Bloodwine | Late Vintage Bloodwine =
     {{SLIpic| Bloodwine | Kor's Bloodwine | Late Vintage Bloodwine }}
+
     {{SLIpic| Bloodwine | Jodmos' Bloodwine | Kor's Bloodwine | Late Vintage Bloodwine }}
 
| Boombox | Rock and Roll =
 
| Boombox | Rock and Roll =
 
     {{SLIpic| Boombox | Rock and Roll }}
 
     {{SLIpic| Boombox | Rock and Roll }}

Revision as of 16:50, 13 July 2019

Coding


Template-info.png Documentation

When editing this template, please edit {{ItemPic/1}} to help keep that up-to-date as well. Thank you.

Template Format


{{SLINav}} (no parameter necessary when used on item pages)
{{SLINav|None}} (obsolete format - parameter is IGNORED!)
{{SLINav|Base Item Name}} (obsolete format - parameter is IGNORED!)
{{SLINav|override=Item Name}} (new override format: ignore PAGENAME and use SLI of given item (works for both base and SLI items))

Adding Another Option


| Base Item Name | List | of | similar | items | as | targets =
     {{SLIpic| Base Item Name | List | of | similar | items | as | targets}}

Please keep new entries alphabetically sorted, both in the template list, as well as in each similar-item-list.

To explain the syntax above, the first line is a list of synonyms for a switch statement. The switch is performed against either {{PAGENAME}} or the override parameter. The second and third lines are the resulting values inserted where the switch statement is placed. That is within a <table class="navbox">. The {{!}} are escapes for providing the exclamation points found in wikimedia's table syntax.

Example


Using
{{SLINav}}
(when used on the Holoprogram page, or any of its SLI item pages) returns:

Similar Looking Items


Available Options


Please see Gallery for SLINav.