תבנית:כותרת אנכית

מתוך ויקיפדיה, האנציקלופדיה החופשית
תבנית זו נמצאת בבקרת מערכת בדיקת פרמטרים, שמופעלת בוויקיפדיה העברית. כל שינוי במבנה הפרמטרים מחייב שינוי מתאים בנתוני התבנית (TemplateData).
אין דפים עם שגיאה בשימוש בתבנית רענון נתונים
תבנית זו נמצאת בבקרת מערכת בדיקת פרמטרים, שמופעלת בוויקיפדיה העברית. כל שינוי במבנה הפרמטרים מחייב שינוי מתאים בנתוני התבנית (TemplateData).
אין דפים עם שגיאה בשימוש בתבנית רענון נתונים
טקסט לדוגמה

המידע מטה מוצג מתוך הדף תבנית:כותרת אנכית/תיעוד.


תבנית זו משתמשת בלואה:

עמודה רגילה
עמודת נתונים אנכית
עמודה מוזהבת דקה
עמודה לא מתמיינת
0
1
1 2
3
5
8 13
עמודה רגילה
עמודת נתונים אנכית
עמודה מוזהבת דקה
עמודה לא מתמיינת

זוהי תבנית שמאפשר ליצור כותרות עמודות אנכיות בטבלאות. התכונה נתמכת אף בעמודות מתמיינות.

למרות שתבנית זו נוצרה מתוך מחשבה על כותרות טבלה, היא יכולה לעבוד גם עם תאים רגילים בטבלה.

אם לתאי הכותרת יש מאפיינים אחרים, למשל colspan או rowspan, לא חייב להיות מקל אנכי | בין המאפיינים לבין הקריאה לתבנית.

Parameter list

  • 1 – The desired text; can contain wikilinks ([[]]). You can escape the equals sign either by using תבנית:Tlx or by explicitly mentioning the 1= parameter.
  • nb – Give any non-empty value in order to apply a {{nobold}} template to the text.
  • va – Vertical alignment (bottom, top, middle). Default is bottom.
  • stp – Give any non-empty value in order to apply a top padding to the cell (useful if the header is bottom-aligned; required for sortable columns).
  • mw – Manual width; override the default value, which was automatically generated based on the number of line breaks (you can use <br>, <BR /> or any other combination).
  • style – Additional styles for the <div/> containing the rotated text. May contain double quotes.
  • cellstyle – Additional styles for the entire cell. May contain double quotes. Use this instead of the cell's style attribute. Use background-color instead of background if you need it for the header of a sortable column.

דוגמאות

  • {{כותרת אנכית|הטקסט שלך כאן}} – דוגמה בסיסית
  • {{כותרת אנכית|nb=1|stp=1|הטקסט שלך כאן}} – מייצר כותרת ניתנת למיון במפורש, ללא הדגשה
  • ! {{כותרת אנכית|va=top|הטקסט שלך כאן}} – מייצר כותרת טבלה לא ניתנת למיון, מיושרת כלפי מעלה.
  • ! colspan="2" {{כותרת אנכית|cellstyle=background-color:gold|הטקסט שלך כאן}} – מייצרת כותרת בלתי ניתנת למיון המשתרעת על פני שתי עמודות, עם רקע מוזהב; אין להשתמש בפס אנכי אחרי colspan

You can also use the ! {{תבנית אנכית|הטקסט שלך כאן}} shorthand.

An example below (from Help:Sorting) with headers that span rows or columns (using rowspan and colspan). Note that there is no vertical bar | between rowspan=2 and {{vert header...}}

שם
עמודות נתונים
עמודה נוספת
נתונים
עוד נתונים
חתולים 273 53 1
כלבים 65 8,492 2
עכברים 1,649 548 3
{| 
|- style=vertical-align:top;
|
{| class="wikitable sortable"
|-
! rowspan=2 {{כותרת אנכית|stp=1|שם}}
! colspan=2 {{כותרת אנכית|עמודות נתונים}}
! rowspan=2 {{כותרת אנכית|stp=1|עמודה נוספת}}
|-
! {{כותרת אנכית|stp=1|נתונים}}
! {{כותרת אנכית|stp=1|עוד נתונים}}
|-
| חתולים
| 273
| 53
| 1
|-
| כלבים
| 65
| 8,492
| 2
|-
| עכברים
| 1,649
| 548
| 3
|}

Compatibility

The following browsers have been tested on combinations of Debian 6.0, Mac OS X 10.8, Ubuntu 9.10, Ubuntu 15.04, Windows 7, Windows Server 2008 R2 and Windows 10. The earliest version known to work is highlighted in green. The latest tested configuration that did not work is highlighted in red.

Arora Chrome Dillo Edge Epiphany Firefox Iceape Iceweasel IE Konqueror Luakit Midori Opera Rekonq Safari SeaMonkey
0.11
תבנית:Font
9
תבנית:Font
3.0.4
תבנית:Font
38
תבנית:Font
3.4.2
תבנית:Font
43
תבנית:Font
2.7.12
תבנית:Font
38.6
תבנית:Font
11
תבנית:Font
4.14
תבנית:Font
039e319
תבנית:Font
0.4.3
תבנית:Font
15
תבנית:Font
1.1
תבנית:Font
9.1
תבנית:Font
2.46
תבנית:Font
Deb 6 Win 7 Ubu 15.04 Win 10 Deb 6 OS X 10.8 Deb 6 Deb 6 Win 10 Ubu 15.04 Ubu 15.04 Ubu 15.04 Win 2008 R2 Ubu 9.10 OS X 10.8 Ubu 15.04
Should theoretically work on the following browsers as well (please confirm):
Android
Browser
Chrome Edge Firefox Safari
3
תבנית:Font
8
תבנית:Font
20
תבנית:Font
41
תבנית:Font
5.1
תבנית:Font
Notes:
  • In Internet Explorer 5–10, the text goes from top to bottom instead of going from bottom to top.
  • Firefox support for vertical text and rotation began in version 25, but it was unstable until version 43, or possibly 41.


תבנית:Sandbox other

אין תיאור.

פרמטרים של תבניות[עריכת נתוני תבנית]

פרמטרתיאורסוגמצב
11

אין תיאור

בלתי־ידועלא חובה
stpstp

אין תיאור

בלתי־ידועלא חובה
vava

אין תיאור

בלתי־ידועלא חובה
mwmw

אין תיאור

בלתי־ידועלא חובה
nbnb

אין תיאור

בלתי־ידועלא חובה
stylestyle

אין תיאור

בלתי־ידועלא חובה
cellstylecellstyle

אין תיאור

בלתי־ידועלא חובה