Lompat ke isi

Templat:Numrec: Perbedaan antara revisi

Dari Wikipedia bahasa Indonesia, ensiklopedia bebas
Konten dihapus Konten ditambahkan
kTidak ada ringkasan suntingan
Tidak ada ringkasan suntingan
Tag: Suntingan visualeditor-wikitext
 
(11 revisi perantara oleh pengguna yang sama tidak ditampilkan)
Baris 1: Baris 1:
{{#ifeq: {{{asof}}}|S|{{{alt|As of}}}{{sp}}{{#if: {{Numrec/{{{1|Pal}}}|D}}|{{Numrec/{{{1|Pal}}}|D}}{{sp}}}}{{#if: {{Numrec/{{{1|Pal}}}|M}}|{{Numrec/{{{1|Pal}}}|M}}{{sp}}}}{{Numrec/{{{1|Pal}}}|Y}},{{sp}}}}{{#if: {{{alt2|}}}|{{{alt2}}}{{sp}}}}{{#ifeq: {{{link}}}|N|{{#if: {{{2|}}}|{{{2}}}&nbsp;}}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/{{{1|Pal}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}|{{{pcent}}}}}|1}}|{{#expr:{{Numrec/{{{1|Pal}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}}{{#if:{{{3|}}}|&nbsp;{{{3}}} }}|[[Pengakuan internasional {{Numrec/{{{1|Pal}}}|NAME}}|{{#if: {{{2|}}}|{{{2}}}&nbsp;}}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/{{{1|Pal}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}}|{{{pcent}}}}}|1}}|{{#expr:{{Numrec/{{{1|Pal}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}}{{#if:{{{3|}}}|&nbsp;{{{3}}} }}]]}}{{#ifeq:{{{asof}}}|E|{{sp}}{{{alt|as of}}}{{sp}}{{#if: {{Numrec/{{{1|Pal}}}|D}}|{{Numrec/{{{1|Pal}}}|D}}{{sp}}}}{{#if:{{Numrec/{{{1|Pal}}}|M}}|{{Numrec/{{{1|Pal}}}|M}}{{sp}}}}{{Numrec/{{{1|Pal}}}|Y}} }}<noinclude>{{documentation
{{#ifeq: {{{asof}}}|S|{{{alt|Per}}}{{sp}}{{#if: {{Numrec/{{{1|Palestine}}}|D}}|{{Numrec/{{{1|Palestine}}}|D}}{{sp}}}}{{#if: {{Numrec/{{{1|Palestine}}}|M}}|{{Numrec/{{{1|Palestine}}}|M}}{{sp}}}}{{Numrec/{{{1|Palestine}}}|Y}},{{sp}}}}{{#if: {{{alt2|}}}|{{{alt2}}}{{sp}}}}{{#ifeq: {{{link}}}|N|{{#if: {{{2|}}}|{{{2}}}&nbsp;}}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}|{{{pcent}}}}}|1}}|{{#ifeq: {{{spell}}}|N|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}} }}|{{#ifexpr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}<10 | {{spellnum|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}} | {{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}} }}}}}}{{#if:{{{3|}}}|&nbsp;{{{3}}} }}|[[Pengakuan internasional terhadap {{Numrec/{{{1|Palestine}}}|NAME}}|{{#if: {{{2|}}}|{{{2}}}&nbsp;}}{{#if: {{{pcent|}}}|{{pct|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}|{{#ifeq:{{{pcent}}}|UN|{{UNnum}}|{{{pcent}}}}}|1}}|{{#ifeq: {{{spell}}}|N|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}} }}|{{#ifexpr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}<10 | {{spellnum|{{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}}}} | {{#expr:{{Numrec/{{{1|Palestine}}}|{{#if: {{{W|}}}|W|N}} }}+{{{N|0}}}}} }}}}}}{{#if:{{{3|}}}|&nbsp;{{{3}}} }}]]}}{{#ifeq:{{{asof}}}|E|{{sp}}{{{alt|per}}}{{sp}}{{#if: {{Numrec/{{{1|Palestine}}}|D}}|{{Numrec/{{{1|Palestine}}}|D}}{{sp}}}}{{#if:{{Numrec/{{{1|Palestine}}}|M}}|{{Numrec/{{{1|Palestine}}}|M}}{{sp}}}}{{Numrec/{{{1|Palestine}}}|Y}} }}<noinclude>{{documentation
|content =
|content =
Templat ini menampilkan jumlah anggota PBB yang telah mengakui sebuah negara lain.
Templat ini digunakan untuk menampilkan jumlah negara anggota PBB saat ini yang mengakui suatu negara tertentu, khususnya yang bukan merupakan anggota PBB. Untuk memperbarui jumlah, tanggal, atau nama yang digunakan oleh templat ini, silakan mengubahnya pada subtemplat terkait berikut.


==== Daftar subtemplat ====
==== Daftar subtemplat ====
{{Special:PrefixIndex/Template:Numrec/}}
{{Special:PrefixIndex/Template:Numrec/|hideredirects=1}}


=== Penggunaan ===
=== Penggunaan ===
Parameter pertama berupa nama subtemplat templat ini, misalnya <code>Pal</code> untuk {{tl|Numrec/Pal}}. Ynag kedua dan ketiga memasukkan teks yang telah diwikifikasi sebelum dan sesudah angkanya. Parameter lainnya adalah:
Parameter pertama menggunakan judul subtemplat yang terkait dengan negara bersangkutan, misalnya <code>Palestine</code> untuk {{tl|Numrec/Palestine}}. Parameter kedua digunakan sebagai tampilan dalam pranala wiki sebelum bilangan jumlah negara, sedangkan parameter ketiga untuk sesudah bilangan jumlah negara. Parameter opsional lainnya, yakni:
* <code>asof = S/E</code> untuk menampilkan frasa "Per DD/MMMM/YYYY". Masukan <code>S</code> menempatkannya sebelum pranala wiki, sementara <code>E</code> menempatkannya sesudah pranala.
<i>
* <code>asof = S</code> to turn on the "As of" prefix (start)
* <code>alt</code> untuk mengubah kata "Per" pada frasa "Per DD/MMMM/YYYY" menjadi teks masukan.
* <code>asof = E</code> to turn on the "as of" suffix (end)
* <code>alt2</code> untuk meletakkan frasa sisipan di antara frasa "Per DD/MMMM/YYYY" dan teks pranala wiki.
* <code>alt = foo</code> to change the "As of" prefix to "foo"
* <code>link = N</code> untuk mematikan pranala.
* <code>alt2 = bar</code> to add "bar" after the "As of" date and before the wikilinked text
* <code>spell = N</code> untuk mematikan fungsi mengubah angka 1-9 menjadi huruf-huruf.
* <code>pcent = angka</code> untuk membuat persentase dari keseluruhan "angka". Jika masukan pcent=UN, persentase menggunakan jumlah total negara anggota PBB.
* <code>link = N</code> to turn off linking
* <code>N = angka</code> menghasilkan bilangan "Jumlah negara yang mengakui kedaulatannya + N". Masukan ini sangat berguna pada situasi ketika negara-negara nonanggota UN juga dimasukkan dalam hitungan.
* <code>pcent = total number</code> to add a percentage out of "total number". If pcent=UN then the total number of UN member states is used.
* <code>W = Y</code> menghasilkan bilangan jumlah negara yang menarik pengakuannya.
* <code>N = number</code> outputs "Number of recognizers + N". This is useful in situations where non-UN member states are to be included in the total.

</i>
=== Contoh ===
=== Contoh ===
* <code><nowiki>{{Numrec|Palestine|ada|negara}}</nowiki></code> → {{Numrec|Palestine|ada|negara}}
<i>
* <code><nowiki>{{Numrec|Pal|the|countries}}</nowiki></code> &rarr; {{Numrec|Pal|the|countries}}
* <code><nowiki>{{Numrec|Palestine|ada|negara|link=N}}</nowiki></code> {{Numrec|Palestine|ada|negara|link=N}}
* <code><nowiki>{{Numrec|Pal|the|countries|link=N}}</nowiki></code> &rarr; {{Numrec|Pal|the|countries|link=N}}
* <code><nowiki>{{Numrec|Abkhazia|ada|negara}}</nowiki></code> {{Numrec|Abkhazia|ada|negara}}
* <code><nowiki>{{Numrec|Pal|although|of the countries|link=N|pcent=193}}</nowiki></code> &rarr; {{Numrec|Pal|although|of the countries|link=N|pcent=193}}
* <code><nowiki>{{Numrec|Abkhazia|ada|negara|spell=N}}</nowiki></code> {{Numrec|Abkhazia|ada|negara|spell=N}}
* <code><nowiki>{{Numrec|Pal|a total of|countries ...|link=N|asof=S}}</nowiki></code> &rarr; {{Numrec|Pal|a total of|countries ...|link=N|asof=S}}
* <code><nowiki>{{Numrec|Palestine|meskipun|dari keseluruhan negara di dunia|link=N|pcent=193}}</nowiki></code> {{Numrec|Palestine|meskipun|dari keseluruhan negara di dunia|link=N|pcent=193}}
* <code><nowiki>{{Numrec|Pal|a total of|countries ...|link=N|asof=S|alt=as of }}</nowiki></code> &rarr; {{Numrec|Pal|a total of|countries ...|link=N|asof=S|alt=as of }}
* <code><nowiki>{{Numrec|Palestine|dengan total|negara ...|link=N|asof=S}}</nowiki></code> {{Numrec|Palestine|dengan total|negara ...|link=N|asof=S}}
* <code><nowiki>{{Numrec|Pal|a total of|countries ...|link=N|asof=E}}</nowiki></code> &rarr; {{Numrec|Pal|a total of|countries ...|link=N|asof=E}}
* <code><nowiki>{{Numrec|Palestine|dengan total|negara ...|link=N|asof=S|alt=per }}</nowiki></code> {{Numrec|Palestine|dengan total|negara ...|link=N|asof=S|alt=per }}
* <code><nowiki>{{Numrec|Pal|a total of|countries ...|link=N|asof=E|alt=, by }}</nowiki></code> &rarr; {{Numrec|Pal|a total of|countries ...|link=N|asof=E|alt=, by }}
* <code><nowiki>{{Numrec|Palestine|dengan total|negara ...|link=N|asof=E}}</nowiki></code> {{Numrec|Palestine|dengan total|negara ...|link=N|asof=E}}
* <code><nowiki>{{Numrec|Palestine|dengan total|negara ...|link=N|asof=E|alt=, pada }}</nowiki></code> → {{Numrec|Palestine|dengan total|negara ...|link=N|asof=E|alt=, pada }}
</i>
* <code><nowiki>{{Numrec|Palestine|sejumlah|negara yang mengakui kedaulatan Palestina|asof=S|alt2=ada}}</nowiki></code> → {{Numrec|Palestine|sejumlah|negara yang mengakui kedaulatan Palestina|asof=S|alt2=ada}}
}}
}}

<templatedata>
{
"params": {
"1": {
"label": "State",
"description": "State of limited recognition",
"default": "Palestine",
"required": true,
"type": "string"
},
"2": {
"label": "linked text before number",
"example": "\"the\", \"a total of\"",
"type": "string",
"description": "Text before number/percent included in the wikilink"
},
"3": {
"label": "linked text after number",
"example": "that recognize Kosovo",
"type": "string",
"description": "Text after the number/percent included in the wikilink"
},
"asof": {
"label": "Show 'as of'?",
"description": "Shows 'as of' at start or end",
"example": "S (start), E (end)",
"type": "string",
"suggested": true
},
"alt": {
"label": "Alternate prefix/suffix text",
"description": "Replaces 'As of' with the text entered",
"example": "\", by\"",
"type": "string"
},
"alt2": {
"label": "text before wikilink",
"type": "unbalanced-wikitext",
"description": "Text included between the date (if shown) and wikilinked text"
},
"link": {
"label": "Show link?",
"description": "If 'N', disables links",
"example": "N",
"type": "string"
},
"pcent": {
"aliases": [
"percent"
],
"label": "Show as percent?",
"description": "If a number, shows percent of countries recognizing the state",
"example": "UN (or, \"total number\")",
"type": "string"
},
"W": {
"label": "States that withdrew recognition?",
"description": "If 'Y', shows states that withdrew recognition instead of currently extend",
"example": "Y",
"type": "string",
"aliases": [
"show_withdrawn"
]
},
"N": {
"label": "UN non-member states recognizing",
"description": "Number of states which have extended recognition",
"example": "4",
"type": "number"
},
"spell": {
"label": "Spell numbers less than 10?",
"description": "If 'N', lists numbers less than 10 as integers (default is to spell them out)",
"example": "N",
"type": "string"
}
},
"description": "This template is used to display the current number of member states which recognize a particular state. To update the number, month, year, or name produced by this template, you must modify the corresponding subtemplate."
}
</templatedata>

[[Category:Templat hubungan luar negeri]]


</noinclude>
</noinclude>

Revisi terkini sejak 2 September 2023 09.17

138

This template is used to display the current number of member states which recognize a particular state. To update the number, month, year, or name produced by this template, you must modify the corresponding subtemplate.

Parameter templat[Kelola data templat]

ParameterKeteranganJenisStatus
State1

State of limited recognition

Baku
Palestine
Katawajib diisi
linked text before number2

Text before number/percent included in the wikilink

Contoh
"the", "a total of"
Kataopsional
linked text after number3

Text after the number/percent included in the wikilink

Contoh
that recognize Kosovo
Kataopsional
Show 'as of'?asof

Shows 'as of' at start or end

Contoh
S (start), E (end)
Katadisarankan
Alternate prefix/suffix textalt

Replaces 'As of' with the text entered

Contoh
", by"
Kataopsional
text before wikilinkalt2

Text included between the date (if shown) and wikilinked text

Teks wiki tak seimbangopsional
Show link?link

If 'N', disables links

Contoh
N
Kataopsional
Show as percent?pcent percent

If a number, shows percent of countries recognizing the state

Contoh
UN (or, "total number")
Kataopsional
States that withdrew recognition?W show_withdrawn

If 'Y', shows states that withdrew recognition instead of currently extend

Contoh
Y
Kataopsional
UN non-member states recognizingN

Number of states which have extended recognition

Contoh
4
Angkaopsional
Spell numbers less than 10?spell

If 'N', lists numbers less than 10 as integers (default is to spell them out)

Contoh
N
Kataopsional