Difference between revisions of "Rockpi4/contribute"
(→Sobre este wiki) |
|||
Line 1: | Line 1: | ||
− | {{ | + | {{rockpi4_header}} |
{{Languages|rockpi4/contribute}} | {{Languages|rockpi4/contribute}} | ||
− | == | + | ==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. | |
− | == | + | ==Edit== |
− | # | + | # You must create an account to edit, check the nav bar Edit -> Personal -> Create account. After log in, you can edit the wiki page. |
− | # | + | # For the wiki syntax, please refer [https://www.mediawiki.org/wiki/Help:Formatting wiki fomatting] |
− | === | + | === 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> | <pre> | ||
<div class="col-md-12"> | <div class="col-md-12"> | ||
Line 24: | Line 24: | ||
</div> | </div> | ||
</pre> | </pre> | ||
− | + | Add your language code as above and save the template. | |
− | + | Each page with multiple language must include the template at the first line, following the page name separated by | , example of the first line of rockpi4 page: | |
<pre> | <pre> | ||
{{Languages|rockpi4}} | {{Languages|rockpi4}} | ||
</pre> | </pre> | ||
− | + | It will looks like this: | |
{{Languages|rockpi4}} | {{Languages|rockpi4}} | ||
− | + | Then click the language button to create the page for corresponding language. | |
− | === | + | ===Nav Bar=== |
− | + | Each product has its own nav bar for the user to find the content easier. To add that, include the [[Template:Rockpi4_header | rockpi4_header template]] in the beginning of the page, next line after the language template. The content is as below: | |
<pre> | <pre> | ||
Line 41: | Line 41: | ||
<div class="col-sm-12"> | <div class="col-sm-12"> | ||
<ul class="nav nav-pills nav-tabs-lighter"> | <ul class="nav nav-pills nav-tabs-lighter"> | ||
− | <li>[[rockpi4| | + | <li>[[rockpi4| Main]]</li> |
− | <li>[[rockpi4/getting_started | | + | <li>[[rockpi4/getting_started | Getting Started]]</li> |
<li>[[rockpi4/hardware | Hardware]]</li> | <li>[[rockpi4/hardware | Hardware]]</li> | ||
− | <li>[[rockpi4/downloads | | + | <li>[[rockpi4/downloads | Downloads]]</li> |
− | <li>[[rockpi4/FAQs | | + | <li>[[rockpi4/FAQs | FAQs]]</li> |
</ul> | </ul> | ||
</div> | </div> | ||
Line 51: | Line 51: | ||
</pre> | </pre> | ||
− | + | You can also add the nav bar for other language by adding a new template, [[Template:Rockpi4_header_es]] is an example. |
Revision as of 01:28, 25 November 2018
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.
Edit
- You must create an account to edit, check the nav bar Edit -> Personal -> Create account. After log in, you can edit the wiki page.
- For the wiki syntax, please refer wiki fomatting
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:
<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}}}}}/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>
Add your language code as above and save the template. Each page with multiple language must include the template at the first line, following the page name separated by | , example of the first line of rockpi4 page:
{{Languages|rockpi4}}
It will looks like this:
Then click the language button to create the page for corresponding language.
Each product has its own nav bar for the user to find the content easier. To add that, include the rockpi4_header template in the beginning of the page, next line after the language template. The content 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>
You can also add the nav bar for other language by adding a new template, Template:Rockpi4_header_es is an example.