Template:scripttaglinks/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search
Documentation for Template:scripttaglinks. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

Finds wikilinks and adds language-agnostic script tagging to each of them (not to surrounding text). Script detection is done by the char_to_script function in Module:Unicode data, and a few script conflicts are resolved automatically.

Usage

[edit]
{{scripttaglinks|
* [[σε]]
* [[се]]
* [[се-]]
* [[-се]]
* [[сэ]]
* [[сѐ]]
* [[сё]]
* [[せ]]
* [[セ]]
* [[세]]
* [[쎄]]
}}

results in

* <span class="Grek">[[σε]]</span>
* <span class="Cyrl">[[се]]</span>
...
* <span class="Hira">[[せ]]</span>
* <span class="Kana">[[セ]]</span>
* <span class="Hang">[[세]]</span>
...

and is displayed as