Please enable javascript, or click here to visit my ecommerce web site powered by Shopify.
Jump to: navigation, search

Difference between revisions of "Rockpi4/contribute"

(Nav Bar)
m (Added a bit more information to How to edit)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{rockpi4_header_es}}
+
{{rockpi4_header}}
 
{{Languages|rockpi4/contribute}}
 
{{Languages|rockpi4/contribute}}
  
==Sobre este wiki==
+
==About this wiki==
  
El wiki de Radxa es un lugar para compartir información, guías y tutoriales de los productos de Radxa. El wiki está abierto para que te registres, es mantenido por la comunidad y el equipo de Radxa. Eres libre de añadir/editar información relacionada sobre los productos de Radxa en esta página. La mayoría de páginas pueden ser editadas sin permisos, algunas páginas del equipo que pensamos son importantes están protegidas.
+
Radxa wiki is the place gathering info, guides and tutorial of Radxa products. The wiki is open to register and maintained by the community and Radxa team. Feel free to add/edit radxa product's related info on the wiki page. Most of the pages can be edited without permission, some pages the team think important are protected.
  
==Edición==
+
==How to edit==
# Debes crear una cuenta, pulsando en Edit -> Personal -> Create account. Después de "logearte" (registrarte en el wiki), podrás editar la página del wiki.
+
# You must create an account to edit, check the top menu '''[https://wiki.radxa.com/mw/index.php?title=Special:UserLogin&returnto=Rockpi4%2Fcontribute&type=signup Edit -> Personal -> Create account]'''. The forum account won't work.
# Para saber sobre la sintaxis del wiki, mira en [https://www.mediawiki.org/wiki/Help:Formatting/es Dando formato al wiki]
+
# After logging in, you can edit the wiki page by clicking '''Edit -> Edit''' in the top menu.
 +
# For the wiki syntax, please refer [https://www.mediawiki.org/wiki/Help:Formatting wiki fomatting]
 +
# Always '''preview''' your edit bebfore save
 +
 
 +
==Special templates==
 +
 
 +
===1. Nav Bar===
 +
Each product has its own nav bar for the user to find the content easier. To add that, include the following at the first line of the page:
  
=== Múltiples Lenguajes ===
 
El wiki soporta múltiples lenguajes usando [Template:Languages | plantilla de lenguaje]. Si quieres añadir tu lenguaje, edita la [Template:Languages | plantilla de lenguaje] primero. Su contenido es el siguiente:
 
 
<pre>
 
<pre>
<div class="col-md-12">
+
    {{rockpi4_header}}
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|{{#language:en}}]]</div>
+
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh_cn|{{#language:zh-cn}}]]</div>
+
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh_tw|{{#language:zh-tw}}]]</div>
+
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/ja_JP|{{#language:ja}}]]</div>
+
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/fr_FR|{{#language:fr}}]]</div>
+
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/es_es|{{#language:es}}]]</div>
+
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/de_DE|{{#language:de}}]]</div>
+
<div class="box-Title"></div>
+
</div>
+
</pre>
+
Añade tu código de lenguaje como se hizo arriba y salva la plantilla.
+
Cada página con múltiples lenguajes debe incluir la plantilla en la primera línea, seguido del nombre de la página separado por | , ejemplo de la primera línea de la página del rockpi4:
+
<pre>
+
{{Languages|rockpi4}}
+
 
</pre>
 
</pre>
Se verá así:
 
{{Languages|rockpi4}}
 
  
Haz clic entonces en el botón lenguaje para crear la página correspondiente al lenguaje en cuestión.
+
The content of [[Template:Rockpi4_header | rockpi4_header template]] is as below:
 
+
===Barra de Navegación===
+
Cada producto tiene su propia barra de navegación para que el usuario encuentre los contenidos fácilmente. Para añadirla, incluye la [[Template:Rockpi4_header | plantilla de cabecera del Rockpi 4 al comienzo de la página, en la siguiente línea después de la plantilla de lenguaje. El contenido se mostrará así:  
+
  
 
<pre>
 
<pre>
Line 51: Line 37:
 
</pre>
 
</pre>
  
También puedes añadir la barra de navegación para otro idioma añadiendo una nueva plantlla, [[Template:Rockpi4_header_es]] es un ejemplo.
+
It looks like below:
 +
----
 +
{{rockpi4_header}}
 +
----
 +
 
 +
You can also add the nav bar for other language by adding a new template, [[Template:Rockpi4_header_es]] and [[Template:Rockpi4_header_zh_cn]] is an example.
 +
 
 +
 
 +
=== 2. Multiple Language ===
 +
The wiki supports multiple language by using the [[Template:Languages | language template]]. If you want to add your language, edit [[Template:Languages | language template]] first. It's content as below:
 +
 
 +
<pre>
 +
<div class="col-md-12">
 +
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|{{#language:en}}]]</div>
 +
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh_cn|{{#language:zh-cn}}]]</div>
 +
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/es_es|{{#language:es}}]]</div>
 +
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/de_DE|{{#language:de}}]]</div>
 +
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/pt_BR|{{#language:pt-br}}]]</div>
 +
<div class="box-Title"></div>
 +
</div>
 +
</pre>
 +
 
 +
Add your language code as above and save the template.
 +
 
 +
Each page with multiple language support must include the template at the second line, next to the Nav Bar. The page name must be passed to the template after the | sign, example of the getting started page of ROCK Pi 4:
 +
 
 +
<pre>
 +
{{Languages|rockpi4/getting_started}}
 +
</pre>
 +
 
 +
It will looks like this:
 +
----
 +
{{Languages|rockpi4/getting_started}}
 +
----
 +
Then click the language button to create/goto the ROCK Pi 4 getting started page of corresponding language.
 +
 
 +
'''Note:'''
 +
 
 +
When you translate a page, which has link to other page on the same wiki, you should add the country code in the url, so that the user will always jump to the destination page of the same language.
 +
 
 +
<pre>In English version, link to getting started page is [[Rockpi4/getting_started]]</pre>
 +
<pre>For the Simplified Chinese version, the link should be changed to  [[Rockpi4/getting_started/zh_cn]].</pre>
 +
 
 +
'''Remember:'''
 +
 
 +
* Germany content page url always ends with de_DE
 +
* Simplified Chinese content page url always ends with zh_cn
 +
* Spanish content page url always ends with es_es
 +
* ...
 +
 
 +
===3. Breadcrumb===
 +
If the page depth is deeper than 2, a breadcrumb should be added to the beginning of the page for the user to go back to the upper level page.
 +
 
 +
<pre>
 +
    [[rockpi4 | ROCK Pi 4]] > [[rockpi4/install | Install]] > [[rockpi4/install/eMMC | Install on eMMC module]]
 +
</pre>
 +
It looks like this:
 +
 
 +
    [[rockpi4 | ROCK Pi 4]] > [[rockpi4/install | Install]] > [[rockpi4/install/eMMC | Install on eMMC module]]
 +
 
 +
==Community Contributions==
 +
* HANLLEL translated the Spanish page.
 +
* Beachtier  translated the Germany page.

Latest revision as of 08:26, 26 March 2020

About this wiki

Radxa wiki is the place gathering info, guides and tutorial of Radxa products. The wiki is open to register and maintained by the community and Radxa team. Feel free to add/edit radxa product's related info on the wiki page. Most of the pages can be edited without permission, some pages the team think important are protected.

How to edit

  1. You must create an account to edit, check the top menu Edit -> Personal -> Create account. The forum account won't work.
  2. After logging in, you can edit the wiki page by clicking Edit -> Edit in the top menu.
  3. For the wiki syntax, please refer wiki fomatting
  4. Always preview your edit bebfore save

Special templates

1. Nav Bar

Each product has its own nav bar for the user to find the content easier. To add that, include the following at the first line of the page:

    {{rockpi4_header}}

The content of rockpi4_header template is as below:

<div class="col-md-12">
<div class="col-sm-12">
      <ul class="nav nav-pills nav-tabs-lighter">
        <li>[[rockpi4| Main]]</li>
        <li>[[rockpi4/getting_started | Getting Started]]</li>
        <li>[[rockpi4/hardware | Hardware]]</li>
        <li>[[rockpi4/downloads | Downloads]]</li>
        <li>[[rockpi4/FAQs | FAQs]]</li>
      </ul>
</div>
</div>

It looks like below:



You can also add the nav bar for other language by adding a new template, Template:Rockpi4_header_es and Template:Rockpi4_header_zh_cn is an example.


2. Multiple Language

The wiki supports multiple language by using the language template. If you want to add your language, edit language template first. It's content as below:

<div class="col-md-12">
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|{{#language:en}}]]</div> 
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/zh_cn|{{#language:zh-cn}}]]</div> 
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/es_es|{{#language:es}}]]</div> 
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/de_DE|{{#language:de}}]]</div> 
<div class="btn btn-primary pull-right"><i class="fa fa-language"></i> [[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}/pt_BR|{{#language:pt-br}}]]</div>
<div class="box-Title"></div>
</div>

Add your language code as above and save the template.

Each page with multiple language support must include the template at the second line, next to the Nav Bar. The page name must be passed to the template after the | sign, example of the getting started page of ROCK Pi 4:

{{Languages|rockpi4/getting_started}}

It will looks like this:



Then click the language button to create/goto the ROCK Pi 4 getting started page of corresponding language.

Note:

When you translate a page, which has link to other page on the same wiki, you should add the country code in the url, so that the user will always jump to the destination page of the same language.

In English version, link to getting started page is [[Rockpi4/getting_started]]
For the Simplified Chinese version, the link should be changed to  [[Rockpi4/getting_started/zh_cn]].

Remember:

  • Germany content page url always ends with de_DE
  • Simplified Chinese content page url always ends with zh_cn
  • Spanish content page url always ends with es_es
  • ...

3. Breadcrumb

If the page depth is deeper than 2, a breadcrumb should be added to the beginning of the page for the user to go back to the upper level page.

    [[rockpi4 | ROCK Pi 4]] > [[rockpi4/install | Install]] > [[rockpi4/install/eMMC | Install on eMMC module]]

It looks like this:

    ROCK Pi 4 >  Install >  Install on eMMC module

Community Contributions

  • HANLLEL translated the Spanish page.
  • Beachtier translated the Germany page.