Template:Neighbor Navbox: Difference between revisions
Template page
More actions
mNo 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) |
||
| Line 1: | Line 1: | ||
<includeonly>{{Navbox | <includeonly>{{#vardefine:link_type|{{lc:{{{1|{{{link type|}}}}}}}}}}<!-- | ||
|title = [[Neighbors]] | |||
-->{{#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 | |striped = even | ||
|editlinks = off | |editlinks = off | ||
|list1 = {{Navbox DPL|category = Neighbors|uses=Template:Neighbor Infobox|format= | |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> | ||