Template:Nav-group: Difference between revisions

From Tygron Preview Support Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 7: Line 7:




--></noinclude>{{{2link| {{linkappend|post={{{postappend|}}}|{{{2|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{2link|}}}|{{{2link|}}}|{{linkappend|post={{{postappend|}}}|{{{2|}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{3|}}}{{{3link|}}} |<nowiki> </nowiki>&nbsp;  |}}{{{3link|{{linkappend|post={{{postappend|}}}|{{{3|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{3|}}}{{{3link|}}}|•|}}{{#if:{{{3link|}}}|{{{3link|}}}|{{linkappend|post={{{postappend|}}}|{{{3|}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{4|}}}{{{4link|}}} |<nowiki> </nowiki>&nbsp;  |}}{{{4link|{{linkappend|post={{{postappend|}}}|{{{4|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{4|}}}{{{4link|}}}|•|}}{{#if:{{{4link|}}}|{{{4link|}}}|{{linkappend|post={{{postappend|}}}|{{{4|}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{5|}}}{{{5link|}}} |<nowiki> </nowiki>&nbsp;  |}}{{{5link|{{linkappend|post={{{postappend|}}}|{{{5|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{5|}}}{{{5link|}}}|•|}}{{#if:{{{5link|}}}|{{{35ink|}}}|{{linkappend|post={{{postappend|}}}|{{{5|}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{6|}}}{{{6link|}}} |<nowiki> </nowiki>&nbsp;  |}}{{{6link|{{linkappend|post={{{postappend|}}}|{{{6|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{6|}}}{{{6link|}}}|•|}}{{#if:{{{6link|}}}|{{{6link|}}}|{{linkappend|post={{{postappend|}}}|{{{6|}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{7|}}}{{{7link|}}} |<nowiki> </nowiki>&nbsp;  |}}{{{7link|{{linkappend|post={{{postappend|}}}|{{{7|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{7|}}}{{{7link|}}}|•|}}{{#if:{{{7link|}}}|{{{7link|}}}|{{linkappend|post={{{postappend|}}}|{{{7|}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{8|}}}{{{8link|}}} |<nowiki> </nowiki>&nbsp;  |}}{{{8link|{{linkappend|post={{{postappend|}}}|{{{8|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{8|}}}{{{8link|}}}|•|}}{{#if:{{{8link|}}}|{{{8link|}}}|{{linkappend|post={{{postappend|}}}|{{{8|}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{9|}}}{{{9link|}}}  |<nowiki> </nowiki>&nbsp;  |}}{{{9link|{{linkappend|post={{{postappend|}}}|{{{9|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{9|}}}{{{9link|}}}  |•|}}{{{9link|{{linkappend|post={{{postappend|}}}|{{{9|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{10|}}}{{{10link|}}}  |<nowiki> </nowiki>•&nbsp;  |}}{{{10link|{{linkappend|post={{{postappend|}}}|{{{10|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{10|}}}{{{10link|}}}  |<nowiki> </nowiki>•&nbsp;  |}}{{{10link|{{linkappend|post={{{postappend|}}}|{{{10|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{11|}}}{{{11link|}}}  |<nowiki> </nowiki>•&nbsp;  |}}{{{11link|{{linkappend|post={{{postappend|}}}|{{{11|}}}}}}}}<noinclude><!--
--></noinclude>{{#if:{{{11|}}}{{{11link|}}}  |<nowiki> </nowiki>•&nbsp;  |}}{{{11link|{{linkappend|post={{{postappend|}}}|{{{11|}}}}}}}}<noinclude><!--
Line 45: Line 45:
   | City | Ownership | Zoning |
   | City | Ownership | Zoning |
   }}
   }}
{{nav-group
| Overlay
| Overlays | City | Ownership | Zoning |
}}
{{nav-group
{{nav-group
   | postappend=|Community
   | postappend=|Community
   ||2link= [[Community Hub|Community]] | Forum | Tickets ||5link= [[ArcGIS Login| Sign in ArcGIS]] |
   ||2link=[[Community Hub|Community]] | Forum | Tickets ||5link=[[ArcGIS Login| Sign in ArcGIS]] |
   }}
   }}
}}
}}

Revision as of 11:52, 7 August 2020

Example:


To be used in a Template:nav.

Parameters:

  • 1: Name of the group
  • 2..n: Entry in the group. Automatically linkified.
  • postappend: What to append every name with. (e.g. "Heat Stress" as text, "Heat Stress Overlay" as link, postappend should be "&nbsp;Overlay")
  • group: Title or link, if this is a main group indicator. Should not be used along with 2...n.

Additional parameters can be generated with:

var itterations=25;

var base='--></noinclude>{{#if:{{{%s|}}}{{{%slink|}}}  |   •   |}}{{{%slink| {{linkappend|post={{{postappend|}}}|{{{%s|}}} }} }}}<noinclude><!--';
var output = '--></noinclude>{{{%slink| {{linkappend|post={{{postappend|}}}|{{{%s|}}} }} }}}<noinclude><!--'.split('%s').join(2);
for (var i=3; i<=itterations ; i++ ) {
    output = output + '\r\n'+base.split('%s').join(i);
}
console.log(output);