ผลต่างระหว่างรุ่นของ "แม่แบบ:เมืองใหญ่สุด"
หน้าตา
เนื้อหาที่ลบ เนื้อหาที่เพิ่ม
Kongtupthai (คุย | ส่วนร่วม) ไม่มีความย่อการแก้ไข |
Kongtupthai (คุย | ส่วนร่วม) ไม่มีความย่อการแก้ไข |
||
บรรทัด 1: | บรรทัด 1: | ||
<includeonly>{| {{#if:{{{class|}}} | class="navbox" style="width: |
<includeonly>{| {{#if:{{{class|}}} | class="navbox" style="width: 97%" | width="97%" style="margin-left: auto; margin-right: auto; width: 97%; border: 1px solid darkgray; background: #f9f9f9" }} |
||
<!-- TITLE & SOURCE --> |
<!-- TITLE & SOURCE --> |
||
!colspan="10" style="padding:0.3em 0; line-height:1.4em; <!--(for sake of wrapped line plus footnote ref)-->"| {{navbar|{{{name|{{FULLPAGENAME}}}}}| |
!colspan="10" style="padding:0.3em 0; line-height:1.4em; <!--(for sake of wrapped line plus footnote ref)-->"| {{navbar|{{{name|{{FULLPAGENAME}}}}}|plain=1|style=float: left; margin-left:0.75em}} <span style="font-size:120%;">{{{kind|เมือง}}}ใหญ่สุดใน[[{{{country}}}]]</span><br/><span style="font-weight:normal;">{{#if:{{{stat_ref|}}} | {{{stat_ref|Source?}}} | Source? }}</span> |
||
|- <!-- TABLE HEADINGS --> |
|- <!-- TABLE HEADINGS --> |
||
! <!-- blank heading over images 1 & 2 -->{{#if:{{{img_1|}}}{{{img_2|}}} | !! |
! <!-- blank heading over images 1 & 2 -->{{#if:{{{img_1|}}}{{{img_2|}}} | !! |
||
บรรทัด 10: | บรรทัด 10: | ||
{{#if:{{{city_11|}}} | <!-- determines whether there should be two columns or just one --> |
{{#if:{{{city_11|}}} | <!-- determines whether there should be two columns or just one --> |
||
! {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}|ที่]] | {{#ifexist: รายชื่อเมืองใน{{{country}}}เรียงตามจำนวนประชากร | [[รายชื่อเมืองใน{{{country}}}เรียงตามจำนวนประชากร|ที่]] | ที่ }} }} |
! {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}|ที่]] | {{#ifexist: รายชื่อเมืองใน{{{country}}}เรียงตามจำนวนประชากร | [[รายชื่อเมืองใน{{{country}}}เรียงตามจำนวนประชากร|ที่]] | ที่ }} }} |
||
! {{#ifexist: |
! {{#ifexist: รายชื่อเมืองใน{{{country}}} | [[รายชื่อเมืองใน{{{country}}}|เมือง]] | เมือง }} |
||
! {{#if:{{{div_link|}}} | [[{{{div_link}}}]] | [[{{{div_name}}}ของ{{{country}}}|{{{div_name}}}]] }} |
! {{#if:{{{div_link|}}} | [[{{{div_link}}}]] | [[{{{div_name}}}ของ{{{country}}}|{{{div_name}}}]] }} |
||
! {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}| |
! {{#if:{{{list_by_pop|}}} | [[{{{list_by_pop}}}| ประชากร]] | {{#ifexist: รายชื่อเมืองใน{{{country}}}เรียงตามจำนวนประชากร | [[รายชื่อเมืองใน{{{country}}}เรียงตามจำนวนประชากร|ประชากร]] | ประชากร }} }} {{#if:{{{img_3|}}}{{{img_4|}}} | !! }}<!-- blank heading over images 3 & 4 --> |
||
| {{#if:{{{img_3|}}}{{{img_4|}}} | ! }}<!-- blank heading over images 3 & 4 --> |
| {{#if:{{{img_3|}}}{{{img_4|}}} | ! }}<!-- blank heading over images 3 & 4 --> |
||
}} <!-- ends if city_11 --> |
}} <!-- ends if city_11 --> |
รุ่นแก้ไขเมื่อ 14:09, 1 ธันวาคม 2556
แม่แบบเมืองใหญ่สุด เป็นแม่แบบที่อำนวยความสะดวกในการสร้างตารางแสดง "เมืองใหญ่สุดในประเทศ..." ใช้ในการเรียงลำดับเมืองที่ใหญ่ที่สุด ตารางจะประกอบด้วย ลำดับที่ ชื่อเมือง เขตการปกครอง ประชากร และรูปภาพ โดยสามารถรองรับการจัดอันดับได้ 10 ถึง 20 รายการ และรูปภาพ 4 รูปของเมืองที่ใหญ่สุด 4 อันดับแรก
สำหรับหน้าที่ใช้แม่แบบนี้ ดูรายชื่อทั้งหมดได้ที่ หน้าที่ลิงก์มาที่ แม่แบบ:เมืองใหญ่สุด
การใช้
{{เมืองใหญ่สุด | name = <!-- ชื่อแม่แบบ เช่น เมืองใหญ่สุดของประเทศไทย --> | class = <!-- สามารถใส่ "nav" เพื่อเปลี่ยนสีแม่แบบ --> | country = <!-- ชื่อประเทศ เช่น ประเทศไทย --> | stat_ref = <!-- แหล่งข้อมูลอ้างอิงของจำนวนประชากร เช่น กรมการปกครอง (หรือใช้ {{URL| }}) --> | list_by_pop = <!-- ลิงก์ไปยังบทความรายชื่อเมืองในประเทศนั้น ถ้าเป็นไปได้ให้เรียงตามจำนวนประชากร --> | div_name = <!-- เขตการปกครอง เช่น จังหวัด รัฐ มณฑล... --> | div_link = <!-- แม่แบบจะสร้างลิงก์ "div_name ของประเทศ..." อัตโนมัติ (เช่น จังหวัดของประเทศไทย) ถ้าไม่ทำงานให้ใช้ตัวแปรนี้ --> | city_1 = <!-- ลิงก์ไปยังบทความเกี่ยวกับเมืองนั้น --> | div_1 = <!-- ลิงก์ไปยังบทความเขตการปกครองที่เมืองนั้นตั้งอยู่ --> | pop_1 = <!-- ประชากร ควรใส่จุลภาคคั่นทุก 3 หลัก --> | img_1 = <!-- รูปภาพแสดงภาพรวมของเมือง --> | city_2 = | div_2 = | pop_2 = | img_2 = | city_3 = | div_3 = | pop_3 = | img_3 = | city_4 = | div_4 = | pop_4 = | img_4 = | city_5 = | div_5 = | pop_5 = | city_6 = | div_6 = | pop_6 = | city_7 = | div_7 = | pop_7 = | city_8 = | div_8 = | pop_8 = | city_9 = | div_9 = | pop_9 = | city_10 = | div_10 = | pop_10 = | city_11 = | div_11 = | pop_11 = | city_12 = | div_12 = | pop_12 = | city_13 = | div_13 = | pop_13 = | city_14 = | div_14 = | pop_14 = | city_15 = | div_15 = | pop_15 = | city_16 = | div_16 = | pop_16 = | city_17 = | div_17 = | pop_17 = | city_18 = | div_18 = | pop_18 = | city_19 = | div_19 = | pop_19 = | city_20 = | div_20 = | pop_20 = }}
คู่มือการใช้งานที่ปรากฏด้านบนนี้ดึงมาจาก แม่แบบ:เมืองใหญ่สุด/doc (แก้ | ประวัติ) ผู้เขียนสามารถทำการทดลองได้ที่กระบะทราย (สร้าง | คัดลอก) และชุดทดสอบ (สร้าง) ของแม่แบบนี้ โปรดเพิ่มหมวดหมู่ไปที่หน้าย่อย /doc หน้าย่อยของแม่แบบนี้ |