Template:Neighbor Navbox: Difference between revisions
Appearance
No edit summary |
m if the subpage is a galllery, it'll be linking to other neighbour's galleries instead of the rootpage (for now, story subpages will also link to rootpage cause a bunch doesn't have story page yet) |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{Navbox | <includeonly>{{#vardefine:link_type|{{lc:{{{1|{{{link type|}}}}}}}}}}<!-- | ||
|title = [[Neighbors]] | |||
|list1 = {{Navbox DPL|category = Neighbors|uses=Template:Neighbor Infobox|format= | -->{{#switch:{{#var:link_type}}<!-- | ||
-->|gallery={{#vardefine:link_suffix|/Gallery}}<!-- | |||
-->|#default=<!-- | |||
-->}}<!-- | |||
-->{{Navbox | |||
|title = [[Neighbors]] {{#switch:{{#var:link_type}}<!-- | |||
-->|gallery=([[:Category:Neighbor Galleries|Gallery]])<!-- | |||
-->|#default=}} | |||
|striped = even | |||
|editlinks = off | |||
|list1 = {{Navbox DPL<!-- | |||
-->|category = Neighbors<!-- | |||
-->|uses=Template:Neighbor Infobox<!-- | |||
-->|format_mode=card<!-- | |||
-->|format = { %PAGE% $ link={{#var:link_prefix}}%PAGE%{{#var:link_suffix}} };;<!-- | |||
-->}} | |||
}}</includeonly><noinclude>{{Documentation|type=Navbox|content={{T|Neighbor Navbox|_Y_=1}}}}</noinclude> | }}</includeonly><noinclude>{{Documentation|type=Navbox|content={{T|Neighbor Navbox|_Y_=1}}}}</noinclude> | ||
Latest revision as of 20:10, 13 April 2026
Template documentation
Note: parts of or the entire template might not be visible without values provided.
Note: parts of or the entire template might not be visible without values provided.
| Main | Usage |
{{Neighbor Navbox}} yields: