Class: Pumi::Bot::Wikipedia::CommunesInCambodiaArticle
- Defined in:
- lib/pumi/bot/wikipedia/communes_in_cambodia_article.rb
Defined Under Namespace
Classes: District, Location, Province
Constant Summary collapse
- PAGE_TITLE =
"List_of_communes_in_Cambodia".freeze
- INTRO_TEXT =
"<div id=\"intro\">The '''communes of Cambodia''' ({{lang|km|ឃុំ}} ''[[khum]]''/{{lang|km|សង្កាត់}} ''[[sangkat]]'') are the third-level administrative divisions in Cambodia. They are the subdivisions of the [[List of districts in Cambodia|districts and municipalities of Cambodia]]. Communes can consist of as few as %<min_villages>s<ref>{{cite web|url=http://db.ncdd.gov.kh/gazetteer/view/commune.castle?cm=%<smallest_commune_id>s |title=%<smallest_commune_name>s |publisher=National Committee for Sub-National Democratic Development }}</ref> or as many as %<max_villages>s<ref>{{cite web|url=http://db.ncdd.gov.kh/gazetteer/view/commune.castle?cm=%<largest_commune_id>s |title=%<largest_commune_name>s |publisher=National Committee for Sub-National Democratic Development }}</ref> villages (''[[phum]]''), depending on the population.\nThere are a total of %<communes_count>s communes and %<villages_count>s villages in Cambodia.</div>".freeze
- TEMPLATE =
File.read("#{__dir__}/templates/commune_list.wikitext.erb")
Instance Attribute Summary
Attributes inherited from Article
Instance Method Summary collapse
Methods inherited from Article
Constructor Details
This class inherits a constructor from Pumi::Bot::Wikipedia::Article
Instance Method Details
#publish ⇒ Object
71 72 73 74 75 76 |
# File 'lib/pumi/bot/wikipedia/communes_in_cambodia_article.rb', line 71 def publish replace_intro replace_number_of_communes replace_communes_list client.update_page(title: PAGE_TITLE, source:, comment: "Update page") end |