Difference between revisions of "Template:SLINav"
Middlehead (talk | contribs) |
|||
Line 521: | Line 521: | ||
| Phaser Type 3 (TOS) | Phaser Type 3 (TOS, Drink) = | | Phaser Type 3 (TOS) | Phaser Type 3 (TOS, Drink) = | ||
{{SLIpic| Phaser Type 3 (TOS) | Phaser Type 3 (TOS, Drink) }} | {{SLIpic| Phaser Type 3 (TOS) | Phaser Type 3 (TOS, Drink) }} | ||
− | | Pathogen | Maras's Pheromones | Navaar's Pheromones | Pheromones | Polywater Yar's PSI 2000 Virus | Polywater Yar's PSI 2000 Virus | Vice Admiral Janeway's Neurolytic Pathogen | Vina's Pheromones= | + | | Pathogen | D'Nesh's Pheromones | Maras's Pheromones | Navaar's Pheromones | Pheromones | Polywater Yar's PSI 2000 Virus | Polywater Yar's PSI 2000 Virus | Vice Admiral Janeway's Neurolytic Pathogen | Vina's Pheromones= |
− | {{SLIpic| Pathogen | Maras's Pheromones | Navaar's Pheromones | Pheromones | Polywater Yar's PSI 2000 Virus | Vice Admiral Janeway's Neurolytic Pathogen | Vina's Pheromones }} | + | {{SLIpic| Pathogen | D'Nesh's Pheromones | Maras's Pheromones | Navaar's Pheromones | Pheromones | Polywater Yar's PSI 2000 Virus | Vice Admiral Janeway's Neurolytic Pathogen | Vina's Pheromones }} |
| Photon Grenade | Stun Grenade | Grenade = | | Photon Grenade | Stun Grenade | Grenade = | ||
{{SLIpic| Photon Grenade | Stun Grenade | Grenade }} | {{SLIpic| Photon Grenade | Stun Grenade | Grenade }} |
Revision as of 10:41, 29 November 2020
Coding
![]() |
New Way to Add SLI
|
Contents
- 1 Coding
- 2 Template Format
- 3 Adding Another Option
- 4 Example
- 5 Similar Looking Items
- 6 Available Options
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
{{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.
The above documentation is transcluded from Template:SLINav/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror).
Please add categories to the /doc subpage using blocks. Subpages of this template.