Πρότυπο:toc-test

Από Βικιλεξικό
Μετάβαση στην πλοήγηση Πήδηση στην αναζήτηση

This Template:toc-test is a test for Module:toc-test (goal: quasi Template:test-ol) with Template:toc/style.css

{{#invoke:toc-test|main}} placed in a table

Headings of mainspace at wiktionary are standard and repetitive. A page often includes 2-4 languages with repetitive headings.
The goal is to reconstruct the magic word __TOC__ at a module with parameters for horizontal displays (by level or with toclimits)

example: horizontal by level2 would look like sticky at bottom, at top, manual test (or tests at Template:test-ol)
as simple as possible, as standalone as possible

#Need ...

  • split all Level2 (language) columns
  • toclimit horizontal list with commata needed at pages like wikt:en:te or wikt:el:Odin


Test template {toc-test|cols=1 (for new columns of td at L2 li}. There is a div in a td. The div has margin-left:-1em and li at css are margin-left:-30px to move the list left.
The class tocwikt (for numbering) is placed at the first host-table (Περιεχόμενα). It works wherever I put it.
{toc-test} Try param |cols=1
Περιεχόμενα  
  1. Νέα ελληνικά (el)
    1. Ετυμολογία
    2. Προφορά
    3. Ουσιαστικό
      1. Παράγωγα
      2. παράγωγα
      3. Συγγενικά
    4. Αναφορές
  2. Μεσαιωνικά ελληνικά (gkm)
    1. Ετυμολογία 1
    2. Ουσιαστικό
    3. Ετυμολογία 2
    4. Ρήμα
      1. Συγγενικά
    5. Αναφορές 15
    6. Κυπριακά (el-cyp)
  3. Αρχαία ελληνικά (grc)
    1. Ετυμολογία 1
    2. ρήμα
    3. Ουσιαστικό
      1. Παράγωγα
        1. Δείτε επίσης
        2. Κλιτικοί τύποι
          1. Επίπεδο 6ο
    4. Ετυμολογία 2
    5. Ρήμα
    6. Αναφορές 15
  4. Appendix
    1. Etymology
    2. link
      1. word linked
      2. altlink
      3. altlink
      4. word second and third
    3. Etymology 1 1
    4. χρέος
      1. altχρέος
      2. altδρόμος elcyp with hyphen
      3. άλλο χρέος
      4. άλλο χρέος λέξη
      5. χρόνος, δρόμος, χώρα
    5. Etymology 2 2
    6. word
    7. Etymology 1 1
the real TOC

write {#invoke:toc-test|main} a) in a table b) alone

Περιεχόμενα = invoke:toc-test|main          
  1. Νέα ελληνικά (el)
    1. Ετυμολογία
    2. Προφορά
    3. Ουσιαστικό
      1. Παράγωγα
      2. παράγωγα
      3. Συγγενικά
    4. Αναφορές
  2. Μεσαιωνικά ελληνικά (gkm)
    1. Ετυμολογία 1
    2. Ουσιαστικό
    3. Ετυμολογία 2
    4. Ρήμα
      1. Συγγενικά
    5. Αναφορές 15
    6. Κυπριακά (el-cyp)
  3. Αρχαία ελληνικά (grc)
    1. Ετυμολογία 1
    2. ρήμα
    3. Ουσιαστικό
      1. Παράγωγα
        1. Δείτε επίσης
        2. Κλιτικοί τύποι
          1. Επίπεδο 6ο
    4. Ετυμολογία 2
    5. Ρήμα
    6. Αναφορές 15
  4. Appendix
    1. Etymology
    2. link
      1. word linked
      2. altlink
      3. altlink
      4. word second and third
    3. Etymology 1 1
    4. χρέος
      1. altχρέος
      2. altδρόμος elcyp with hyphen
      3. άλλο χρέος
      4. άλλο χρέος λέξη
      5. χρόνος, δρόμος, χώρα
    5. Etymology 2 2
    6. word
    7. Etymology 1 1


toc-test|main is:


  1. Νέα ελληνικά (el)
    1. Ετυμολογία
    2. Προφορά
    3. Ουσιαστικό
      1. Παράγωγα
      2. παράγωγα
      3. Συγγενικά
    4. Αναφορές
  2. Μεσαιωνικά ελληνικά (gkm)
    1. Ετυμολογία 1
    2. Ουσιαστικό
    3. Ετυμολογία 2
    4. Ρήμα
      1. Συγγενικά
    5. Αναφορές 15
    6. Κυπριακά (el-cyp)
  3. Αρχαία ελληνικά (grc)
    1. Ετυμολογία 1
    2. ρήμα
    3. Ουσιαστικό
      1. Παράγωγα
        1. Δείτε επίσης
        2. Κλιτικοί τύποι
          1. Επίπεδο 6ο
    4. Ετυμολογία 2
    5. Ρήμα
    6. Αναφορές 15
  4. Appendix
    1. Etymology
    2. link
      1. word linked
      2. altlink
      3. altlink
      4. word second and third
    3. Etymology 1 1
    4. χρέος
      1. altχρέος
      2. altδρόμος elcyp with hyphen
      3. άλλο χρέος
      4. άλλο χρέος λέξη
      5. χρόνος, δρόμος, χώρα
    5. Etymology 2 2
    6. word
    7. Etymology 1 1



Need

  • to make new columns with cols=1 something like </ol></td><td style="...left, top etc"><ol class=..><li class=>... continue
  • to keep the numbering intact, + toclimit option
  • to move the whole <ol> to the left: margin-left:0em; (not with margin -3em as in done now at a div).
  • to formate sizes, line-heights, etc with css class="tocwikt" Template:toc/style.css
    • in the real TOC, the numbers are linked togehter with the words. nevermind.


OPTIONAL extras: for Appendices, Talks etc

  • headings might include any kind of text, templates etc. This is difficult.


Ετυμολογία

[επεξεργασία]

Προφορά

[επεξεργασία]

Ουσιαστικό

[επεξεργασία]

Παράγωγα

[επεξεργασία]

παράγωγα

[επεξεργασία]

Συγγενικά

[επεξεργασία]

Αναφορές

[επεξεργασία]

Ετυμολογία 1

[επεξεργασία]

Ουσιαστικό

[επεξεργασία]

Ετυμολογία 2

[επεξεργασία]

Συγγενικά

[επεξεργασία]

Αναφορές 15

[επεξεργασία]

Ετυμολογία 1

[επεξεργασία]

Ουσιαστικό

[επεξεργασία]

Παράγωγα

[επεξεργασία]
Δείτε επίσης
[επεξεργασία]
Κλιτικοί τύποι
[επεξεργασία]
Επίπεδο 6ο
[επεξεργασία]

Ετυμολογία 2

[επεξεργασία]

Αναφορές 15

[επεξεργασία]
# <code>{{toc-test}}</code>
#: output:  {{toc-test}}
#  <code>{{#invoke:toc-test|main}}</code>
#: output: {{#invoke:toc-test|main}}