Editing
Module:Inflect senra
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
local p = {} local function change_suffix(word, suffix) return (word:gsub("u$", suffix)) end local i18n = {} local function template(language, word, tmpl) local lang = i18n[language] or i18n.en return (tmpl:gsub("[%$-]%w+", function(text) local suffix = text:match "%-(.*)" local translation = text:match "%$(.*)" if suffix then return change_suffix(word, suffix) elseif translation then return lang[translation] end end)) end function p.table(frame) local language, word = frame.args[1], frame.args[2] word = word:gsub("%s*$", "") word = word:gsub("^%s*", "") if not word:match"u$" then error("content word must be lemma (end with -u): "..word) end return template(language, word, [[<table class="wikitable"> <caption>$inflections </caption> <tr><th> <th>$regular <th>$infinitive <th>$imperative <th>$adverbial <tr><th> <td> <td>-u <td> <td> <tr><th>$intransitive <td>-i <td>-ui <td>-e <td>-iΕ <tr><th>$transitive <td>-a <td>-ua <td>-ea <td>-aΕ </table>]]) end i18n.en = { inflections = "inflections", regular = "regular", infinitive = "infinitive", imperative = "imperative", adverbial = "adverbial", intransitive = "intransitive", transitive = "transitive", } i18n.tok = { inflections = "ante nimi", regular = "pali", infinitive = "ijo", imperative = "wile", adverbial = "ante pali", intransitive = "pali tawa ijo ala", transitive = "pali tawa ijo", } i18n.eo = { inflections = "fleksioj", regular = "regula", infinitive = "infinitiva", imperative = "imperativa", adverbial = "adverba", intransitive = "netransitiva", transitive = "transitiva", } return p
Summary:
Please note that all contributions to Vicky may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Vicky:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Template used on this page:
Module:Inflect senra/doc
(
edit
)
Search
Module
Discussion
Read
Edit
View history
Not logged in
Talk
Contributions
Create account
Log in
English
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Tools
Refresh
What links here
Related changes
Page information