Template:Nav-group: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(5 intermediate revisions by the same user not shown) | |||
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=_postdepended | | postdepend=_postdepended | ||
| Community | | Community | ||
| | 5link= [[ArcGIS Pro|Sign in ArcGIS]] | |||
| | 5link= [[ArcGIS | |||
}} | }} | ||
{{nav-group | {{nav-group | ||
Line 67: | Line 63: | ||
| lc=true | | lc=true | ||
| [[TQL]] | | [[TQL]] | ||
| | | Attribute | ||
| Name | | Name | ||
| Floorsize | | Floorsize |
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);