Difference between revisions of "Template:Balinese Word"

(Pushed from BASAbali.)
(Pushed from BASAbaliWiki.)
Line 8: Line 8:
 
<div class="word-form media">
 
<div class="word-form media">
 
<div class="title">Media</div>
 
<div class="title">Media</div>
<h1 class="word">{{#if: {{{media|}}} | {{{media}}} | {{PAGETITLE}} }}{{Edit link}}</h1>{{#if:{{{media|}}} | {{#set:Media form={{{media|}}} }}  | {{#set:Media form={{PAGENAME}} }}  }}</div>
+
<h1 class="word">{{#if: {{{media|}}} | [[Media form::{{{media}}}]] | [[Media form::{{PAGETITLE}}]] }}{{Edit link}}</h1>{{#if:{{{script image|}}}|<div class="script-image">[[File:{{{script image|}}}|150px|link=]]</div>}}</div>
<div class="word-form root">
+
<div class="title">Root</div>
+
<div class="word">{{#if:{{{root|}}} | [[Derived from root::{{{root|}}}]] | {{Missing word form|root}}  }}</div></div>
+
 
<div class="word-form kasar">
 
<div class="word-form kasar">
<div class="title">Kasar</div>
+
<div class="title">{{int:basabali-word-kasar-heading}}</div>
 
<div class="word">{{#if:{{{kasar|}}} |[[Kasar form::{{{kasar|}}}]] | {{Missing word form|kasar}}  }}
 
<div class="word">{{#if:{{{kasar|}}} |[[Kasar form::{{{kasar|}}}]] | {{Missing word form|kasar}}  }}
 
</div></div>
 
</div></div>
 
<div class="word-form halus">
 
<div class="word-form halus">
<div class="title">Halus</div>
+
<div class="title">{{int:basabali-word-halus-heading}}</div>
 
<div class="word">{{#if:{{{halus|}}} | [[Halus form::{{{halus|}}}]] | {{Missing word form|halus}}  }}
 
<div class="word">{{#if:{{{halus|}}} | [[Halus form::{{{halus|}}}]] | {{Missing word form|halus}}  }}
 
</div></div>
 
</div></div>
 +
<div class="word-form northern">
 +
<div class="title">{{int:basabali-word-northern-heading}}</div>
 +
<div class="word">{{#if:{{{northern|}}} | [[Northern form::{{{root|}}}]] | {{Missing word form|northern}}  }}</div></div>
 
</div>
 
</div>
 
<div id="word-definitions"><!--  
 
<div id="word-definitions"><!--  
 
## include definitions variable to set definitions as semantic properties
 
## include definitions variable to set definitions as semantic properties
-->{{{definitions|}}}<!--
+
-->{{{definitions|}}}{{#ask:
 +
[[definition::+]][[language::{{int:lang}}]]
 +
| mainlabel=-
 +
|? definition
 +
|? credit
 +
|? language
 +
| link=none
 +
| format=template
 +
| template=Balinese_Word/Definition
 +
}}<!--
 
##English definitions query
 
##English definitions query
--><en>{{#if: {{#show: {{PAGENAME}} |? English definition }} |  {{#arraymap: {{#ask: [[{{PAGENAME}}]] |mainlabel=- |? English definition | format = array | manysep=:::}}|:::|x|* x| \n}} | No definition available. }}</en><!--
+
<en>{{#if: {{#show: {{PAGENAME}} |? English definition }} |  {{#arraymap: {{#ask: [[{{PAGENAME}}]] |mainlabel=- |? English definition | format = array | manysep=:::}}|:::|x|* x| \n}} | {{int:basabali-word-nodefinition}} }}</en><!--
 
##Balinese definitions query
 
##Balinese definitions query
--><ban>{{#if: {{#show: {{PAGENAME}} |? Balinese definition }} |  {{#arraymap: {{#ask: [[{{PAGENAME}}]] |mainlabel=- |? English definition | format = array | manysep=:::}}|:::|x|* x| \n}} | No definition available. }}</ban><!--
+
<ban>{{#if: {{#show: {{PAGENAME}} |? Balinese definition }} |  {{#arraymap: {{#ask: [[{{PAGENAME}}]] |mainlabel=- |? Balinese definition | format = array | manysep=:::}}|:::|x|* x| \n}} | {{int:basabali-word-nodefinition}} }}</ban><!--
 
##Indonesian definitions query
 
##Indonesian definitions query
--><id>{{#if: {{#show: {{PAGENAME}} |? Indonesian definition }} |  {{#arraymap: {{#ask: [[{{PAGENAME}}]] |mainlabel=- |? English definition | format = array | manysep=:::}}|:::|x|* x| \n}} | No definition available. }}</id>
+
<id>{{#if: {{#show: {{PAGENAME}} |? Indonesian definition }} |  {{#arraymap: {{#ask: [[{{PAGENAME}}]] |mainlabel=- |? Indonesian definition | format = array | manysep=:::}}|:::|x|* x| \n}} | {{int:basabali-word-nodefinition}} }}</id>-->
 
</div>
 
</div>
 
</div>
 
</div>
 
}}
 
}}
 
<div class="row">
 
<div class="row">
<div class="col-md-8 pull-right" id="usage-examples-column">
+
<div class="col-sm-8 pull-right" id="usage-examples-column">
 
<div id="usage-examples">
 
<div id="usage-examples">
<h2>Usage examples</h2>
+
<h2>{{int:basabali-word-examples-heading}}</h2>
{{{examples|}}}
+
{{#if:{{{examples|}}}|{{{examples|}}}|{{int:basabali-word-examples-none}} }}
<div class="add-link">[{{fullurl:{{FULLPAGENAME}}|action=formedit#examples}} Add another example]</div>
+
<div class="add-link">[{{fullurl:{{FULLPAGENAME}}|action=formedit#examples}} {{int:basabali-word-examples-addbuttontext}}]</div>
 
</div>
 
</div>
 +
<references group=example/>
 
</div><!--/col-->
 
</div><!--/col-->
<div class="col-md-4" id="related-column">
+
<div class="col-sm-4" id="related-column">
 
<div id="related-forms">
 
<div id="related-forms">
<h2><en>Other forms of ''{{{root|}}}''</en><id>Other forms of ''{{{root|}}}''</id><ban>Other forms of ''{{{root|}}}''</ban></h2>
+
{{#if:{{{root|}}}|
{{#ask:[[Derived from root::{{{root|}}} ]] |format=template | template=Balinese_Word/Related_word |link=none }}
+
<h2>{{int:basabali-word-root-heading}}</h2>
<div class="add-link">{{#forminput:form=Balinese Word|button text=Add another form|query string=Balinese Word[root]={{{root|}}} }}</div>
+
[[Derived from root::{{{root|}}} ]]
</div>
+
<h2>{{int:basabali-word-rootforms-heading|{{{root|}}} }}</h2>
 +
{{#ask:[[Derived from root::{{{root|}}} ]] |format=template | template=Balinese_Word/Related_word |link=none }}<div class="add-link">{{#forminput:form=Balinese Word|button text={{int:basabali-word-rootforms-addbuttontext}}|placeholder={{int:basabali-word-rootforms-placeholder}}|query string=Balinese Word[root]={{{root|}}} }}</div>
 +
|{{int:basabali-word-rootforms-none}}
 +
}}</div>
 
<div id="synonyms">
 
<div id="synonyms">
<h2>Synonyms</h2>{{#if: {{{synonyms|}}} | {{#arraymap:{{{synonyms|}}}|,|x|[[Synonymous with::x]]}} | <en>No synonyms listed</en><id>No synonyms listed</id><ban>No synonyms listed</ban>}}</div>
+
<h2>{{int:basabali-word-synonyms-heading}}</h2>{{#if: {{{synonyms|}}} | {{{synonyms|}}} | {{int:basabali-word-synonyms-none}} }}</div>
 +
<div id="atonyms">
 +
<h2>{{int:basabali-word-atonyms-heading}}</h2>{{#if: {{{atonyms|}}} | {{#arraymap:{{{atonyms|}}}|;|x|[[Atonymous with::x]]}} | {{int:basabali-word-atonyms-none}} }}</div>
 +
<div id="related-words">
 +
<h2>{{int:basabali-word-related-heading}}</h2>{{#if: {{{related words|}}} | {{#arraymap:{{{related words|}}}|;|x|[[Related to word::x]]}} | {{int:basabali-word-related-none}} }}</div>
 
<div id="translations">
 
<div id="translations">
<h2>Translations</h2>
+
<h2>{{int:basabali-word-translations-heading}}</h2>
<h3>English</h3>
+
<div class="lang en">
<div>{{#if: {{{english translations|}}} | {{{english translations|}}} | <en>No translations listed</en><id>No translations listed</id><ban>No translations listed</ban>}}</div>
+
<h3>{{int:basabali-word-translations-en-heading}}</h3>
<h3>Indonesian</h3>
+
<div>{{#if: {{{english translations|}}} | {{{english translations|}}} | {{int:basabali-word-translations-none}} }}</div>
<div>{{#if: {{{indonesian translations|}}} | {{{indonesian translations|}}} | <en>No translations listed</en><id>No translations listed</id><ban>No translations listed</ban>}}</div>
+
</div>
 +
<div class="lang id">
 +
<h3>{{int:basabali-word-translations-id-heading}}</h3>
 +
<div>{{#if: {{{indonesian translations|}}} | {{{indonesian translations|}}} | {{int:basabali-word-translations-none}} }}</div>
 
</div>
 
</div>
 +
</div><!--/#translations-->
 
</div><!--/col--></div><!--/row-->
 
</div><!--/col--></div><!--/row-->
 
[[Category:Balinese Words]]
 
[[Category:Balinese Words]]
Line 62: Line 83:
 
-->{{#set:Has form={{lc: {{{halus|}}} }} }}<!--
 
-->{{#set:Has form={{lc: {{{halus|}}} }} }}<!--
 
-->{{#set:Has form={{lc: {{{root|}}} }} }}<!--
 
-->{{#set:Has form={{lc: {{{root|}}} }} }}<!--
-->{{#arraymap:{{{english translations|}}}|,|x|{{#set: English equivalent={{lc:x}} }} }}<!--
+
-->{{#arraymap:{{{english translations|}}}|;|x|{{#set: English equivalent={{lc:x}} }} }}<!--
-->{{#arraymap:{{{indonesian translations|}}}|,|x|{{#set: Indonesian equivalent={{lc:x}} }} }}</includeonly>
+
-->{{#arraymap:{{{indonesian translations|}}}|;|x|{{#set: Indonesian equivalent={{lc:x}} }} }}</includeonly>

Revision as of 19:33, 16 September 2014

This is the "Balinese Word" template. It is used by the Balinese Word form to create new Balinese word definition pages.

Edit the page to see the template text.