Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Parse source: Difference between revisions

Template page
Added all upload form languages
Use template:own too
Line 1: Line 1:
{{#switch:{{ucfirst:{{lc:{{{1|}}}}}}}
{{#switch:{{ucfirst:{{lc:{{{1|}}}}}}}
<!-- Try all the translations of MediaWiki:UploadFormOwnWorkLabel -->
|<!-- MediaWiki:UploadFormOwnWorkLabel/af --> Oplaaier se eie werk (uploader's own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/af --> Oplaaier se eie werk (uploader's own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/an --> Treballo de qui la cargó (own work by uploader)
|<!-- MediaWiki:UploadFormOwnWorkLabel/an --> Treballo de qui la cargó (own work by uploader)
Line 42: Line 43:
|<!-- MediaWiki:UploadFormOwnWorkLabel/zh --> 上传者自己的作品 (own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/zh --> 上传者自己的作品 (own work)
|<!-- MediaWiki:UploadFormOwnWorkLabel/zh-hant --> 上載者自己的作品 (own work)={{int:UploadFormOwnWorkLabel}}
|<!-- MediaWiki:UploadFormOwnWorkLabel/zh-hant --> 上載者自己的作品 (own work)={{int:UploadFormOwnWorkLabel}}
<!-- Try all the translations in Template:Own -->
|<!-- af -->Eie werk
|<!-- an -->Treballo de qui la cargó
|<!-- ar -->عمل شخصي للرافع
|<!-- ast -->Trabajo propi
|<!-- be-tarask -->Уласны твор
|<!-- bg -->Собствена творба
|<!-- ca -->Treball propi
|<!-- cs -->Vlastní dílo
|<!-- da -->Eget arbejde
|<!-- de -->Eigene arbeit
|<!-- el -->Έργο αυτού που το ανεβάζει
|<!-- en -->Own work
|<!-- eo -->Propra verko
|<!-- es -->Trabajo propio
|<!-- et -->Üleslaadija oma töö
|<!-- fa -->اثر شخصی
|<!-- fi -->Oma työ
|<!-- fr -->Travail personnel
|<!-- gl -->Traballo propio
|<!-- he -->נוצר על ידי מעלה היצירה
|<!-- hr -->Vlastito djelo postavljača
|<!-- hu -->A feltöltő saját munkája
|<!-- id -->Karya sendiri
|<!-- it -->Lavoro proprio
|<!-- ja -->投稿者自身による作品
|<!-- km -->ការងារផ្ទាល់របស់អ្នកអាប់ឡូដ
|<!-- la -->Opus proprium
|<!-- lt -->Mano darbas
|<!-- mk -->Сопствено дело на подигнувачот
|<!-- nds -->Egen wark
|<!-- nds-nl -->Eigen waark
|<!-- nl -->Eigen werk
|<!-- no -->Eget arbeide
|<!-- oc -->Trabalh personal
|<!-- pdt -->Ejen woakj
|<!-- pl -->Praca własna
|<!-- pt -->Obra próprio
|<!-- ro -->Operă proprie
|<!-- ru -->Собственная работа
|<!-- si -->උඩුගතකරන්නාගේ ස්වකීය නිර්මාණයකි
|<!-- sk -->Vlastné dielo
|<!-- sl -->Sopstveno delo
|<!-- sv -->Eget arbete
|<!-- th -->งานของผู้อัปโหลดเอง
|<!-- tl/tgl -->Sariling gawa
|<!-- tr -->Yükleyenin kendi çalışması
|<!-- uk -->Власна робота
|<!-- vi -->Tác phẩm do chính người tải lên tạo ra
|<!-- zh -->上传者自己的作品
|<!-- zh-hant -->上載者自己的作品={{own}}
<!-- Can't parse it, just return it -->
| {{{1|}}}
| {{{1|}}}
}}<noinclude>
}}<noinclude>

Revision as of 14:27, 5 February 2009


Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:Parse source/doc.


Usage

This template should only be used in {{Information}} to parse the source field.

The template tries to match the message based on MediaWiki:UploadFormOwnWorkLabel or {{Own}}. When a match is made, the message is returned in the user's interface language.

To add a match based on MediaWiki:UploadFormOwnWorkLabel:

|<!-- MediaWiki:UploadFormOwnWorkLabel/<lang> --> {{subst:ucfirst:{{subst:lc:{{subst:MediaWiki:UploadFormOwnWorkLabel/<lang>}}}}}}

You might want to keep older revisions around or add them.

To add a match based on {{Own}} add:

|<!-- <lang> -->{{subst:ucfirst:{{subst:lc:Own work}}}}
//fhdjuf.hedhefd//!

You have to use the lc and ucfirst functions because the switch statement first converts all characters to lowercase and than the first character to uppercase again (to have case insensitive matching).

The use of {{Own}} in the information template won't cause a template loop ({{Own}} won't match and will just return).

See also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.