Predloga:Yy/dok
| To je dokumentacijska podstran za glavno stran Predloga:Yy. Namenjena je shranjevanju navodil, kategorizaciji in drugi vsebini, ki ni del glavne strani. Predloga ima preizkušanju namenjen peskovnik in testneprimere. |
Serija predlog Yy lahko ustvari razpredelnico uporabniških polj skupaj z wikibesedilom in povezavo na strani, kjer je predloga uporabljena. Čeprav je predloga namenjena tudi za uporabo skupaj z Wikiprojekti, portali ter oglasnimi deskami slednje funkcije trenutno na slovenski Wikipediji niso ustrezno podprte. Serijo predlog yy sestavlja naslednjih devet predlog:
Template:Yytop
Template:Yytop always comes first to create the three column headings and to size the columns. Template:Yytop may also be used to create a centered table title.
{{yytop|title|headers=}}
where:
titleis the optional table title.headers=is the optional column headings switch.headers=yescreates three column headings (default)headers=nocreates no column headings.
Example
{{yytop|Userbox Templates}} creates:
| Wikibesedilo | uporabniška polja | uporabljeno na |
|---|
Template:Yytop is very similar to Template:Usbktop except:
- Template:Yytop default sizes the three columns to 390, 250, and 80 pixels respectively.
Template:Usbktop does no default column sizing. - Template:Yytop places the linked labels Wiki markup, userbox, and where used centered at the top of each column.
Template:Usbktop places the labels Code and Result left justified at the top of the first two columns only. - Template:Yytop may be used to create a centered table title.
Template:Yy
Template:Yy creates a single table row with the template Wiki markup, the template box, and a link to the list of pages that link to the called template.
{{yy|template|par1|...|par12|comment=}}
where:
templateis the required template name.par1|...|par12are up to 12 optional template parameters.comment=is an optional comment.
A zero-width space ​ may be used to represent a missing parameter.
Example
{{yy|User in New Zealand|5|comment=option= 1–99}} creates:
{{User in New Zealand
|
Napaka Lua: expandTemplate: template "User in New Zealand" does not exist | povezane strani option= 1–99 |
Template:Yy is similar to Template:Usbk except:
- Template:Yy will pass up to 12 parameters to the called template.
Template:Usbk will pass no more than three parameters to the called template. - Template:Yy forces all cells to align to the left.
Template:Usbk uses the default object alignment. - Template:Yy uses the same category suppression as Template:Usbk.
Template:Yycat
Template:Yycat creates a reference to a category.
{{yycat|category|link=}}
where:
categoryis the required category name.link=is the optional link to the category. (default=no)
Example
{{yycat|Wikipedians in South Africa|link=yes}} creates:
| [[Predloga:Category title]] | none | povezane strani |
Template:Yytxt
Template:Yytxt creates a row of text in the table.
{{yytop|txt1|txt2|txt3|opt=}}
where:
txt1is the optional text for the table or first column.txt2is the optional text for the second columntxt3is the optional text for the third columnopt=is the optional format parameter:opt=1creates a line of left-justified text (default)opt=2creates a line of table-centered textopt=3creates a line of right-justified textopt=4creates a line of left-justified text for each columnopt=5creates a line of column-centered text for each columnopt=6creates a line of right-justified text for each columnopt=7recreates the column headings of Template:Yytop
If all three optional text parameters are blank or missing, a blank row will be inserted.
Example
{{yytxt|Residence:}} creates:
| Residence: | ||
Template:Usbkbreak centers text on only the first two columns and has no other options.
Template:Yytab
- See also Template:yytabcities—a shortcut for
{{yytab}}for location related userboxes.
Template:Yytab creates a pointer to another table. Template:Yytab may be used to break an overly large table into subtables.
{{yytab|name|page|desc=|image=|size=|id-w=|info-s=|alone=}}
where:
name(first positional argument) is the required name of a region, portal, noticeboard, WikiProject. (See Module:Portal/images)page(second positional argument) is the optional page name of the subtable. (default=Wikipedia:Userboxes/Location/name)desc=is the optional description of the subtable. (default=nameuserbox templates)image=is the optional image file. (default image file from Module:Portal/images)size=is the optional image size. (default=x45px)id-w=is the optional image space width. (default=45)info-s=is the optional font size. (default=9)alone=is the optional stand alone switch.alone=nopointer is part of a table. (default)alone=yespointer in its own table.
Example
{{yytab|France|alone=yes}} creates:
| See Wikipedija:Uporabniška polja/ |
|
{{yytab|United Arab Emirates|info-s=8|alone=yes}} creates:
| See Wikipedija:Uporabniška polja/ |
|
Template:Yytab is somewhat similar to Template:usee.
Template:Yywp
Template:Yywp creates a WikiProject box.
{{yywp|wikiproject|group|type|label|folder=|size=}}
where:
wikiprojectis the required WikiProject base name.groupan optional project group base name if any.typean optional project group type if any.labelan optional WikiProject box label. (default=WikiProjectwikiprojectorgrouptype)folder=is an optional WikiProject folder name.size=is the optional image size. (default=x45px)
Examples
{{yywp|New South Wales}} creates:
| [[Wikipedija:WikiProjekt New South Wales]] |
|
povezane strani |
and {{yywp|California|Los Angeles|task force}} creates:
| [[Wikipedija:WikiProjekt California/Los Angeles task force]] | povezane strani |
Template:WikiProject box creates a smaller standalone WikiProject box.
Template:Yyp
Template:Yyp creates a portal box.
{{yyp|portal|size=}}
where:
portalis the required portal name.size=is the optional image size. (default=x45px)
Example
{{yyp|South Africa}} creates:
| {{Portal:South Africa}} | povezane strani |
Template:Portal creates a smaller standalone portal box.
Template:Yynb
Template:Yynb creates a noticeboard box.
{{yynb|noticeboard|size=}}
where:
noticeis the required noticeboard base name.size=is the optional image size. (default=x45px)
Template:Noticeboard box creates a smaller standalone notice board box.
Template:Yyend
Template:Yyend always comes last and completes the table.
{{yyend|comment}}
where:
commentis an optional comment to appear at the bottom right of the table.
Template:Usbkbottom is similar to Template:Yyend but does not permit a comment line.
Table example
The following Wiki markup:
- {{yytop|[[Samoan Archipelago]]}}
- {{yytxt|American Samoa:}}
- {{yywp|Polynesia|American Samoa|work group}}
- {{yy|User in American Samoa}}
- {{yy|User wishes to visit|American Samoa}}
- {{yy|User American Samoa WG}}
- {{yytab|American Samoa|Wikipedia:Userboxes/Location/Oceania#American Samoa}}
- {{yytxt|Samoa:}}
- {{yywp|Samoa}}
- {{yy|User citizen Samoa}}
- {{yy|User interest Samoa}}
- {{yy|User WP Samoa}}
- {{yytab|Samoa|Wikipedia:Userboxes/Location/Oceania#Samoa}}
- {{yyend|updated 1 August 2022}}
creates the following table:
| Wikibesedilo | uporabniška polja | uporabljeno na |
|---|---|---|
| American Samoa: | ||
| [[Wikipedija:WikiProjekt Polynesia/American Samoa work group]] | povezane strani | |
{{User in American Samoa}}
|
Napaka Lua: expandTemplate: template "User in American Samoa" does not exist | povezane strani |
{{User wishes to visit
|
Napaka Lua: expandTemplate: template "User wishes to visit" does not exist | povezane strani |
{{User American Samoa WG}}
|
Napaka Lua: expandTemplate: template "User American Samoa WG" does not exist | povezane strani |
| See Wikipedia:Userboxes/ |
||
| Samoa: | ||
| [[Wikipedija:WikiProjekt Samoa]] | povezane strani | |
{{User citizen Samoa}}
|
Napaka Lua: expandTemplate: template "User citizen Samoa" does not exist | povezane strani |
{{User interest Samoa}}
|
Napaka Lua: expandTemplate: template "User interest Samoa" does not exist | povezane strani |
{{User WP Samoa}}
|
Napaka Lua: expandTemplate: template "User WP Samoa" does not exist | povezane strani |
| See Wikipedia:Userboxes/ |
||
| updated 1 August 2022 | ||
See also
- Similar templates:
- {{Usbk}}
- {{Usbkbottom}}
- {{Usbkbreak}}
- {{Usbkext}}
- {{Usbktop}}
- {{Usbk/light}}
- {{Usee}}
- {{Xy}}
- See examples of yy userbox tables at Wikipedia:Userboxes/Location.
- For help with these templates, please post a comment on the template talk page.
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.









