Difference between revisions of "Template:Kbl10n"

From Second Life Wiki
Jump to navigation Jump to search
m (Undo revision 282922 by Zai Lynch (Talk) seems to be evil...)
(seperating wrapper from styler)
Line 1: Line 1:
<onlyinclude><includeonly>{{#ifeq:{{{mode|}}}|ml|{{multi-lang/kb
<onlyinclude><includeonly>{{Kbl10n/{{#if:{{{mode|}}}|{{{mode|}}}|ml}}
|en={{{en|}}}
|en={{{en|}}}
|en_title={{{en_title|}}}
|en_title={{{en_title|}}}
|en_note={{{en_note|}}}
|de={{{de|}}}
|de={{{de|}}}
|de_title={{{de_title|}}}
|de_title={{{de_title|}}}
|de_jira={{{de_jira|}}}
|de_note={{{de_note|}}}
|de_up={{{de_up|}}}
|fr={{{fr|}}}
|fr={{{fr|}}}
|fr_jira={{{fr_jira|}}}
|fr_note={{{fr_note|}}}
|fr_up={{{fr_up|}}}
|ja={{{ja|}}}
|ja={{{ja|}}}
}}|<h3>[[Template:Kbl10n/{{{en|}}}|{{{en|}}}{{#if:{{{en_title|}}}|&#58; {{{en_title|}}}|}}]]</h3>
|ja_jira={{{ja_jira|}}}
{{{!}} style="border:1px solid #A3B1BF; text-align:left; background:#f5faff; width:90%"
|ja_note={{{ja_note|}}}
{{!}}-
|ja_up={{{ja_up|}}}
{{!}} style="background: #cee0f2; padding: 0.3em; text-align:center;"{{!}}'''Language'''
}}</includeonly></onlyinclude>
{{!}} style="background: #cee0f2; padding: 0.3em; text-align:center;"{{!}}'''Title'''
 
{{!}} style="background: #cee0f2; padding: 0.3em; text-align:center;"{{!}}'''Jira'''
This template is supposed to provide a language bar for [[Knowledge Base]] translations via [[Template:Kbl10n/ml]], as well as an easy method to document already translated pages via [[Template:Kbl10n/table]].
{{!}} style="background: #cee0f2; padding: 0.3em; text-align:center;"{{!}}'''Last Update'''
{{!}} style="background: #cee0f2; padding: 0.3em; text-align:center;"{{!}}'''Note'''
{{!}}-
{{!}}English
{{!}}<span class="plainlinks">[http://support.secondlife.com/ics/support/default.asp?deptID=4417&task=knowledge&questionID={{{en|}}}{{
#if:{{{en_title|}}}|<span title="{{{en_title|}}}">{{{en_title|}}}</span>|{{{en|}}}}}]</span>
{{!}}&nbsp;
{{!}}{{#if:{{{en_up|}}}|{{{en_up|}}}|N/A}}
{{!}}{{{en_note|}}}&nbsp;
{{#if:{{{de|}}}{{{de_jira|}}}|
{{!}}-
{{!}}German
{{!}}{{#if:{{{de|}}}|<span class="plainlinks">[http://support.secondlife.com/ics/support/default.asp?deptID=4802&task=knowledge&questionID={{{de|}}} {{#if:{{{de_title|}}}|<span title="{{{de_title|}}}">{{{de_title|}}}</span>|{{{de|}}}|}}]</span>|not published or N/A}}
{{!}}{{#if:{{{de_jira|}}}|{{Jira|{{{de_jira|}}}}}|no Jira}}
{{!}}{{#if:{{{de_up|}}}|{{{de_up|}}}|N/A}}
{{!}}{{{de_note|}}}&nbsp;}}
{{#if:{{{fr|}}}{{{fr_jira|}}}|
{{!}}-
{{!}}French
{{!}}{{#if:{{{fr|}}}|[[{{{fr|}}}]]|not published or N/A}}
{{!}}{{#if:{{{fr_jira|}}}|{{Jira|{{{fr_jira|}}}}}|no Jira}}
{{!}}{{#if:{{{fr_up|}}}|{{{fr_up|}}}|N/A}}
{{!}}{{{fr_note|}}}&nbsp;}}
{{#if:{{{ja|}}}{{{ja_jira|}}}|
{{!}}-
{{!}}Japanese
{{!}}{{#if:{{{ja|}}}|[[{{{ja}}}]]|not published or N/A}}
{{!}}{{#if:{{{ja_jira|}}}|{{Jira|{{{ja_jira|}}}}}|no Jira}}
{{!}}{{#if:{{{ja_up|}}}|{{{ja_up|}}}|N/A}}
{{!}}{{{ja_note|}}}&nbsp;}}
{{!}}{{bc}}}}</includeonly></onlyinclude>
This template is supposed to provide a language bar for [[Knowledge Base]] translations via [[Template:Multi-lang/kb]], as well as an easy method to document already translated pages.


== Setup ==
== Setup ==
Line 72: Line 47:
  |ja_note=
  |ja_note=
  |ja_up=
  |ja_up=
|mode=<nowiki>{{{mode|ml}}}</nowiki>
  }}
  }}
</div>
</div>
Line 83: Line 57:


It is not required to add info to all variables.
It is not required to add info to all variables.
Please don't touch the <code><nowiki>|mode={{{mode|ml}}}</nowiki></code> variable.


== Example ==
== Example ==

Revision as of 03:06, 18 March 2009


This template is supposed to provide a language bar for Knowledge Base translations via Template:Kbl10n/ml, as well as an easy method to document already translated pages via Template:Kbl10n/table.

Setup

Please create subpages with to this template with the name scheme: Template:Kbl10n/ENGLISH_KB_ID.

E.g.: Template:Kbl10n/5816

Syntax:

{{kbl10n
|en=ENGLISH-KB-ID
|en_title=ENGLISH-KB-TITLE (optional, for hovertext)
|en_note=
|en_up=
|de=GERMAN-KB-ID
|de_title=GERMAN-KB-TITLE (optional, for hovertext)
|de_jira=
|de_note=
|de_up=
|fr=FRENCH-WIKI-LINK
|fr_jira=
|fr_note=
|fr_up=
|ja=JAPANESE WIKI LINK
|ja_jira=
|ja_note=
|ja_up=
}}

The _jire variables can store the related Jira issue ID.

The _up variables can store the date when the last update of the article occured.

The _note variables can store additional notes.

It is not required to add info to all variables.

Example

{{kbl10n
|en=5816
|en_title=Xstreet Merchants and Shoppers FAQs
|en_up=20/1/2009
|de=5830
|de_title=Häufig gestellte Fragen von Xstreet-Händlern und Kunden
|de_jira=CT-146
|de_up=23/1/2009
|fr=FAQ Vendeurs Acheteurs Xstreet (KB)
|fr_jira=CT-159
|ja=Xstreetで商品を販売購入するためのFAQ (KB)
|ja_jira=CT-160
|mode={{{mode|ml}}}
}}

Inclusion

The subtemplates of this template can be included with {{kbl10n/KB-ID}} to add the language bar to the connected KB article. E.g. {{kbl10n/5816}} to FAQ Vendeurs Acheteurs Xstreet (KB) and Xstreetで商品を販売購入するためのFAQ (KB).

This will create a language bar looking like this:


Furthermore, they can be included in documentation pages in order to keep track of all currently published articles and their translations/roots. To use the template in a documentation page, enter {{kbl10n/KB-ID|mode=table}}. E.g. {{kbl10n/5816|mode=table}}.

This will create a table, looking like this:


Xstreet Merchants and Shoppers FAQs: Xstreet Merchants and Shoppers FAQs

Language Title Jira Last Update Note
English Merchants and Shoppers FAQs Xstreet Merchants and Shoppers FAQs   N/A  
German Häufig gestellte Fragen von Xstreet-Händlern und Kunden CT-146 23/1/2009  
French FAQ Vendeurs Acheteurs Xstreet CT-159 27/1/2009  
Japanese Xstreetで商品を販売購入するためのFAQ CT-160 18/3/2009