Ekstensi: CharInsert: Perbedaan antara revisi

Dari Catatan Pak Samsul
Loncat ke navigasi Loncat ke pencarian
(←Membuat halaman berisi '<br /> == Syntax[edit] == Use <code><charinsert></code> tags with a space-separated list of characters or tags for which you wish to allow insertion. You can use + s...')
 
kTidak ada ringkasan suntingan
 
(5 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 1: Baris 1:
<br />
==Syntax==


== Syntax[edit] ==
Use <code><charinsert></code> tags with a space-separated list of characters or tags for which you wish to allow insertion.
Use <code><charinsert></code> tags with a space-separated list of characters or tags for which you wish to allow insertion.
You can use + sign inside a tag to define a place to:
insert selected text ''or''
place cursor if no text was selected.
You have to enclose templates and spaces inside <code>&lt;nowiki&gt;</code>:


You can use + sign inside a tag to define a place to:
<code><charinsert><nowiki>&lt;nowiki&gt;== + ==&lt;/nowiki&gt;</nowiki> <nowiki>&lt;nowiki&gt;{{stub}}&lt;/nowiki&gt;</nowiki></charinsert></code><br />


* insert selected text ''or''
==Usage and sample output==
* place cursor if no text was selected.


You have to enclose templates and spaces inside <code>&lt;nowiki&gt;</code>:
====Individual characters====
<charinsert><nowiki>&lt;nowiki&gt;== + ==&lt;/nowiki&gt;</nowiki> <nowiki>&lt;nowiki&gt;{{stub}}&lt;/nowiki&gt;</nowiki></charinsert>
<br />


== Usage and sample output[edit] ==


=== Individual characters[edit] ===
Individual characters are just listed between the "charinsert" tags.
Individual characters are just listed between the "charinsert" tags.
  <charinsert>Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź</charinsert>
  <charinsert>Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź</charinsert>
results in
results in


Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź
Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź<br />
 
Combined characters[edit]


====Combined characters====
Combined characters are listed between the "charinsert" tags and connected by the "+" sign.
Combined characters are listed between the "charinsert" tags and connected by the "+" sign.


<charinsert>“+” ‘+’ «+» ‹+› „+“ ‚+‘ [[+]] {{+}}</charinsert>
<code><charinsert>“+” ‘+’ «+» ‹+› „+“ ‚+‘ [[+]] </charinsert></code>


results in
results in


<nowiki>“” ‘’ «» ‹› „“ ‚‘ [[]] {{}}</nowiki>
<nowiki>“” ‘’ «» ‹› „“ ‚‘ [[]] {{}}</nowiki><br />
<br />
==Notes==
 
== Notes[edit] ==


* Generated JavaScript links also work in other areas around edit window, e.g. in MediaWiki:Copyrightwarning or MediaWiki:Newarticletext, on the page preloaded with Inputbox, and even from the text preview.
*Generated JavaScript links also work in other areas around edit window, e.g. in MediaWiki:Copyrightwarning or MediaWiki:Newarticletext, on the page preloaded with Inputbox, and even from the text preview.
* They can also be used in MediaWiki:Uploadtext to insert image description templates.
*They can also be used in MediaWiki:Uploadtext to insert image description templates.
* Unlike toolbar buttons on top, this extension doesn't provide a way to specify inserted "sample text".
*Unlike toolbar buttons on top, this extension doesn't provide a way to specify inserted "sample text".
* Use <code>&amp;#10;</code> to add new lines (\n).
*Use <code>&amp;#10;</code> to add new lines (\n).
* Enclose white spaces in nowiki tags when needed.
*Enclose white spaces in nowiki tags when needed.
* Add <code><charinsert></charinsert></code> tags into MediaWiki:Edittools.
*Add <code><charinsert></charinsert></code> tags into MediaWiki:Edittools.


<br />
<br />
[[Kategori:Ekstensi Mediawiki]]

Revisi terkini sejak 19 Februari 2021 16.33

Syntax

Use <charinsert> tags with a space-separated list of characters or tags for which you wish to allow insertion. You can use + sign inside a tag to define a place to: insert selected text or place cursor if no text was selected. You have to enclose templates and spaces inside <nowiki>:

<charinsert><nowiki>== + ==</nowiki> <nowiki>{{stub}}</nowiki></charinsert>

Usage and sample output

Individual characters

Individual characters are just listed between the "charinsert" tags.

<charinsert>Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź</charinsert>

results in

Á á Ć ć É é Í í Ĺ ĺ Ń ń Ó ó Ŕ ŕ Ś ś Ú ú Ý ý Ź ź

Combined characters

Combined characters are listed between the "charinsert" tags and connected by the "+" sign.

<charinsert>“+” ‘+’ «+» ‹+› „+“ ‚+‘ + </charinsert>

results in

“” ‘’ «» ‹› „“ ‚‘ [[]] {{}}

Notes

  • Generated JavaScript links also work in other areas around edit window, e.g. in MediaWiki:Copyrightwarning or MediaWiki:Newarticletext, on the page preloaded with Inputbox, and even from the text preview.
  • They can also be used in MediaWiki:Uploadtext to insert image description templates.
  • Unlike toolbar buttons on top, this extension doesn't provide a way to specify inserted "sample text".
  • Use &#10; to add new lines (\n).
  • Enclose white spaces in nowiki tags when needed.
  • Add <charinsert></charinsert> tags into MediaWiki:Edittools.