« Modèle:TableEnd » : différence entre les versions

De Guide de l'Installation Electrique
Aller à :navigation, rechercher
(test adding table notes in a paragraph with class "tablenote-details")
(added possibility to have more table notes (upto 25 in total I think))
Ligne 1 : Ligne 1 :
<includeonly>|}</includeonly>{{#if: {{{5|}}} |<p class="tablenote-details" style="font-size:12px">{{TabNote|{{{1}}}|{{{4|}}}|{{{5|}}}}}{{TabNote|{{{1}}}|{{{6|}}}|{{{7|}}}}}{{TabNote|{{{1}}}|{{{8|}}}|{{{9|}}}}}{{TabNote|{{{1}}}|{{{10|}}}|{{{11|}}}}}{{TabNote|{{{1}}}|{{{12|}}}|{{{13|}}}}}{{TabNote|{{{1}}}|{{{14|}}}|{{{15|}}}}}{{TabNote|{{{1}}}|{{{16|}}}|{{{17|}}}}}{{TabNote|{{{1}}}|{{{18|}}}|{{{19|}}}}}{{TabNote|{{{1}}}|{{{20|}}}|{{{21|}}}}}{{TabNote|{{{1}}}|{{{22|}}}|{{{23|}}}}}</p>|}}{{#if: {{{3|}}}|
<includeonly>|}</includeonly>{{#if: {{{5|}}} |<p class="tablenote-details" style="font-size:12px">{{TabNote|{{{1}}}|{{{4|}}}|{{{5|}}}}}{{TabNote|{{{1}}}|{{{6|}}}|{{{7|}}}}}{{TabNote|{{{1}}}|{{{8|}}}|{{{9|}}}}}{{TabNote|{{{1}}}|{{{10|}}}|{{{11|}}}}}{{TabNote|{{{1}}}|{{{12|}}}|{{{13|}}}}}{{TabNote|{{{1}}}|{{{14|}}}|{{{15|}}}}}{{TabNote|{{{1}}}|{{{16|}}}|{{{17|}}}}}{{TabNote|{{{1}}}|{{{18|}}}|{{{19|}}}}}{{TabNote|{{{1}}}|{{{20|}}}|{{{21|}}}}}{{TabNote|{{{1}}}|{{{22|}}}|{{{23|}}}}}{{TabNote|{{{1}}}|{{{24|}}}|{{{25|}}}}}{{TabNote|{{{1}}}|{{{26|}}}|{{{27|}}}}}{{TabNote|{{{1}}}|{{{28|}}}|{{{29|}}}}}{{TabNote|{{{1}}}|{{{30|}}}|{{{31|}}}}}{{TabNote|{{{1}}}|{{{32|}}}|{{{33|}}}}}{{TabNote|{{{1}}}|{{{34|}}}|{{{35|}}}}}{{TabNote|{{{1}}}|{{{36|}}}|{{{37|}}}}}{{TabNote|{{{1}}}|{{{38|}}}|{{{39|}}}}}{{TabNote|{{{1}}}|{{{40|}}}|{{{41|}}}}}{{TabNote|{{{1}}}|{{{42|}}}|{{{43|}}}}}{{TabNote|{{{1}}}|{{{44|}}}|{{{45|}}}}}{{TabNote|{{{1}}}|{{{46|}}}|{{{47|}}}}}{{TabNote|{{{1}}}|{{{48|}}}|{{{49|}}}}}{{TabNote|{{{1}}}|{{{50|}}}|{{{51|}}}}}{{TabNote|{{{1}}}|{{{52|}}}|{{{53|}}}}}
</p>|}}{{#if: {{{3|}}}|
{{FigTitle|{{{2|}}}|{{{3|}}}}}|}}<noinclude>
{{FigTitle|{{{2|}}}|{{{3|}}}}}|}}<noinclude>



Version du 17 mai 2016 à 15:34


Description

This template has to be added just AT THE END of a wiki EIG table (it "replaces" the usual syntax for end of teble: |}

Syntax:

{{ TableEnd | <1=table-ID> | <2-fignum> | <3=table-title>
<note-letter>|<note-text>
<note-letter>|<note-text>
....
}}

Where:

<1=table-ID>       is like:   Tab1001   (= cf refence file for table IDs)
<2=fig-num>        is like:   A7
<3=table-title>    is like:   Application of the diversity factor (ks)
<note-letter>      is the note marker letter like a b c d ...
<note-text>        is the text of that note


Example:

{{ TableStart|Tab1001|A5|This is the table title
||this is a note without a reference, just text
|a|This is note [a]
....
}}