檢視 模板:Languages 的原始碼
←
模板:Languages
前往:
導覽
、
搜尋
由於下列原因,您沒有權限進行 編輯此頁面 的動作:
您請求的操作只有這個群組的使用者能使用:
使用者
此頁面被保護無法編輯,因為此頁面被以下開啟 "連鎖保護" 選項的一頁保護頁面引用:
首頁
您可以檢視並複製此頁面的原始碼。
== Template == <onlyinclude><div class="LanguageLinks"> <table width="100%"> <tr valign="top" style="background: #EEF3E2"> <td style="width: 25px; padding-left: 0.5em;">[[Image:Geographylogo.png|25px|Languages]]</td> <td style="width: 10px; white-space: nowrap; padding: 4px 1em 0 0.5em; border-right: 1px solid #aaaaaa;">'''[[Project:Language policy|Languages]]:''' </td><td style="padding: 1px 1em 0; background: #F6F9ED;"> '''[[{{{1|:{{NAMESPACE}}:{{BASEPAGENAME}}}}}|中文]]''' {{Languages/Lang|ar|{{{1|}}}}} {{Languages/Lang|br|{{{1|}}}}} {{Languages/Lang|ca|{{{1|}}}}} {{Languages/Lang|cs|{{{1|}}}}} {{Languages/Lang|de|{{{1|}}}}} {{Languages/Lang|el|{{{1|}}}}} {{Languages/Lang|en|{{{1|}}}}} {{Languages/Lang|es|{{{1|}}}}} {{Languages/Lang|fa|{{{1|}}}}} {{Languages/Lang|fi|{{{1|}}}}} {{Languages/Lang|fr|{{{1|}}}}} {{Languages/Lang|he|{{{1|}}}}} {{Languages/Lang|hu|{{{1|}}}}} {{Languages/Lang|id|{{{1|}}}}} {{Languages/Lang|it|{{{1|}}}}} {{Languages/Lang|ja|{{{1|}}}}} {{Languages/Lang|ko|{{{1|}}}}} {{Languages/Lang|mr|{{{1|}}}}} {{Languages/Lang|nl|{{{1|}}}}} {{Languages/Lang|no|{{{1|}}}}} {{Languages/Lang|oc|{{{1|}}}}} {{Languages/Lang|pl|{{{1|}}}}} {{Languages/Lang|pt|{{{1|}}}}} {{Languages/Lang|ro|{{{1|}}}}} {{Languages/Lang|ru|{{{1|}}}}} {{Languages/Lang|sq|{{{1|}}}}} {{Languages/Lang|sr|{{{1|}}}}} {{Languages/Lang|sv|{{{1|}}}}} {{Languages/Lang|th|{{{1|}}}}} {{Languages/Lang|vi|{{{1|}}}}} {{Languages/Lang|yue|{{{1|}}}}} {{Languages/Lang|zh|{{{1|}}}}} {{Languages/Lang|zh-hans|{{{1|}}}}} {{Languages/Lang|zh-hant|{{{1|}}}}} </td></tr></table></div></onlyinclude> == Syntax == <nowiki>{{{Languages|PageName}}}</nowiki> * '''PageName''' (optional) - the name of the page to display language links for. If omitted then the English version of the current page is used. This parameter can normally be omitted, as it is only required if you want to link to a page other than the one you place the template on, which is very uncommon. If this parameter is used on a sub-page make sure you supply the root name, not the full page name (e.g. on [[MediaWiki/fr]] you would need to use <code><nowiki>{{{Languages|MediaWiki}}}</nowiki></code> and not <code><nowiki>{{{Languages|MediaWiki/fr}}}</nowiki></code>). == Usage == The template should only be placed on pages that exist in more than one language, and it should be placed in the same location on each translation of the page. The English version of a page is always the main version, with all other languages as sub-pages, named using the appropriate language code (see below). For example, on the Main Page you would include the text <code><nowiki>{{{Languages}}}</nowiki></code>, both on [[Main Page]] itself, and on each of its language sub-pages. The template automatically creates links to any language sub-pages that exist, e.g. <tt>Main Page/ja<tt>, <tt>Main Page/fr</tt>, and ignores non-existant languages. See [[Project:Language policy]] for further details about translating pages. == Supported languages == This shows you the name of each language's sub-page (using ''Main Page'' as an example). Other languages may be added easily as necessary. Please use the appropriate [[meta:List of Wikipedias|prefix, as used on Wikipedia]] when adding a new language. Please do ''not'' add languages for which no pages exist yet, as this will increase the time needed to include the template without adding any benefit (languages are only displayed to the user when the relevant page exists). The link on the language names goes to the Wikipedia in that language. '''If no Wikipedia in your language exists, do not add pages in that language to MediaWiki.org!''' This wiki is not the place for language advocacy - please go through the correct channels, and once your language has a Wikipedia then please return to add content here. {| border="1" cellpadding="5" ! Page Name || Language |- | Main Page || [[:en:|English]] |- | Main Page'''/zh-hant''' || Chinese (Traditional) |} == Example == Here is how the language bar looks on the [[MediaWiki]] page: {{Languages|MediaWiki}} [[Category:Language templates]]
此頁面使用了以下模板:
模板:Languages
(
檢視原始碼
)
模板:Languages/Lang
(
檢視原始碼
)
返回「
模板:Languages
」頁面
導覽選單
個人工具
登入
命名空間
模板
討論
變體
檢視
閱讀
檢視原始碼
檢視歷史
更多
搜尋
智財權專區
國立中央大學保護智慧財產權專區
導覽
首頁
熱門頁面
近期變更
隨機頁面
分類
版權訊息
說明
網站日誌
服務問題集
新生必讀文件
電算中心各項服務SOP
行政部門各類服務
圖書館
電子公文常見問題
網路服務
Email
VoIP
校園軟體
BB教學
網路管理維護
電腦教室管理
桃園區網中心
ServiceDesk
技術文件
系統管理
資通安全
程式設計
資料庫管理
多媒體應用
工具
連結至此的頁面
相關變更
特殊頁面
頁面資訊