Difference between revisions of "Template:Kbl10n"

From Second Life Wiki
Jump to navigation Jump to search
m
(Old Knowledge Base)
 
(17 intermediate revisions by one other user not shown)
Line 1: Line 1:
<onlyinclude><includeonly>{{#ifeq:{{{mode|}}}|ml|{{multi-lang/kb
<onlyinclude><includeonly>{{Kbl10n/{{#if:{{{mode|}}}|{{{mode|}}}|ml}}
|en={{{en|}}}
|en={{{en|}}}
|en_parature={{{en_parature|}}}
|blog={{{blog|}}}
|en_title={{{en_title|}}}
|en_title={{{en_title|}}}
|en_note={{{en_note|}}}
|en_up={{{en_up|}}}
|de={{{de|}}}
|de={{{de|}}}
|de_temp={{{de_temp|}}}
|de_nobox={{{de_nobox|}}}
|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|}}}
}}|
|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 [[Old 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>
{{!}}KB-ID: [[Template:Kbl10n/{{{en|}}}|{{{en|}}}]]
{{!}}{{{en_up|N/A}}}&nbsp;
{{!}}{{{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}}&nbsp;
{{!}}{{#if:{{{de_jira|}}}|{{Jira|{{{de_jira|}}}}}|no Jira}}&nbsp;
{{!}}{{{de_up|N/A}}}&nbsp;
{{!}}{{{de_note|}}}&nbsp;}}
{{#if:{{{fr|}}}{{{fr_jira|}}}|
{{!}}-
{{!}}French
{{!}}{{#if:{{{fr|}}}|[[{{{fr|}}}]]|not published or N/A}}&nbsp;
{{!}}{{#if:{{{fr_jira|}}}|{{Jira|{{{fr_jira|}}}}}|no Jira}}&nbsp;
{{!}}{{{fr_up|N/A}}}&nbsp;
{{!}}{{{fr_note|}}}&nbsp;}}
{{#if:{{{ja|}}}{{{ja_jira|}}}|
{{!}}-
{{!}}Japanese
{{!}}{{#if:{{{ja|}}}|[[{{{ja}}}]]|not published or N/A}}&nbsp;
{{!}}{{#if:{{{ja_jira|}}}|{{Jira|{{{ja_jira|}}}}}|no Jira}}&nbsp;
{{!}}{{{ja_up|N/A}}}&nbsp;
{{!}}{{{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 ==


Please create subpages with to this template with the name scheme: Template:Kbl10n/ENGLISH_KB_ID.
Please create subpages of this template with the name scheme: Template:Kbl10n/ENGLISH_KB_ID for each new localized KB article.


E.g.: [[Template:Kbl10n/5816]]
E.g.: [[Template:Kbl10n/5816]]
Line 59: Line 39:
  |en_note=
  |en_note=
  |en_up=
  |en_up=
  |de=<font color="blue">GERMAN-KB-ID</font>
  |de=<font color="blue">GERMAN-WIKI-LINK</font>
|de_title=<font color="blue">GERMAN-KB-TITLE</font> (optional, for hovertext)
  |de_jira=
  |de_jira=
  |de_note=
  |de_note=
Line 72: Line 51:
  |ja_note=
  |ja_note=
  |ja_up=
  |ja_up=
  |mode=<nowiki>{{{mode|ml}}}</nowiki>
  |mode=<nowiki>{{{mode|view}}}</nowiki>
  }}
  }}
</div>
</div>


The _jire variables can store the related [[Issue Tracker|Jira]] issue ID.
The _jira variables can store the related [[Issue Tracker|Jira]] issue ID.


The _up variables can store the date when the last update of the article occured.
The _up variables can store the date when the last update of the article occured.
Line 84: Line 63:
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.
Please don't touch the <code>|mode=<nowiki>{{{mode|view}}}</nowiki></code> variable.


== Example ==
== Example ==
Line 93: Line 72:
  |en_title=Xstreet Merchants and Shoppers FAQs
  |en_title=Xstreet Merchants and Shoppers FAQs
  |en_up=20/1/2009
  |en_up=20/1/2009
  |de=5830
  |de=Häufig gestellte Fragen von Xstreet-Händlern und Kunden (KB)
|de_title=Häufig gestellte Fragen von Xstreet-Händlern und Kunden
  |de_jira=CT-146
  |de_jira=CT-146
  |de_up=23/1/2009
  |de_up=23/1/2009
Line 101: Line 79:
  |ja=Xstreetで商品を販売購入するためのFAQ (KB)
  |ja=Xstreetで商品を販売購入するためのFAQ (KB)
  |ja_jira=CT-160
  |ja_jira=CT-160
  |mode=<nowiki>{{{mode|ml}}}</nowiki>
  |mode=<nowiki>{{{mode|view}}}</nowiki>
  }}
  }}
</div>
</div>
Line 109: Line 87:
The subtemplates of this template can be included with <code><nowiki>{{kbl10n/KB-ID}}</nowiki></code> to add the language bar to the connected KB article. E.g. <nowiki>{{</nowiki>[[Template:Kbl10n/5816|kbl10n/5816]]}} to [[FAQ Vendeurs Acheteurs Xstreet (KB)]] and [[Xstreetで商品を販売購入するためのFAQ (KB)]].
The subtemplates of this template can be included with <code><nowiki>{{kbl10n/KB-ID}}</nowiki></code> to add the language bar to the connected KB article. E.g. <nowiki>{{</nowiki>[[Template:Kbl10n/5816|kbl10n/5816]]}} to [[FAQ Vendeurs Acheteurs Xstreet (KB)]] and [[Xstreetで商品を販売購入するためのFAQ (KB)]].


This will create a language bar looking like this:
This will create a box in the sidebar, containing language links. Using mode=legacyml will result in a languagebar like this:


{{kbl10n/5816}}
{{kbl10n/5816|mode=legacyml}}




Line 120: Line 98:


{{kbl10n/5816|mode=table}}
{{kbl10n/5816|mode=table}}
== Linking ==
There are two problems with links in KB articles and this template is trying to solve them. These are:
*finding translated versions of the articles where the KB article is linking to
*finding translated articles which are linking to an english root rather than to a recently created translation
With [[Template:Kbl10n/Links]], it can be specified to which KB articles an KB article is linking to. The template then provides the tables of all linked to articles and the link to the translated version can easily be picked from these tables. Furthermore - because of the fact that the tables contain links -, the "[http://meta.wikimedia.org/wiki/Help:What_links_here "what links here"-feature] can be used to track which KB articles are linking to the new article.
== Usage ==
Say, you'd like to translate an article with the Knowledge Base ID XXXX.
*Create a new page at [[Template:Kbl10n/XXXX]].
*Write <font color="black"><nowiki>{{subst:kbl10n/subst}}</nowiki></font> as only content of the page and save it afterwards.
*Edit the newly created page again. You'll notice that the content changed and that it now contains the standart setup of the templates described above.
*Fill in the blanks (English issue ID, English article name, Jira IDs, ...)
*In case the article contains links to other KB articles, specify them at the <font><nowiki>{{kbl10n/Links}}</nowiki></font> template as described in [[Template:Kbl10n/Links]].
*Save your edit.
Contact [[User:Zai Lynch|Zai Lynch]] when you run into any problems or got questions.
== Related Articles ==
*[[CT Project Overview]]
*[[Special:Prefixindex/Template:Kbl10n|All subpages of this one]]

Latest revision as of 04:46, 28 July 2012


This template is supposed to provide a language bar for Old 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 of this template with the name scheme: Template:Kbl10n/ENGLISH_KB_ID for each new localized KB article.

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-WIKI-LINK
|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=
|mode={{{mode|view}}}
}}

The _jira 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.

Please don't touch the |mode={{{mode|view}}} variable.

Example

{{kbl10n
|en=5816
|en_title=Xstreet Merchants and Shoppers FAQs
|en_up=20/1/2009
|de=Häufig gestellte Fragen von Xstreet-Händlern und Kunden (KB)
|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|view}}}
}}

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 box in the sidebar, containing language links. Using mode=legacyml will result in a languagebar like this: