ויקיפדיה:פרטים ביוגרפיים – הבדלי גרסאות

תוכן שנמחק תוכן שנוסף
אין תקציר עריכה
שורה 9:
<div style="direction: ltr;">
 
== הצגת נתוני אישיות באמצעות ההעדפות ==
== Viewing persondata ==
הוסיפו ל{{דף אישי|CSS}} את הקוד הבא כדי להציג את הטבלה תמיד:
 
<!-- ללא התגים! רק השורה האחת! -->
[[Image:Persondatascreen.png|310px|right|thumb|A screenshot showing Persondata from [[Mahatma Gandhi]]]]
<source lang="css">
 
<code>table.persondata {display:block !important;}</code>
By default, persondata is invisible to normal users. In order to make persondata visible, you must:
 
</source>
* Either install [[User talk:Dr pda/persondata.js|this JavaScript]] in [[Special:Mypage/skin.js]], which will add a button to the top button bar of every page allowing you to easily show and hide persondata boxes;
* Or edit your [[Help:User style|user stylesheet]] as explained below, causing persondatas to be always visible;
* Or even do both, as one method doesn't interfere with the other and the above JavaScript has useful persondata-editing features.
 
בהמשך אפשר תהיה האפשרות להציג את הטבלה רק בלחיצת כפתור.
To make persondatas permanently visible, first make sure you are logged in. Then edit (or create) a page at [[Special:Mypage/skin.css]] and add the following line:
 
<code>table.persondata {display:table !important;}</code>
 
or, if you use Microsoft Internet Explorer 7 or earlier<!--Ver. 8's behavior is unknown as of this writing.-->:
 
<code>table.persondata {display:block !important;}</code>
 
'''''Tip:''''' After saving the CSS, you must empty the browser cache to see the changes: Mozilla/Firefox (Windows): Ctrl-Shift-R; Mozilla/Firefox/Camino (Mac): Cmd-Shift-R; Internet Explorer (Windows): Ctrl-F5; Opera (all): F5; Safari (Mac): Cmd-R; Konqueror (Linux): Ctrl-R. Some Firefox (Linux) users report that both lines must be present in their monobook.css (though they can probably be simplified to <code>table.persondata {display:block table !important;}</code>), and users who switch between browsers and platforms may need to do likewise.
 
'''''If you can see a block with data about Ferdinand Magellan between this paragraph and the next, you have successfully made persondata visible:'''''
{{Persondata
|NAME = Magellan, Ferdinand
|ALTERNATIVE NAMES = Magalhães, Fernão de (Portuguese); Magallanes, Fernando de (Spanish)
|SHORT DESCRIPTION = Sea explorer
|DATE OF BIRTH = Spring 1480
|PLACE OF BIRTH = Sabrosa, Portugal
|DATE OF DEATH = April 27, 1521
|PLACE OF DEATH = Mactan Island, Cebu, Philippines
}}
'''Otherwise this paragraph will follow direct below the previous one.'''
 
To make the persondata box invisible again, simply remove the CSS line provided above from your [[Special:Mypage/skin.css|user stylesheet]].
 
'''''Warning:''''' Since persondatas are by default invisible, editors rarely plan for them when designing the layout of an article, which means that making them visible ''might'' cause some article bottoms to look strange for you. For the same reason, if you have persondatas visible while editing and previewing, remember that most people don't, so planning the layout to accommodate it might cause ''them'' to find a strange-looking article bottom. Thus, take care to edit from the perspective of the majority. It is best to follow the persondata placement advice given on this page.
 
== Using the template ==