Dotclear

Changeset 2314:a8e88895bff2


Ignore:
Timestamp:
10/08/13 17:28:47 (10 years ago)
Author:
franck <carnet.franck.paul@…>
Branch:
default
Message:

First step of contextual helps, see #1760

Files:
7 added
13 edited

Legend:

Unmodified
Added
Removed
  • admin/blog.php

    r2189 r2314  
    102102     '</form>'; 
    103103 
     104     dcPage::helpBlock('core_blog_new'); 
    104105     dcPage::close(); 
    105106} 
  • admin/blog_theme.php

    r2291 r2314  
    239239# --BEHAVIOR-- themesToolsTabs 
    240240$core->callBehavior('themesToolsTabs', $core); 
    241  
     241dcPage::helpBlock('core_blog_theme'); 
    242242dcPage::close(); 
  • admin/blogs.php

    r2307 r2314  
    171171     } 
    172172} 
    173  
     173dcPage::helpBlock('core_blogs'); 
    174174dcPage::close(); 
    175175 
  • admin/category.php

    r2189 r2314  
    258258} 
    259259 
    260 dcPage::helpBlock('core_categories'); 
     260dcPage::helpBlock('core_category'); 
    261261dcPage::close(); 
    262262?> 
  • admin/index.php

    r2240 r2314  
    383383 
    384384echo '</div>'; #end dashboard-main 
    385  
     385dcPage::helpBlock('core_dashboard'); 
    386386dcPage::close(); 
    387387?> 
  • admin/langs.php

    r2256 r2314  
    264264     '</form>'; 
    265265} 
    266  
     266dcPage::helpBlock('core_langs'); 
    267267dcPage::close(); 
    268  
    269268 
    270269# Language installation function 
  • admin/plugins.php

    r2291 r2314  
    256256} 
    257257 
     258dcPage::helpBlock('core_plugins'); 
    258259dcPage::close(); 
  • admin/search.php

    r2210 r2314  
    162162} 
    163163 
    164  
     164dcPage::helpBlock('core_search'); 
    165165dcPage::close(); 
    166166?> 
  • admin/update.php

    r2166 r2314  
    253253} 
    254254 
     255dcPage::helpBlock('core_update'); 
    255256dcPage::close(); 
    256257?> 
  • admin/users.php

    r2166 r2314  
    175175     ); 
    176176} 
    177  
     177dcPage::helpBlock('core_users'); 
    178178dcPage::close(); 
    179179?> 
  • plugins/pages/locales/en/help/page.html

    r1802 r2314  
    8787</dl> 
    8888 
    89 <h4>Wiki syntax reference</h4> 
    90  
    91 <p>The wiki syntax is a way to enhance your text with a minimal set 
    92 of tags, studied to cover the basic needs (titles, paragraphs, quotes, 
    93 lists...)</p> 
    94  
    95 <dl> 
    96 <dt>Block elements</dt> 
    97 <dd> 
    98 <ul> 
    99   <li>Leave an empty line between two similar blocks.</li> 
    100   <li><strong>Paragraph</strong>: free text, ended by an empty line if 
    101   another paragraph is to follow.</li> 
    102   <li><strong>Title</strong>: <code>!!! title</code>, <code>!! title</code> 
    103   or <code>! title</code>, allowing you to use three  different levels of 
    104   heading.</li> 
    105   <li><strong>Horizontal line</strong>: <code>----</code></li> 
    106   <li><strong>Lists</strong>: Start each line with 
    107   <code>*</code> or <code>#</code> for unnumbered or numbered lists respectively. 
    108   List imbrication is done by mixing list markers this way: 
    109 <pre> 
    110 * item 1 
    111 ** item 1.1 
    112 * item 2 
    113 *# item 2.1 
    114 ... 
    115 </pre> 
    116   </li> 
    117   <li><strong>Preformatted text</strong>: each line must start with a space.</li> 
    118   <li><strong>Block quote</strong>: each line must start with a semicolon (<code>&gt;</code>).</li> 
    119 </ul> 
    120 </dd> 
    121  
    122 <dt>Formatting tags</dt> 
    123 <dd> 
    124 <ul> 
    125   <li><strong>Emphasis</strong>: two quotes <code>''text''</code></li> 
    126   <li><strong>Strong emphasis</strong>: two underscore <code>__text__</code></li> 
    127   <li><strong>New line</strong>: <code>%%%</code></li> 
    128   <li><strong>Insertion</strong>: two plusses <code>++text++</code></li> 
    129   <li><strong>Deletion</strong>: two minuses <code>--text--</code></li> 
    130   <li><strong>Link</strong>: <code>[url]</code>, <code>[name|url]</code>, 
    131     <code>[name|url|language]</code> or <code>[name|url|languagee|title]</code></li> 
    132   <li><strong>Image</strong>: 
    133     <code>((url|alternative text))</code>, 
    134     <code>((url|alternative text|position))</code> or 
    135     <code>((url|alternative text|position|long description))</code>. 
    136     <br />The position can be either L or G (left), R or D (right) or C (centered).</li> 
    137   <li><strong>Anchor</strong>: <code>~anchor~</code></li> 
    138   <li><strong>Acronym</strong>: <code>??acronym|title??</code></li> 
    139   <li><strong>Inline HTML</strong>: two backquotes <code>``html code``</code></li> 
    140   <li><strong>Inline quote</strong>: <code>{{quote}}</code>, 
    141     <code>{{quote|language}}</code> or <code>{{quote|language|url}}</code></li> 
    142   <li><strong>Code</strong>: <code>@@code@@</code></li> 
    143   <li><strong>Footnotes</strong>: <code>$$footnote$$</code></li> 
    144 </ul> 
    145 </dd> 
    146  
    147 <dt>Unformatted text</dt> 
    148 <dd>If you don't want one formatting character to be interpreted as such, add a 
    149 <code>\</code> just before it. This way: 
    150 <code>\[text in brackets without being a link\]</code> 
    151 </dd> 
    152  
    153 <dt>HTML Code</dt> 
    154 <dd>Even if you chose the wiki syntax, you may sometimes need a more 
    155 powerful formatting, i.e. HTML syntax. Do it the following way: 
    156 <pre> 
    157 ///html 
    158 &lt;p style="color:red"&gt;my text in red&lt;/p&gt; 
    159 /// 
    160 </pre> 
    161 </dd> 
    162 </dl> 
    163  
    16489</body> 
    16590</html> 
  • plugins/pages/locales/fr/help/page.html

    r1947 r2314  
    103103</dl> 
    104104 
    105 <h4>Référence de la syntaxe Wiki</h4> 
    106  
    107 <p>La syntaxe Wiki est une manière d'écrire du texte avec un jeu de balises 
    108 réduit au minimum, permettant de couvrir les besoins les plus courants 
    109 (titres, paragraphes, citations, listes...).</p> 
    110  
    111 <dl> 
    112 <dt>Éléments de bloc</dt> 
    113 <dd> 
    114 <ul> 
    115   <li>Laissez une ligne vide entre chaque bloc de même nature.</li> 
    116   <li><strong>Paragraphe</strong>&nbsp;: texte libre, terminé par une ligne 
    117   vide si suivi d'un second paragraphe.</li> 
    118   <li><strong>Titre</strong>&nbsp;: <code>!!! titre</code>, <code>!! titre</code> 
    119   ou <code>! titre</code> pour des titres plus ou moins importants.</li> 
    120   <li><strong>Trait horizontal</strong>&nbsp;: <code>----</code></li> 
    121   <li><strong>Listes</strong>&nbsp;: lignes débutant par <code>*</code> pour des 
    122   listes à puce ou <code>#</code> pour des listes numérotées. Vous pouvez faire 
    123   des listes imbriquées en mélangeant les codes de liste. Par exemple&nbsp;: 
    124 <pre> 
    125 * item 1 
    126 ** item 1.1 
    127 * item 2 
    128 *# item 2.1 
    129 ... 
    130 </pre> 
    131   </li> 
    132   <li><strong>Texte préformaté</strong>&nbsp;: espace avant chaque ligne de texte.</li> 
    133   <li><strong>Bloc de citation</strong>&nbsp;: <code>&gt;</code> devant chaque 
    134   ligne de texte.</li> 
    135 </ul> 
    136 </dd> 
    137  
    138 <dt>Éléments de formatage</dt> 
    139 <dd> 
    140 <ul> 
    141   <li><strong>Emphase</strong>&nbsp;: deux apostrophes <code>''texte''</code></li> 
    142   <li><strong>Forte emphase</strong>&nbsp;: deux soulignés <code>__texte__</code></li> 
    143   <li><strong>Retour forcé à la ligne</strong>&nbsp;: <code>%%%</code></li> 
    144   <li><strong>Insertion</strong>&nbsp;: deux plus <code>++texte++</code></li> 
    145   <li><strong>Suppression</strong>&nbsp;: deux moins <code>--texte--</code></li> 
    146   <li><strong>Lien</strong>&nbsp;: <code>[url]</code>, <code>[nom|url]</code>, 
    147     <code>[nom|url|langue]</code> ou <code>[nom|url|langue|titre]</code></li> 
    148   <li><strong>Image</strong>&nbsp;: 
    149     <code>((url|texte alternatif))</code>, 
    150     <code>((url|texte alternatif|position))</code> ou 
    151     <code>((url|texte alternatif|position|description longue))</code>. 
    152     <br />La position peut prendre les valeurs L ou G (gauche), R ou D (droite) ou C (centré).</li> 
    153   <li><strong>Ancre</strong>&nbsp;: <code>~ancre~</code></li> 
    154   <li><strong>Acronyme</strong>&nbsp;: <code>??acronyme|titre??</code></li> 
    155   <li><strong>Code HTML en ligne</strong>: deux apostrophes inversées <code>``code html``</code></li> 
    156   <li><strong>Citation en ligne</strong>&nbsp;: <code>{{citation}}</code>, 
    157     <code>{{citation|langue}}</code> ou <code>{{citation|langue|url}}</code></li> 
    158   <li><strong>Code</strong>&nbsp;: <code>@@code ici@@</code></li> 
    159   <li><strong>Note de bas de page</strong>&nbsp;: <code>$$Corps de la note$$</code></li> 
    160 </ul> 
    161 </dd> 
    162  
    163 <dt>Empêcher le formatage du texte</dt> 
    164 <dd>Pour insérer un caractère sans que celui-ci soit reconnu comme un caractère 
    165 de formatage, ajoutez le caractère <code>\</code> avant celui-ci. Par exemple&nbsp;: 
    166 <code>\[texte entre crochet qui n'est pas un lien\]</code> 
    167 </dd> 
    168  
    169 <dt>Insérer du code HTML</dt> 
    170 <dd>Vous pouvez ponctuellement avoir besoin d'insérer du code HTML dans votre 
    171 texte au format Wiki. Pour cela, utilisez le code suivant&nbsp;: 
    172 <pre> 
    173 ///html 
    174 &lt;p style="color:red"&gt;mon texte en rouge&lt;/p&gt; 
    175 /// 
    176 </pre> 
    177 </dd> 
    178 </dl> 
    179  
    180105</body> 
    181106</html> 
  • plugins/pages/page.php

    r2225 r2314  
    733733     echo '</table>'; 
    734734} 
    735 dcPage::helpBlock('page'); 
     735dcPage::helpBlock('page','core_wiki'); 
    736736?> 
    737737</body> 
Note: See TracChangeset for help on using the changeset viewer.

Sites map