Template:Nav-group: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 14: | Line 14: | ||
--></noinclude>{{#if:{{{7|}}}{{{7link|}}} | <nowiki> </nowiki>• |}}{{{7link| {{linkappend|post={{{postappend|}}}|{{{7|}}} }} }}}<noinclude><!-- | --></noinclude>{{#if:{{{7|}}}{{{7link|}}} | <nowiki> </nowiki>• |}}{{{7link| {{linkappend|post={{{postappend|}}}|{{{7|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{8|}}}{{{8link|}}} | <nowiki> </nowiki>• |}}{{{8link| {{linkappend|post={{{postappend|}}}|{{{8|}}} }} }}}<noinclude><!-- | --></noinclude>{{#if:{{{8|}}}{{{8link|}}} | <nowiki> </nowiki>• |}}{{{8link| {{linkappend|post={{{postappend|}}}|{{{8|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{9|}}}{{{9link|}}} | | --></noinclude>{{#if:{{{9|}}}{{{9link|}}} | <nowiki> </nowiki>• |}}{{{9link| {{linkappend|post={{{postappend|}}}|{{{9|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{10|}}}{{{10link|}}} | | --></noinclude>{{#if:{{{10|}}}{{{10link|}}} | <nowiki> </nowiki>• |}}{{{10link| {{linkappend|post={{{postappend|}}}|{{{10|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{11|}}}{{{11link|}}} | | --></noinclude>{{#if:{{{11|}}}{{{11link|}}} | <nowiki> </nowiki>• |}}{{{11link| {{linkappend|post={{{postappend|}}}|{{{11|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{12|}}}{{{12link|}}} | | --></noinclude>{{#if:{{{12|}}}{{{12link|}}} | <nowiki> </nowiki>• |}}{{{12link| {{linkappend|post={{{postappend|}}}|{{{12|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{13|}}}{{{13link|}}} | | --></noinclude>{{#if:{{{13|}}}{{{13link|}}} | <nowiki> </nowiki>• |}}{{{13link| {{linkappend|post={{{postappend|}}}|{{{13|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{14|}}}{{{14link|}}} | | --></noinclude>{{#if:{{{14|}}}{{{14link|}}} | <nowiki> </nowiki>• |}}{{{14link| {{linkappend|post={{{postappend|}}}|{{{14|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{15|}}}{{{15link|}}} | | --></noinclude>{{#if:{{{15|}}}{{{15link|}}} | <nowiki> </nowiki>• |}}{{{15link| {{linkappend|post={{{postappend|}}}|{{{15|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{16|}}}{{{16link|}}} | | --></noinclude>{{#if:{{{16|}}}{{{16link|}}} | <nowiki> </nowiki>• |}}{{{16link| {{linkappend|post={{{postappend|}}}|{{{16|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{17|}}}{{{17link|}}} | | --></noinclude>{{#if:{{{17|}}}{{{17link|}}} | <nowiki> </nowiki>• |}}{{{17link| {{linkappend|post={{{postappend|}}}|{{{17|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{18|}}}{{{18link|}}} | | --></noinclude>{{#if:{{{18|}}}{{{18link|}}} | <nowiki> </nowiki>• |}}{{{18link| {{linkappend|post={{{postappend|}}}|{{{18|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{19|}}}{{{19link|}}} | | --></noinclude>{{#if:{{{19|}}}{{{19link|}}} | <nowiki> </nowiki>• |}}{{{19link| {{linkappend|post={{{postappend|}}}|{{{19|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{20|}}}{{{20link|}}} | | --></noinclude>{{#if:{{{20|}}}{{{20link|}}} | <nowiki> </nowiki>• |}}{{{20link| {{linkappend|post={{{postappend|}}}|{{{20|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{21|}}}{{{21link|}}} | | --></noinclude>{{#if:{{{21|}}}{{{21link|}}} | <nowiki> </nowiki>• |}}{{{21link| {{linkappend|post={{{postappend|}}}|{{{21|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{22|}}}{{{22link|}}} | | --></noinclude>{{#if:{{{22|}}}{{{22link|}}} | <nowiki> </nowiki>• |}}{{{22link| {{linkappend|post={{{postappend|}}}|{{{22|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{23|}}}{{{23link|}}} | | --></noinclude>{{#if:{{{23|}}}{{{23link|}}} | <nowiki> </nowiki>• |}}{{{23link| {{linkappend|post={{{postappend|}}}|{{{23|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{24|}}}{{{24link|}}} | | --></noinclude>{{#if:{{{24|}}}{{{24link|}}} | <nowiki> </nowiki>• |}}{{{24link| {{linkappend|post={{{postappend|}}}|{{{24|}}} }} }}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{25|}}}{{{25link|}}} | | --></noinclude>{{#if:{{{25|}}}{{{25link|}}} | <nowiki> </nowiki>• |}}{{{25link| {{linkappend|post={{{postappend|}}}|{{{25|}}} }} }}}<noinclude><!-- | ||
Line 64: | Line 64: | ||
var itterations=25; | var itterations=25; | ||
var base='--></noinclude>{{#if:{{{%s|}}}{{{%slink|}}} | | var base='--></noinclude>{{#if:{{{%s|}}}{{{%slink|}}} | <nowiki> </nowiki>• |}}{{{%slink| {{linkappend|post={{{postappend|}}}|{{{%s|}}} }} }}}<noinclude><!--'; | ||
var output = '--></noinclude>{{{%slink| {{linkappend|post={{{postappend|}}}|{{{%s|}}} }} }}}<noinclude><!--'.split('%s').join(2); | var output = '--></noinclude>{{{%slink| {{linkappend|post={{{postappend|}}}|{{{%s|}}} }} }}}<noinclude><!--'.split('%s').join(2); | ||
for (var i=3; i<=itterations ; i++ ) { | for (var i=3; i<=itterations ; i++ ) { |
Revision as of 11:02, 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 " 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);