Predloga:Yyend
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
[uredi kodo]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:
title
is the optional table title.headers=
is the optional column headings switch.headers=yes
creates three column headings (default)headers=no
creates 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
[uredi kodo]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:
template
is the required template name.par1|...|par12
are 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
[uredi kodo]Template:Yycat creates a reference to a category.
{{yycat|category|link=}}
where:
category
is 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
[uredi kodo]Template:Yytxt creates a row of text in the table.
{{yytop|txt1|txt2|txt3|opt=}}
where:
txt1
is the optional text for the table or first column.txt2
is the optional text for the second columntxt3
is the optional text for the third columnopt=
is the optional format parameter:opt=1
creates a line of left-justified text (default)opt=2
creates a line of table-centered textopt=3
creates a line of right-justified textopt=4
creates a line of left-justified text for each columnopt=5
creates a line of column-centered text for each columnopt=6
creates a line of right-justified text for each columnopt=7
recreates 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
[uredi kodo]- 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=name
userbox 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=no
pointer is part of a table. (default)alone=yes
pointer 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
[uredi kodo]Template:Yywp creates a WikiProject box.
{{yywp|wikiproject|group|type|label|folder=|size=}}
where:
wikiproject
is the required WikiProject base name.group
an optional project group base name if any.type
an optional project group type if any.label
an optional WikiProject box label. (default=WikiProjectwikiproject
orgroup
type
)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
[uredi kodo]Template:Yyp creates a portal box.
{{yyp|portal|size=}}
where:
portal
is 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
[uredi kodo]Template:Yynb creates a noticeboard box.
{{yynb|noticeboard|size=}}
where:
notice
is 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
[uredi kodo]Template:Yyend always comes last and completes the table.
{{yyend|comment}}
where:
comment
is 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
[uredi kodo]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
[uredi kodo]- 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.