الگو:ماسهبازی
از ویکیپدیا، دانشنامهٔ آزاد
محتویات |
[ویرایش] الف
[ویرایش] ۱
|
|
|||||||||
|
|||||||||
[ویرایش] ۲
|
|||||||
|
|||||||
[ویرایش] ۳
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[ویرایش] ب
| ماسهبازی |
||||
[ویرایش] استفاده
Remove fields for different types of election.
{{جعبهٔ اطلاعات انتخابات
| نام انتخابات =
| کشور =
| سال پرچم =
| تصویر پرچم =
| گونه = <!-- رییسجمهور، مجلس قانونگذاری، مجلس نمایندگان -->
| برگذاری =
| رنگ حزب =
| نام حزب =
| انتخابات پیشین =
| سال انتخابات پیشین=
| نمایندگان پیشین =
| تاریخ برگذاری = <!-- {{تاریخ آغاز|YYYY|MM|DD}} -->
| نمایندگان رایآورده=
| انتخابات دیگر =
| سال انتخابات دیگر =
| نمایندگان پسین =
| کرسیهای انتخابی =
| بیشتر و اکثریت =
| کمتر و اقلیت =
| میزان مشارکت =
<!-- نفر نخست -->
| تصویر۱ =
| رنگ ۱ =
| نامزد۱ = <!-- فقط رییسجمهوری، زمان مناسب، جانشین دیگری -->
| رهبر۱ = <!-- legislative or parliamentary only-->
| حزب۱ =
| ائتلاف۱ =
<!-- رییسجمهوری -->
| استان زادگاه۱ =
| running_mate1 =
| electoral_vote1 =
| استانهای پیروز۱ =
<!-- مجلس قانونگذاری یا نمایندگان -->
| leader_since1 =
| leaders_seat1 =
| last_election1 =
| seats_before1 =
| کرسیهای موردنیاز۱ =
| کرسیهای۱ =
| seats_after1 =
| seat_change1 =
<!-- هرچه -->
| popular_vote1 =
| percentage1 =
| swing1 = <!-- legislative or parliamentary only-->
<!-- person 2 -->
| image2 =
| colour2 =
| nominee2 = <!-- presidential only, when appropriate, candidate2 can be used instead -->
| leader2 = <!-- legislative or parliamentary only-->
| party2 =
| alliance2 =
<!-- presidential -->
| home_state2 =
| running_mate2 =
| electoral_vote2 =
| states_carried2 =
<!-- legislative or parliamentary -->
| leader_since2 =
| leaders_seat2 =
| last_election2 =
| seats_before2 =
| seats_needed2 =
| seats2 =
| seats_after2 =
| seat_change2 =
<!-- any -->
| popular_vote2 =
| percentage2 =
| swing2 = <!-- legislative or parliamentary only-->
<!-- polls -->
| poll1_date =
| poll1_source =
| poll1_nominee1 = <!-- presidential only, when appropriate, poll1_candidate1 can be used instead -->
| poll1_party1 = <!-- legislative or parliamentary only-->
| poll1_nominee2 = <!-- presidential only, when appropriate, poll1_candidate2 can be used instead -->
| poll1_party2 = <!-- legislative or parliamentary only-->
| poll2_date =
| poll2_source =
| poll2_nominee1 = <!-- presidential only, when appropriate, poll2_candidate1 can be used instead -->
| poll2_party1 = <!-- legislative or parliamentary only-->
| poll2_nominee2 = <!-- presidential only, when appropriate, poll2_candidate2 can be used instead -->
| poll2_party2 = <!-- legislative or parliamentary only-->
<!-- auxiliary rows -->
| 1blank =
| 1data1 =
| 1data2 =
| 2blank =
| 2data1 =
| 2data2 =
<!-- map -->
| map_image =
| map_size =
| map_alt =
| map =
| map_caption =
<!-- bottom -->
| title =
| before_election =
| before_party =
| posttitle =
| after_election =
| after_party =
}}
- *Non-optional fields.
- † only displayed if the election is yet to take place.
- ‡ only displayed if the election has finished.
| Field | Type | Description |
|---|---|---|
| election_name | * | Name given to the election. If this field is left empty the page name is displayed |
| country | Country where the election took place. | |
| flag_year | For historical elections when an older flag design was in effect, enter the year the flag came into effect (not the election year). Default is to use the current flag. | |
| flag_image | For non-country elections, specify the full name of the flag, coat-of-arms, or seal image to display. | |
| type | * | The type of election. Must be one of three: presidential, legislative, or parliamentary. Legislative after the election will display majority and minority party, rather than first and second party. |
| ongoing | * | Must be either yes or no, whether the election is yet to take place, or completed. Fields marked with a † are only displayed if the election is yet to take place. Fields marked with a ‡ are only displayed if the election is has finished. (Default no). |
| party_colour | Also spelled party_color. To turn off the party colours enter 'no'. | |
| party_name | To turn off linking to the parties enter 'no'. | |
| previous_election | The page name of the last election of this type. | |
| previous_year | The year the last election of this type took place. | |
| previous_mps | legislative parliamentary |
Also spelled previous_MPs or previous_members, page name for the members elected in the last election. |
| election_date | Date of election - use {{Start date}} | |
| elected_mps | legislative parliamentary |
Wikilink to the MPs elected in this election. |
| next_election | The page name of the next election of this type. | |
| next_year | The year the next election of this type took place. | |
| next_mps | legislative parliamentary |
Also spelled next_MPs or next_members, page name for the members elected in the next election. |
| seats_for_election | legislative parliamentary |
The number of seats for election and the house or chamber the seats are for. |
| majority_seats | legislative parliamentary |
The number of seats required for a majority government. If there is an even number of seats in the house or chamber, use the number that is said by the media. |
| opinion_polls | Pagename or section anchor of opinion polls. | |
| turnout | Voter turnout for this election. | |
| image1 | Image of Nominee, head of Party list or Party Leader. The number can be changed up to nine to display different Nominees, heads of Party list or Leaders at the same time. In order to work, colour1 or party1 must be entered. | |
| colour1 | Also spelt color1. Enter a hex colour code (without the #) to override the border colour of image1. The number can be changed up to nine to display different Nominees, heads of Party list or Leaders at the same time. | |
| nominee1 | presidential | Name of Nominee. When appropriate, candidate1 can be used instead. The number can be changed up to nine to display different Nominees or Candidates at the same time. |
| leader1 | legislative parliamentary |
Name of head of Party list or Party Leader. The number can be changed up to nine to display different Parties at the same time. |
| party1 | Political Party using Political party shortname templates. The number can be changed up to nine to display different Parties at the same time. | |
| alliance1 | Political alliance in elections where coalition politics is common. | |
| home_state1 | presidential | The state the Nominee or Candidate represents. The number can be changed up to nine to display different Nominees at the same time. |
| running_mate1 | presidential | The Nominee's Running mate. The number can be changed up to nine to display different Nominees at the same time. |
| electoral_vote1 | presidential ‡ |
The electoral votes obtained by the Nominee. The number can be changed up to nine to display different Nominees at the same time. |
| states_carried1 | presidential ‡ |
The states carried or won by the Nominee. The number can be changed up to nine to display different Nominees at the same time. |
| leader_since1 | legislative parliamentary |
The date the Leader took office. The number can be changed up to nine to display different Parties at the same time. |
| leaders_seat1 | legislative parliamentary |
The seat the Leader represents. The number can be changed up to nine to display different Parties at the same time. |
| last_election1 | legislative parliamentary |
The seat count and percentage of the vote received at the previous election. The number can be changed up to nine to display different Parties at the same time. |
| seats_before1 | legislative parliamentary |
The seat count before the election, labeled 'current seats' if the election is yet to take place. The number can be changed up to nine to display different Parties at the same time. |
| seats_needed1 | legislative parliamentary † |
The seats required to gain an overall majority. The number can be changed up to nine to display different Parties at the same time. |
| seats1 | legislative parliamentary ‡ |
The seats won at the election. The number can be changed up to nine to display different Parties at the same time. |
| seats_after1 | legislative parliamentary ‡ |
The seat count after the election. The number can be changed up to nine to display different Parties at the same time. |
| seat_change1 | legislative parliamentary ‡ |
The change in the number of seats won at the election compared to the previous election. The number can be changed up to nine to display different Parties at the same time. |
| popular_vote1 | ‡ | The number of votes obtained by the Nominee or Party. The number can be changed up to nine to display different Nominees or Parties at the same time. |
| percentage1 | ‡ | The percentage of the popular vote obtained by the Nominee or Party. The number can be changed up to nine to display different Nominees or Parties at the same time. |
| swing1 | legislative parliamentary ‡ |
The swing or change in popular vote at the election compared to the previous election. The number can be changed up to nine to display different Parties at the same time. |
| poll1_date | † | The date of an opinion poll. The number can be changed up to five to display different polls at the same time. |
| poll1_source | † | The source or ULR of the opinion poll. The number can be changed up to five to display different polls at the same time.
poll1_nominee1 |
| poll1_nominee1 | presidential † |
The percentage poll 1 gave to nominee 1. When appropriate, poll1_candidate1 can be used instead. The poll number can be changed up to five to display different polls at the same time. The nominee or candidate number can be changed up to nine to display different Nominees or Candidates at the same time. |
| poll1_party1 | legislative parliamentary † |
The percentage poll 1 gave to party 1. The poll number can be changed up to five to display different polls at the same time. The party number can be changed up to nine to display different Nominees at the same time. |
| 1blank | Title of an auxiliary row. The number can be changed up to six to display six extra rows. | |
| 1data1 | Data 1 for nominee or party 1. The first number can be changed up to six to display six extra rows. The second number can be changed up to nine to display different Nominees or Parties at the same time. | |
| map_image | Page name for the election map file. | |
| map_size | Size of image of the election map to be displayed. (Default 300px). | |
| map_alt | Alt text for the election map. | |
| map | A freeform replacement for the above, which can be used to insert extension:ImageMaps or templates instead of images. | |
| map_caption | Caption on image of the election map to be displayed. | |
| title | Title of the leader before the election. (President, Speaker, Government, Prime Minister...) | |
| before_election | The leader in power before the election, labeled incumbent if the election is yet to take place. | |
| before_party | The party in power before the election. This can be set to "Acting (law)" (which will display as "Acting") if necessary. | |
| posttitle | ‡ | Title of the victor of the election (President-elect, Prime Minister-designate...), only if different than before. |
| after_election | ‡ | The leader in power as a result of the election. |
| after_party | ‡ | The party in power as a result of the election. |
[ویرایش] [تاریخچه] [پاکسازی میانگیر]
توضیحات الگو
جعبه اطلاعات دانشگاه ۲ برای درج کوتاه شده ی ویژگی های یک دانشگاه، دانشکده و یا آموزشگاه به کار میرود. برای به کار بردن این جعبه در مقاله، کدهای زیر را دقیقا کپی کرده و در ابتدای مقاله مورد نظرتان قرار دهید، سپس سطرهای آن را با توجه به اطلاعات پر کنید.
{{جعبه اطلاعات دانشگاه ۲
| نام =
| لوگو =
| زیرنویس لوگو =
| نگاره =
| زیرنویس نگاره =
| شعار =
| گونه =
| بنیانگذاری =
| بنیانگذار =
| رییس =
| هیات امنا =
| معاون آموزشی =
| معاون پژوهشی =
| معاون دانشجویی =
| هیات علمی =
| دانشجویان =
| کاردانی =
| کارشناسی =
| کارشناسی ارشد =
| دکترا =
| دانش آموختگان =
| کارمندان =
| شمار دانشکدهها =
| فضای آموزشی =
| ایالت =
| استان =
| شهر =
| کشور =
| ارائه دهنده رشتههای =
| نام مستعار =
| وابسته به =
| وبگاه =
}}
[ویرایش] رَویه ی به کار بردن
نمونه ی برگرفته از مقاله ی دانشگاه آزاد اسلامی واحد تهران مرکزی :
{{جعبه اطلاعات دانشگاه ۲
| نام = دانشگاه آزاد اسلامی واحد تهران مرکزی
| لوگو =
| زیرنویس لوگو =
| نگاره = Islamic Azad University Central Tehran Branch.jpg|thumb
| زیرنویس نگاره = دانشکده فنی و مهندسی، دانشگاه آزاد اسلامی واحد تهران مرکزی
| شعار = آرمان ایرانی برای جهانی شدن
| گونه = [[غیر دولتی]]
| بنیانگذاری = [[۱۰ مرداد]] [[۱۳۶۱]] خورشیدی
[[۱ آگوست]] [[۱۹۸۲ (میلادی)|۱۹۸۲]] میلادی
| بنیانگذار = مهندس [[شکرریز]]
| رییس = دکتر [[محمد علی گذشتی]]
| هیات امنا =
| معاون آموزشی = دکتر [[طهمورث شیری]]
| معاون پژوهشی = دکتر [[حمیدرضا رحیمی]]
| معاون دانشجویی = دکتر [[مهرداد آزادی]]
| هیات علمی = بیش از ۱۰۰۰ تن
| دانشجویان = ۳۵٬۰۰۰ تن
| کاردانی =
| کارشناسی =
| کارشناسی ارشد =
| دکترا =
| دانش آموختگان =
| کارمندان = ۹۵۰ تن
| شمار دانشکدهها = ۱۱
| فضای آموزشی = ۱۵۷٬۰۰۰ متر مربع
| ایالت =
| استان =
| شهر = [[تهران]]
| کشور = [[ایران]] {{پرچم ایران}}
| ارائه دهنده رشتههای =
| نام مستعار = TM
| وابسته به = [[دانشگاه آزاد اسلامی]]
| وبگاه = [http://www.iauctb.ac.ir/ iauctb.ac.ir]
}}
نتیجه میدهد: الگو:جعبه اطلاعات دانشگاه ۲
| کد و ویژگیهای این الگو پیچیدهاست.
خواهشمندیم تنها در صورتی که ساختار کد آن را میفهمید و آمادگی رفع اشکالهای احتمالیاش را دارید، آن را تغییر دهید. |
| توضیحات بالا از الگو:ماسهبازی/توضیحات به این صفحه آورده شدهاند. (ویرایش | تاریخچه) برای آزمایش این الگو به صفحهٔ تمرین (ایجاد | آینه) و نسخهٔ آزمایشی (ایجاد) بروید. لطفاً ردهها و میانویکیها را به زیرصفحهٔ /توضیحات بیفزایید. زیرصفحههای این الگو. |