Template:Nav-group: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(20 intermediate revisions by the same user not shown) | |||
Line 8: | Line 8: | ||
--></noinclude>{{#if:{{{2link|}}}| {{{2link|}}} |{{linkappend|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{2|}}} }}}}<noinclude><!-- | --></noinclude>{{#if:{{{2link|}}}| {{{2link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{2|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{3|}}}{{{3link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{3link|}}}| {{{3link|}}} |{{linkappend| | --></noinclude>{{#if:{{{3|}}}{{{3link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{3link|}}}| {{{3link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{3|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{4|}}}{{{4link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{4link|}}}| {{{4link|}}} |{{linkappend|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{4|}}} }}}}<noinclude><!-- | --></noinclude>{{#if:{{{4|}}}{{{4link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{4link|}}}| {{{4link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{4|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{5|}}}{{{5link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{5link|}}}| {{{5link|}}} |{{linkappend| | --></noinclude>{{#if:{{{5|}}}{{{5link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{5link|}}}| {{{5link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{5|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{6|}}}{{{6link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{6link|}}}| {{{6link|}}} |{{linkappend| | --></noinclude>{{#if:{{{6|}}}{{{6link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{6link|}}}| {{{6link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{6|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{7|}}}{{{7link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{7link|}}}| {{{7link|}}} |{{linkappend| | --></noinclude>{{#if:{{{7|}}}{{{7link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{7link|}}}| {{{7link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{7|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{8|}}}{{{8link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{8link|}}}| {{{8link|}}} |{{linkappend| | --></noinclude>{{#if:{{{8|}}}{{{8link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{8link|}}}| {{{8link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{8|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{9|}}}{{{9link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{9link|}}}| {{{9link|}}} |{{linkappend| | --></noinclude>{{#if:{{{9|}}}{{{9link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{9link|}}}| {{{9link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{9|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{10|}}}{{{10link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{10link|}}}| {{{10link|}}} |{{linkappend| | --></noinclude>{{#if:{{{10|}}}{{{10link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{10link|}}}| {{{10link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{10|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{11|}}}{{{11link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{11link|}}}| {{{11link|}}} |{{linkappend| | --></noinclude>{{#if:{{{11|}}}{{{11link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{11link|}}}| {{{11link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{11|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{12|}}}{{{12link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{12link|}}}| {{{12link|}}} |{{linkappend| | --></noinclude>{{#if:{{{12|}}}{{{12link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{12link|}}}| {{{12link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{12|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{13|}}}{{{13link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{13link|}}}| {{{13link|}}} |{{linkappend| | --></noinclude>{{#if:{{{13|}}}{{{13link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{13link|}}}| {{{13link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{13|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{14|}}}{{{14link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{14link|}}}| {{{14link|}}} |{{linkappend| | --></noinclude>{{#if:{{{14|}}}{{{14link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{14link|}}}| {{{14link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{14|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{15|}}}{{{15link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{15link|}}}| {{{15link|}}} |{{linkappend| | --></noinclude>{{#if:{{{15|}}}{{{15link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{15link|}}}| {{{15link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{15|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{16|}}}{{{16link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{16link|}}}| {{{16link|}}} |{{linkappend| | --></noinclude>{{#if:{{{16|}}}{{{16link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{16link|}}}| {{{16link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{16|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{17|}}}{{{17link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{17link|}}}| {{{17link|}}} |{{linkappend| | --></noinclude>{{#if:{{{17|}}}{{{17link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{17link|}}}| {{{17link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{17|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{18|}}}{{{18link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{18link|}}}| {{{18link|}}} |{{linkappend| | --></noinclude>{{#if:{{{18|}}}{{{18link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{18link|}}}| {{{18link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{18|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{19|}}}{{{19link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{19link|}}}| {{{19link|}}} |{{linkappend| | --></noinclude>{{#if:{{{19|}}}{{{19link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{19link|}}}| {{{19link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{19|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{20|}}}{{{20link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{20link|}}}| {{{20link|}}} |{{linkappend| | --></noinclude>{{#if:{{{20|}}}{{{20link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{20link|}}}| {{{20link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{20|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{21|}}}{{{21link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{21link|}}}| {{{21link|}}} |{{linkappend| | --></noinclude>{{#if:{{{21|}}}{{{21link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{21link|}}}| {{{21link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{21|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{22|}}}{{{22link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{22link|}}}| {{{22link|}}} |{{linkappend| | --></noinclude>{{#if:{{{22|}}}{{{22link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{22link|}}}| {{{22link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{22|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{23|}}}{{{23link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{23link|}}}| {{{23link|}}} |{{linkappend| | --></noinclude>{{#if:{{{23|}}}{{{23link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{23link|}}}| {{{23link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{23|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{24|}}}{{{24link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{24link|}}}| {{{24link|}}} |{{linkappend|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{24|}}} }}}}<noinclude><!-- | --></noinclude>{{#if:{{{24|}}}{{{24link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{24link|}}}| {{{24link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{24|}}} }}}}<noinclude><!-- | ||
--></noinclude>{{#if:{{{25|}}}{{{25link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{25link|}}}| {{{25link|}}} |{{linkappend|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{25|}}} }}}}<noinclude><!-- | --></noinclude>{{#if:{{{25|}}}{{{25link|}}}|<nowiki> • </nowiki>|}}{{#if:{{{25link|}}}| {{{25link|}}} |{{linkappend|lc={{{lc|}}}|pre={{{preappend|}}}|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{25|}}} }}}}<noinclude><!-- | ||
Line 50: | Line 50: | ||
{{nav-group | {{nav-group | ||
| postappend=|Community | | postappend=|Community | ||
| | 2link= [[ | | | 2link= [[Community]] | ||
| | 5link= [[ArcGIS Pro|Sign in ArcGIS]] | |||
| | 5link= [[ArcGIS | |||
}} | }} | ||
{{nav-group | {{nav-group | ||
| postdepend= | | postdepend=_postdepended | ||
| Community | | Community | ||
| | | | 5link= [[ArcGIS Pro|Sign in ArcGIS]] | ||
| | }} | ||
| | | {{nav-group | ||
| preappend=Select | |||
| postappend= (TQL) | |||
| lc=true | |||
| [[TQL]] | |||
| Attribute | |||
| Name | |||
| Floorsize | |||
| | 7link= [[Update (TQL)|Update]] | |||
}} | }} | ||
}} | }} | ||
Line 71: | Line 77: | ||
* 2link..nlink: Replacement for a specific entry in a group, to facilitate defined links. Preferably not used, but can facilitate external links for example. Don't forget to skip the associated number. | * 2link..nlink: Replacement for a specific entry in a group, to facilitate defined links. Preferably not used, but can facilitate external links for example. Don't forget to skip the associated number. | ||
* postappend: What to append every name with. (e.g. "Heat Stress" as text, "Heat Stress Overlay" as link, postappend should be "&nbsp;Overlay") | * postappend: What to append every name with. (e.g. "Heat Stress" as text, "Heat Stress Overlay" as link, postappend should be "&nbsp;Overlay") | ||
* postdepend: What to append every name with, but not the link, opposite of postappend. | |||
* preappend: What to append every name with. (e.q. "Attribute as text, "Select Attribute" as text, preappend should be "Select ") | |||
* group: Title or link, if this is a main group indicator. Should not be used along with 2...n. | * group: Title or link, if this is a main group indicator. Should not be used along with 2...n. | ||
* lc:if present, lowercase the main text of link url itself (not the pre/postfixes, and not the displayed text) | |||
Additional parameters can be generated with: | Additional parameters can be generated with: |
Latest revision as of 13:32, 13 December 2023
Example:
To be used in a Template:nav.
Parameters:
- 1: Name of the group
- 2..n: Entry in the group. Automatically linkified.
- 2link..nlink: Replacement for a specific entry in a group, to facilitate defined links. Preferably not used, but can facilitate external links for example. Don't forget to skip the associated number.
- postappend: What to append every name with. (e.g. "Heat Stress" as text, "Heat Stress Overlay" as link, postappend should be " Overlay")
- postdepend: What to append every name with, but not the link, opposite of postappend.
- preappend: What to append every name with. (e.q. "Attribute as text, "Select Attribute" as text, preappend should be "Select ")
- group: Title or link, if this is a main group indicator. Should not be used along with 2...n.
- lc:if present, lowercase the main text of link url itself (not the pre/postfixes, and not the displayed text)
Additional parameters can be generated with:
var itterations=25; var base='--></noinclude>{{#if:{{{%s|}}}{{{%slink|}}}| • |}}{{#if:{{{%slink|}}}| {{{%slink|}}} |{{linkappend|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{%s|}}} }}}}<noinclude><!--'; var output = ' --></noinclude>{{#if:{{{%slink|}}}| {{{%slink|}}} |{{linkappend|post={{{postappend|}}}|postd={{{postdepend|}}}| 1={{{%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);