Help:הפניות

This page is a translated version of the page Help:Redirects and the translation is 27% complete.
Outdated translations are marked like this.
PD הערה: כאשר אתם עורכים דף זה, אתם מסכימים לשחרר את תרומתכם תחת רישיון CC0. למידע נוסף ראו את דפי העזרה בנושא נחלת הכלל. PD

הפניות משמשות להעברת משתמשים משם עמוד אחד לשם עמוד אחר. הן יכולות להיות שימושיות במיוחד אם לנושא ישנם מספר שמות, או, הגיות או איות חלופיים.

סוגי הפניות

קיימם שני סוגי הפניות:

ניתוב מחדש קשיח: הקוראים מועברים מהעמוד המפנה ישירות לעמוד היעד (בדרך כלל עמודים אחרים מאותו ויקי). במאמר הנוכחי יתוארו קר הפניות קשיחות.

  • Soft redirection: Readers are left on the redirect page but given the option of clicking the link to the target page.

Usually this is achieved via a template; see corresponding article on Meta.

In wikis with $wgDisableHardRedirects enabled (such as most public Wikimedia projects), it's not possible to create a hard redirect to special pages (e.g. Special:MyLanguage) or pages located on another wiki; they will be automatically "softened".

Appearance

For hard redirects, you immediately get the target page. However, it shows a small notice after the top title to indicate you arrived here indirectly.

Help:Redirects
מתוך MediaWiki
(הופנה מהדף Help:Redirect)

יצירת הפניה

When a page is moved, a redirect from the old to the new pagename is automatically created.

Users with the "suppressredirect" right may move a page without creating a redirect. By default this right is assigned to sysops and bots.

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

#REDIRECT [["שם העמוד"]]

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

Redirections can be simple page names or specified using a namespace. They can be suffixed with a section name if you have the corresponding anchor defined on the target page.[1]

Examples of valid operational redirections:

  • #REDIRECT[[Help:Magic_words#Page_names]]
  • #redirect [[Help:Magic_words#URL_encoded_page_names]]
  • #Redirect [[Manual:$wgConf]]
  • #REDIRECT [[MediaWiki/fr]] the translated page is imposed

מומלץ להשתמש בתצוגה המקדימה (על ידי שימוש בכפתור מתחת לחלון העריכה, או על ידי שימוש ב-Alt+P) בכדי לוודא כי הכנסת את שם עמוד היעד כראוי.

When redirection is valid (and operational) you will see in the previewed text the name of the target you have provided, following a 'next line' icon (image) for example as follows:

 Help:Magic words#URL encoded page names

This is what you must get.

עמוד התצוגה המקדימה לא יראה כמו דף ההפנייה, אלא יראה כרשימה ממוספרת, עם עמוד היעד בצבע כחול:

1. REDIRECT  "שם העמוד"

אם "שם העמוד" שהכנסת הוקש בצורה שגויה, הוא יופיע באדום. אם אין עמוד יעד תקין או מוכן, נא להמנע מליצור הפניה.

Limitations

A redirect target cannot depend on a variable, template, or parser function. If that is the case, the browser will not be automatically redirected on visiting the page.

Example of redirection not allowed (not operational):

JavaScript page redirect

In order to avoid JavaScript functionality from breaking, all JavaScript pages have a different redirect syntax from regular pages. This syntax allows for proper execution of the page by the browser's JavaScript engine, as well as being recognised by MediaWiki as a redirect. To create a JavaScript page redirect, the format that must be used is as follows:

/* #REDIRECT */mw.loader.load( "{{fullurl:Target.js|action=raw&ctype=text/javascript}}" );

Where Target.js is the target page name.

צפייה בהפנייה

אחרי יצירה של עמוד הפנייה, לא תוכל להגיע לעמוד על ידי שמו או כל קישור המוביל לעמוד זה. עם זאת, בחלקו העליון של עמוד היעד, ניתן לשים לב כי רשום שהופנית לעמוד זה, עם שם של עמוד ההפנייה שהוביל אותך לעמוד יעד זה. Click this to get back to the redirected page, showing the large bent arrow symbol and the destination for the redirect. This adds &redirect=no URL parameter.

Help:Redirection
מתוך MediaWiki
דף הפניה

  Help:Redirect

By doing this, you can do all the things that any wiki page allows. You can go to the associated discussion page to discuss the redirect. You can view the history of the page, including a record of the redirect. You can edit the page if the redirect is wrong, and you can revert to an older version to remove the redirect.

מחיקת הפניה

There's generally no need to delete redirects. They do not occupy a significant amount of database space. If a page name is vaguely meaningful, there's no harm, and some benefit, in having it as a redirect to the more relevant or current page.

If want to move a page over a redirect that has only one edit in its history and targeted to the old page name, there is no need to delete the redirect: it is overwritten. If the redirect has more than one history entry, or the redirect target is somewhere else, then it can only be deleted-and-moved by an administrator.

If you do need to delete a redirect, e.g. if the page name is offensive, or you wish to discourage people from referring to a concept by that name, then you simply go to the redirect page as mentioned above, and follow the procedures at Help:Deletion and undeletion .

Problematical redirects

Double redirects

A double redirect is a page redirecting to a page which is itself a redirect, and it will not work.[2]Instead, people will be presented with a view of the next redirect page. This is a deliberate restriction, partly to prevent infinite loops, and partly to keep things simple.

However, you could look out for double redirects and eliminate them by changing them to be 1-step redirects instead. You are most likely to need to do this after a significant page move. Use the "what links here" toolbox link to find double redirects to a particular page, or use Special:DoubleRedirects to find them throughout the whole wiki.

There is an option, $wgFixDoubleRedirects , to automatically fix double redirects with a job queue. However, it tends to aggravate page move vandalism, so it is disabled by default. The __STATICREDIRECT__ magic word can be used to skip the double-redirect fix on a particular page.

Broken redirects

If the target page does not exist, the redirect is broken: redirection will not occur. You may find all broken redirects at Special:BrokenRedirects.

Redirect to a page in the category namespace

To redirect to a category page and prevent the redirect appearing in this category, precede the words "Category" with a colon. Otherwise the redirect page will also be categorized to the category itself.

#REDIRECT [[:Category:Glossary]]

Transcluding a redirect

When a page called for inclusion is a redirect page, the redirect target is included instead, with the same parameters, without any redirect message. A double redirect does not work.

This allows to create several names for the same template.

Links to redirect

An internal link to a redirect page has CSS class mw-redirect. This can be useful to make them stand out, for clean-up work involving bypassing redirects.

ר' גם

References

  1. From 2006 development, after 2004 bug report.
  2. This may be controlled by $wgMaxRedirects .