Templat:WPBannerMeta/doc: Perbedaan antara revisi

Konten dihapus Konten ditambahkan
←Membuat halaman berisi '{{Documentation subpage}} {{intricate template}} <!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE --> {{high-risk|5,500,000+}} '''WPBannerMeta'''...'
 
Tidak ada ringkasan suntingan
 
(6 revisi perantara oleh 5 pengguna tidak ditampilkan)
Baris 4:
{{high-risk|5,500,000+}}
 
'''WPBannerMeta''' ismerupakan asuatu templat meta-template, whichyang candapat bedigunakan useduntuk to createmembuat [[:CategoryKategori:WikiProject banners|WikiProjectbanner bannersProyekWiki]], enablingsehingga newmemudahkan projectsproyek-proyek tobaru easilyuntuk createmenayangkan akotak bannerperkenalan toyang placeditempatkan on articlepada [[WP:TALK|talkhalaman pagespembicaraan]], ensuring standardisation between projects. ADaftar listsemua ofbanner allProyekWiki WikiProjectyang bannersmenggunakan using thistemplat meta-template canini bedapat founddilihat atpada [http://en.wiki-indonesia.club/w/index.php?title=Special:WhatLinksHere&target=Template%3AWPBannerMeta&limit=50&namespace=10 WhatPranala linkske heresini: WPBannerMeta]
 
Merupakan templat [[meta]]. Digunakan untuk membuat templat lain. Jangan menyalin templat ini langsung ke halaman pembicaraan yang hendak dituju. Melainkan gunakan templat yang dihasilkan oleh ProyekWiki terkait.
This is a [[meta]] template. It is used to build other templates. Do not transclude this template directly on to talk pages when you want to tag a page. Instead, use the template produced by the WikiProject.
 
==SyntaxSintaks==
{| align="right" style="background:transparent; width=40%"
|
{| class="wikitable"
!Parameter umum
!Common parameters
|-
|<pre style="font-size:90%; width=40%">
{{WPBannerMeta
|PROJECT =
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
|small={{{small|}}}
|category={{{category|¬}}}
|listas={{{listas|}}}
|IMAGE_LEFT =
|IMAGE_LEFT_SMALL =
|IMAGE_LEFT_LARGE =
<!--|class={{{class|}}}-->
<!--|auto={{{auto|}}}-->
<!--|importance={{{importance|}}}-->
|ASSESSMENT_CAT =
|ASSESSMENT_LINK =
|MAIN_TEXT =
|MAIN_ARTICLE =
|PORTAL =
|MAIN_CAT =
<!--|attention={{{attention|}}}-->
|ATTENTION_CAT =
<!--|infobox={{{needs-infobox|}}}-->
|INFOBOX_CAT =
|COMMENTS =
|COMMENTS_CAT =
}}<noinclude>
{{Documentation}}
Baris 53:
|<pre style="font-size:90%; width=40%">
{{WPBannerMeta
|PROJECT =
|BANNER_NAME = {{subst:FULLPAGENAME}}
|substcheck=<includeonly>{{subst:</includeonly><includeonly>substcheck}}</includeonly>
Baris 60:
|listas={{{listas|}}}
|PROJECT_LINK =
|IMAGE_LEFT =
|IMAGE_LEFT_SMALL =
|IMAGE_LEFT_LARGE =
|IMAGE_RIGHT =
|IMAGE_RIGHT_SMALL =
|IMAGE_RIGHT_LARGE =
|QUALITY_SCALE =
<!--|class={{{class|}}}-->
<!--|auto={{{auto|}}}-->
Baris 78:
|IMPORTANCE_SCALE =
<!--|importance={{{importance|}}}-->
|ASSESSMENT_CAT =
|ASSESSMENT_LINK =
|MAIN_TEXT =
|MAIN_ARTICLE =
|PORTAL =
|MAIN_CAT =
<!--|attention={{{**PARAMETER**|}}}-->
|ATTENTION_CAT =
<!--|infobox={{{**PARAMETER**|}}}-->
|INFOBOX_CAT =
|note 1={{{**PARAMETER**|}}}
|NOTE_1_TEXT =
|NOTE_1_IMAGE =
|NOTE_1_CAT =
|NOTE_1_FORMAT =
|note 2={{{**PARAMETER**|}}}
|NOTE_2_TEXT =
|NOTE_2_IMAGE =
|NOTE_2_CAT =
|NOTE_2_FORMAT =
|note 3={{{**PARAMETER**|}}}
|NOTE_3_TEXT =
|NOTE_3_IMAGE =
|NOTE_3_CAT =
|NOTE_3_FORMAT =
|note 4={{{**PARAMETER**|}}}
|NOTE_4_TEXT =
|NOTE_4_IMAGE =
|NOTE_4_CAT =
|NOTE_4_FORMAT =
|note 5={{{**PARAMETER**|}}}
|NOTE_5_TEXT =
|NOTE_5_IMAGE =
|NOTE_5_CAT =
|NOTE_5_FORMAT =
|note 6={{{**PARAMETER**|}}}
|NOTE_6_TEXT =
|NOTE_6_IMAGE =
|NOTE_6_CAT =
|NOTE_6_FORMAT =
|note 7={{{**PARAMETER**|}}}
|NOTE_7_TEXT =
|NOTE_7_IMAGE =
|NOTE_7_CAT =
|NOTE_7_FORMAT =
|note 8={{{**PARAMETER**|}}}
|NOTE_8_TEXT =
|NOTE_8_IMAGE =
|NOTE_8_CAT =
|NOTE_8_FORMAT =
|note 9={{{**PARAMETER**|}}}
|NOTE_9_TEXT =
|NOTE_9_IMAGE =
|NOTE_9_CAT =
|NOTE_9_FORMAT =
|note 10={{{**PARAMETER**|}}}
|NOTE_10_TEXT =
|NOTE_10_IMAGE =
|NOTE_10_CAT =
|NOTE_10_FORMAT =
|NOTE_SIZE =
|COLLAPSED =
|COLLAPSED_HEAD =
|COMMENTS =
|COMMENTS_CAT =
|BOTTOM_TEXT =
|tf 1={{{**PARAMETER**|}}}
|TF_1_LINK =
|TF_1_NAME =
|TF_1_NESTED =
|TF_1_IMAGE =
|TF_1_TEXT =
|TF_1_QUALITY =
|tf 1 importance={{{**PARAMETER**|}}}
|TF_1_ASSESSMENT_CAT=
|TF_1_MAIN_CAT =
|tf 2={{{**PARAMETER**|}}}
|TF_2_LINK =
|TF_2_NAME =
|TF_2_NESTED =
|TF_2_IMAGE =
|TF_2_TEXT =
|TF_2_QUALITY =
|tf 2 importance={{{**PARAMETER**|}}}
|TF_2_ASSESSMENT_CAT=
|TF_2_MAIN_CAT =
|tf 3={{{**PARAMETER**|}}}
|TF_3_LINK =
|TF_3_NAME =
|TF_3_NESTED =
|TF_3_IMAGE =
|TF_3_TEXT =
|TF_3_QUALITY =
|tf 3 importance={{{**PARAMETER**|}}}
|TF_3_ASSESSMENT_CAT=
|TF_3_MAIN_CAT =
|tf 4={{{**PARAMETER**|}}}
|TF_4_LINK =
|TF_4_NAME =
|TF_4_NESTED =
|TF_4_IMAGE =
|TF_4_TEXT =
|TF_4_QUALITY =
|tf 4 importance={{{**PARAMETER**|}}}
|TF_4_ASSESSMENT_CAT=
|TF_4_MAIN_CAT =
|tf 5={{{**PARAMETER**|}}}
|TF_5_LINK =
|TF_5_NAME =
|TF_5_NESTED =
|TF_5_IMAGE =
|TF_5_TEXT =
|TF_5_QUALITY =
|tf 5 importance={{{**PARAMETER**|}}}
|TF_5_ASSESSMENT_CAT=
|TF_5_MAIN_CAT =
|TF_SIZE =
|HOOK_NESTED =
|HOOK_ASSESS =
|HOOK_TF =
|HOOK_NOTE =
|HOOK_BOTTOM =
|HOOK_COLLAPSED =
|HOOK_IMPORTANCE =
}}<noinclude>
{{Documentation}}
Baris 214:
WPBannerMeta takes two different types of parameters: formatting and display. The formatting parameters customise the meta-template for a particular project, defining link targets, categories, images and text. All formatting parameters use UPPERCASE and underscores (_), instead of spaces (e.g. <code><nowiki>|PROJECT=</nowiki></code> and <code><nowiki>|NOTE_1_CAT= </nowiki></code>). Display parameters customise the template output for each individual ''article'' that the banner is displayed on. These are the parameters which are entered on the talk page (<code><nowiki>|class=</nowiki></code>, <code><nowiki>|importance=</nowiki></code>, etc.) and they must be 'passed through' the project banner to the meta-template underneath. To 'pass' the parameter <code>foo</code>, you need to include the code {{nowrap|<code><nowiki>foo={{{foo|}}}</nowiki></code>}}.
 
In the examples below, a WikiProject banner will be constructed for the (currently) nonexistent [[Wikipedia:WikiProject Tulips|WikiProject Tulips]].
 
===SimpleOpsi optionssederhana===
*<code>'''PROJECT'''</code> ''(Required)''&nbsp;– the name of the project without the word "WikiProject", used in a variety of contexts; first letter should usually be capitalised. {{nowrap|''Eg: <code>'''Tulips'''</code>''}}
**<code>'''<code><nowiki>BANNER_NAME={{subst:FULLPAGENAME}}</nowiki></code>'''</code> &ndash; it is assumed that page name of the banner template is '''<code>"Template:WikiProject <PROJECT>"</code>'''. If this is not the case then define the page name in this parameter. {{nowrap|''Eg: '''<code><nowiki>Template:Tulips project</nowiki></code>'''''}}
Baris 225:
*<code>'''category'''</code> ''(Required)'' &ndash; the 'category' parameter ''must'' be passed through the template to enable category optout. ''E.g.: '''<code><nowiki>category={{{category|¬}}}</nowiki></code>'''''.
*<code>'''listas'''</code> ''(Required)'' &ndash; the 'listas' parameter ''must'' be passed through the template. {{nowrap|''Eg: '''<code><nowiki>listas={{{listas|}}}</nowiki></code>'''''}}
*<code>'''IMAGE_LEFT'''</code> &ndash; the location of an image to use in the top-left corner of the banner. '''''Do not''''' include the "''Image:''" prefix. Images used on WikiProject banners '''''must''''' be free images&nbsp;– [[WP:FU|fair use]] images are '''''not''''' permitted. {{nowrap|''Eg: '''<code>[[:Image:TulipTulipa -suaveolens floriade canberrato Canberra.jpg|TulipTulipa -suaveolens floriade canberrato Canberra.jpg]]</code>'''''}}
**<code>'''IMAGE_LEFT_SMALL'''</code> &ndash; the size of <code>IMAGE_LEFT</code>, when the banner is displayed in 'small style'. Default is 40px. {{nowrap|''Eg: '''<code><nowiki>25px</nowiki></code>'''''}}
**<code>'''IMAGE_LEFT_LARGE'''</code> &ndash; the size of <code>IMAGE_LEFT</code> in normal display. Default is 80px. {{nowrap|''Eg: '''<code><nowiki>50px</nowiki></code>'''''}}
*<code>'''IMAGE_RIGHT'''</code> &ndash; the location of an image to use in the top-right corner of the banner. '''''Do not''''' include the "''Image:''" prefix. Images used on WikiProject banners '''''must''''' be free images&nbsp;– [[WP:FU|fair use]] images are '''''not''''' permitted. {{nowrap|''Eg: '''<code>[[:Image:TulipTulipa -suaveolens floriade canberrato Canberra.jpg|TulipTulipa -suaveolens floriade canberrato Canberra.jpg]]</code>'''''}}
**<code>'''IMAGE_RIGHT_SMALL'''</code> &ndash; the size of <code>IMAGE_RIGHT</code>, when the banner is displayed in 'small style'. Default is 40px. {{nowrap|''Eg: '''<code><nowiki>25px</nowiki></code>'''''}}
**<code>'''IMAGE_RIGHT_LARGE'''</code> &ndash; the size of <code>IMAGE_RIGHT</code> in normal display. Default is 80px. {{nowrap|''Eg: '''<code><nowiki>50px</nowiki></code>'''''}}
Baris 249:
|listas={{{listas|}}}
|PROJECT_LINK = Wikipedia:Somewhere about tulips
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|IMAGE_LEFT_SMALL = 25px
|IMAGE_LEFT_LARGE = 50px
Baris 261:
|BANNER_NAME = Template:WikiProject Tulips
|PROJECT_LINK = Wikipedia:Somewhere about tulips
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|IMAGE_LEFT_SMALL = 25px
|IMAGE_LEFT_LARGE = 50px
Baris 293:
*<code>'''COMMENTS'''</code>&ndash; some projects may want to use a subpage of the article's talk page to post brief, assessment-related comments about the article. If these comments are placed in a "'''<code><nowiki>{{FULLPAGENAME}}/Comments</nowiki></code>'''" subpage, then this parameter will cause a link to automatically display. {{nowrap|''Eg: '''<code><nowiki>yes</nowiki></code>'''''}}
**<code>'''COMMENTS_SHOW_INLINE'''</code>&ndash; if this parameter is defined, the comments will be shown inline rather than as a link.
**<code>'''COMMENTS_CAT'''</code>&ndash; if this parameter is defined, articles which have comments are sorted into [[:Category:COMMENTS_CAT|Category:<code>COMMENTS_CAT</code>]]. By default, these pages are categorised into [[:Category:Project articles with comments|<ttcode>PROJECT</ttcode> articles with comments]]. {{nowrap|''Eg: (alternate) '''<code><nowiki>Tulip and Daffodil articles with comments</nowiki></code>''' → [[:Category:Tulip and Daffodil articles with comments]]}}''. A value of <code>none</code> results in no categorisation.
 
;Example
Baris 305:
|category={{{category|¬}}}
|listas={{{listas|}}}
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|QUALITY_SCALE = extended
|class={{{class|}}}
Baris 312:
|ASSESSMENT_LINK = Wikipedia:WikiProject Tulips/Article grading
|COMMENTS = yes
|COMMENTS_CAT =
}}</pre>
|}
Baris 322:
|category=no
|listas={{{listas|}}}
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|QUALITY_SCALE = extended
|class = GA
Baris 360:
|category={{{category|¬}}}
|listas={{{listas|}}}
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|QUALITY_SCALE = extended
|class={{{class|}}}
|ASSESSMENT_LINK = Wikipedia:WikiProject Tulips/Article grading
|attention={{{attention|}}}
|ATTENTION_CAT =
|infobox={{{needs-infobox|}}}
|INFOBOX_CAT =
|note 1={{{needs-photo|}}}
|NOTE_1_TEXT = This page has been marked as needing a [[photograph]].
Baris 375:
|note 2 = {{{audio-file|}}}
|NOTE_2_TEXT = An [[audio file format|audio file]] has been created of this article.
|NOTE_2_IMAGE = Nuvola apps arts.pngsvg
|NOTE_2_CAT = Tulips articles with audio files
}}</pre>
Baris 386:
|category=no
|listas = {{{listas|}}}
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|QUALITY_SCALE = extended
|class = C
Baris 400:
|note 2 = yes
|NOTE_2_TEXT = An [[audio file format|audio file]] has been created of this article.
|NOTE_2_IMAGE = Nuvola apps arts.pngsvg
}}
 
Baris 427:
|category={{{category|¬}}}
|listas={{{listas|}}}
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|QUALITY_SCALE = standard
|class={{{class|}}}
Baris 434:
|TF_1_NAME = the Floridiae task force
|TF_1_NESTED = Floridiae
|TF_1_TEXT =
|TF_1_IMAGE = Tulipa florenskyi 4.jpg
|tf 1 importance={{{floridiae-importance}}}
Baris 445:
|PROJECT = Tulips
|BANNER_NAME = Template:WikiProject Tulips
|IMAGE_LEFT = TulipTulipa -suaveolens floriade canberrato Canberra.jpg
|QUALITY_SCALE = standard
|class = FA
Baris 494:
* [[Wikipedia:WikiProject Council/Guide#Article_tagging]] &ndash; advice about tagging articles for a project
 
<noinclude>[[Kategori:ProyekWiki pataka|{{PAGENAME}}]]</noinclude>
<includeonly><!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
[[Category:Templat ProyekWiki| Meta]]
{{#ifeq:{{FULLPAGENAME}}|Template:WPBannerMeta|
[[Category:WikiProjectTemplat bannersmeta| MetaWPBannerMeta]]
[[Category:Wikipedia metatemplates|WPBannerMeta]]}}
</includeonly>