Šablonas:CompactTOC
Turinys |
---|
Naudojimas
[redaguoti vikitekstą]- Typical
{{Compact ToC|symnum=yes}}
- For alphabetical only
{{Compact ToC}}
- For common applications
{{Compact ToC|center=yes|seealso=yes|refs=yes|further=yes}}
- or vertical:
{{Compact ToC |center = yes |seealso = yes |refs = yes |further = yes }}
Raidės
[redaguoti vikitekstą]Any letter can be omitted (i.e. when it has no entries in the list) by specifying it as a lower-case blank parameter:
{{Compact ToC|side=yes|j=|q=}}
|
Or it can be replaced with an unlinked letter by using that letter (upper-case):
{{Compact ToC|side=yes|j=J|q=Q}}
|
Note: It is often better to create an empty placeholder span (e.g. <span id="Q" />
where the letter's heading would be in the page if it existed, since in most cases it is quite possible that it will come to exist in the future. Using the span-id avoids confusing new users who might not realize the TOC-template has skipped some letters.
The letter-assignment feature can also be used to create range links:
{{Compact ToC|side=yes|x=[[#X-Z|X-Z]]|y=|z=}}
|
The feature can also be used (very tediously) for linking to sub-articles (e.g., for long lists that have been split into multiple pages):
{{Compact ToC|name=[[Straipsnis]]|side=yes|n=[[Straipsnis (N–Z)#N|N]]|o=[[Straipsnis (N–Z)#O|O]]|...|z=[[Straipsnis (N–Z)#Z|Z]]}}
|
Or, as another example:
{{Compact ToC|side=yes|n=[[Straipsnis (N–Z)| N–Z (sekantis)]]|o=|p=|...|ž=}}
|
Viršuje esanti dokumentacija yra iškelta iš Šablonas:CompactTOC/doc puslapio. (redaguoti | istorija) Redaguotojai gali eksperimentuoti šio šablono smėlio dėžėje sandbox (sukurti | klonuoti) ir testiniuose (sukurti) puslapiuose. Prašome pridėti kategorijas /doc subpuslapyje. Šio šablono subpuslapiai. |