Sha256: 1eefed2befca94f60b435d11333ae5bde40c6a839e0397656dbc437a77d92876

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

<div id="province-districts-<%= province.id %>">
<%= province.name_en %> contains <%= districts_summary %>.<ref>{{cite web|url=http://db.ncdd.gov.kh/gazetteer/view/province.castle?pv=<%= province.id %> |title=<%= province.name_en %> |publisher=National Committee for Sub-National Democratic Development }}</ref>

{| class="wikitable sortable"
|-
! #
! Name
! Khmer
! [[Romanization of Khmer#UNGEGN|UNGEGN]]
! Administrative Unit
! Geocode
|-
<% districts.each_with_index do |district, index| %>
| <%= index + 1 %>
<% if district.links[:wikipedia] -%>
<% district_page = URI.parse(district.links[:wikipedia]).path.split("/").last -%>
<% if district_page.gsub("_", " ") == district.name_en -%>
| [[<%= district.name_en %>]]
<% else -%>
| [[<%= district_page %>|<%= district.name_en %>]]
<% end -%>
<% else -%>
| <%= district.name_en %>
<% end -%>
| <%= district.name_km %>
<% if district.name_ungegn -%>
| {{transliteration|km|<%= district.name_ungegn %>}}
<% else -%>
|
<% end -%>
| <%= "#{district.administrative_unit.name_en} (#{district.administrative_unit.name_km} #{district.administrative_unit.name_latin})" %>
| <%= district.id %>
|-
<% end -%>
|}
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pumi-0.30.0 lib/pumi/bot/wikipedia/templates/district_list.wikitext.erb
pumi-0.29.0 lib/pumi/bot/wikipedia/templates/district_list.wikitext.erb
pumi-0.28.0 lib/pumi/bot/wikipedia/templates/district_list.wikitext.erb