Modul:Political party/doc: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
Rahmatdenas (bicara | kontrib) ←Membuat halaman berisi '{{Module rating|general}} {{High-use}} {{Lua|Module:Arguments|Module:Delink}} == Usage == {{Mlx|{{BASEPAGENAME}}|fetch|<party>|<value>}} == Parameters == {{Transcluded section|source=Template:Political party/doc}} {{Trim|{{#section:Template:Political party/doc|Parameters}}}} ==Updating the module== The political parties contained in this module are split into alphabetised lists based on the first character of the name (for example, "Labour Party (UK)" would be...' |
|||
(3 revisi perantara oleh satu pengguna lainnya tidak ditampilkan) | |||
Baris 3:
{{Lua|Module:Arguments|Module:Delink}}
==
{{Mlx|{{BASEPAGENAME}}|fetch|<party>|<value>}}
==
{{Transcluded section|source=Template:Political party/doc}}
{{Trim|{{#section:Template:Political party/doc|
==
The political parties contained in this module are split into alphabetised lists based on the first character of the name (for example, "Labour Party (UK)" would be under [[Module:Political party/L|/L]]). The [[Module:Political party/1|/1]] subpage is for any party that does not start with the western letters A-Z (including numbers and accented characters).
Baris 24:
The first entry in square brackets is the alternate name, and the second entry only in quotes is the name found in the <code>full</code> group, seen below. Note that the alternate name of a party should be stored in its corresponding letter-based subpage; "Alabama Democratic Party" is listed in [[Module:Political party/A|/A]] even though it is an alternate name for "Democratic Party (US)" (which is stored in [[Module:Political party/D|/D]]).
===
<syntaxhighlight lang=lua>
local full = {
Baris 39:
If a name value is not stored for a party, the module will attempt to return the other "short" name variant before returning the input. Thus, if <code>abbrev</code> is stored but <code>shortname</code> is not, regardless of which value is asked for it will return the <code>abbrev</code> value.
==Permohonan penambahan dan perubahan entri ==
Requests should be made at the [[Module talk:Political party|talk page]] in a new section. Copy the following line and fill in {{em|only}} the fields relevant to the party. A party name is required as is at least one other piece of information. See above for information regarding each value.
* <code>["party"] = {abbrev = "", color = "", shortname = "",},</code>
==
{| class="wikitable"
|+Module error messages and resolutions
Baris 69:
|}
==
{{div col}}
*[[Module:Political party/1|Political party/1]]
Baris 101:
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Kategori:Modul politik]]
}}</includeonly>
|