External Redirects

  • 리비전 슬러그: Project:External_Redirects
  • 리비전 제목: External Redirects
  • 리비전 아이디: 183863
  • 제작일시:
  • 만든이: Vimming
  • 현재 리비전인가요?
  • 댓글 New page: <breadcrumbs></breadcrumbs> {{MDCProjectPagesTOC}} The MDC wikis have the ability to redirect to external websites. We have done this so we can have links to external pages within the w...

리비전 내용

{{ MDCProjectPagesTOC() }}

The MDC wikis have the ability to redirect to external websites. We have done this so we can have links to external pages within the wiki that will be included in the wiki category pages.

Creating an external redirect

To create one of these external redirects, do the following:

First, create the page that will be the external redirect, suffixing the title with "(external)". For example: Mozilla Project Wiki (external). This "(external)" suffix is used as an indicator to the user that the link he/she is about to click will take them to a page outside of the wiki. This is primarily for use in the Category lists, where manual linking isn't possible. See below for more information about creating manual links to External Redirect pages.

Next, edit that page and add the redirect command, followed by the desired target URL enclosed in double square brackets. For example:

 #RE‌DIRECT [[http://wiki.mozilla.org]]

Finally, add a category to the redirect page. Note that the category must be on the same line as the REDIRECT command, or the parser will ignore it. For example:

 #RE‌DIRECT [[http://wiki.mozilla.org]] [[Category:Mozilla Project:Other Resources]]

When this is finished, simply save the page as normal.

Manually linking to external redirects

You should not create links to external redirects. Instead, just create regular external links to the site. The reason for this is because linking to an external redirect obscures the URL and users won't know where they will end up. This can be pretty annoying, and annoying users is a bad thing.

Editing External Redirects

Since an external redirect page immediately bounces you to the external site, editing the external redirect can be a challenge. To do so, simply add "?action=edit" to the end of the URL for the external redirect page. This is somewhat inconvenient, but it works. For example:

Example

Migrating pages referred to by external redirects

If you migrate an article into the MDC check the category page to see if there's an external redirect pointing at it as well.

If there is, check the "what links here" (link in right column, in Toolbox) to see if any other pages link to that external redirect. If any links exist, change them so they point at the newly migrated article.

When no pages link to the external redirect page, redirect it to the newly migrated article and put it in the "Junk" category (using [[Category:Junk]]) so it can be deleted.

If you have any questions about using External Redirects, feel free to email Deb Richardson at .

{{ languages( { "fr": "Project:fr/Redirections_externes", "es": "Project:es/Redireccionamiento_externo", "pl": "Project:pl/Zewn\u0119trzne_przekierowania" } ) }}

리비전 소스

<p>
{{ MDCProjectPagesTOC() }}
</p><p>The MDC wikis have the ability to redirect to external websites. We have done this so we can have links to external pages within the wiki that will be included in the wiki <a href="Special:Tags?tag=All_Categories&amp;language=ko">category</a> pages. </p>
<h3 id="Creating_an_external_redirect" name="Creating_an_external_redirect"> Creating an external redirect </h3>
<p>To create one of these external redirects, do the following:
</p><p>First, create the page that will be the external redirect, suffixing the title with "(external)". For example: <a href="ko/Mozilla_Project_Wiki_(external)">Mozilla Project Wiki (external)</a>. This "(external)" suffix is used as an indicator to the user that the link he/she is about to click will take them to a page outside of the wiki. This is primarily for use in the Category lists, where manual linking isn't possible. See below for more information about creating manual links to External Redirect pages.
</p><p>Next, edit that page and add the redirect command, followed by the desired target URL enclosed in double square brackets. For example:
</p>
<pre> #RE‌DIRECT [[http://wiki.mozilla.org]]
</pre>
<p>Finally, add a category to the redirect page. Note that the category must be <i>on the same line</i> as the REDIRECT command, or the parser will ignore it. For example:
</p>
<pre> #RE‌DIRECT [[http://wiki.mozilla.org]] [[Category:Mozilla Project:Other Resources]]
</pre>
<p>When this is finished, simply save the page as normal.
</p>
<h3 id="Manually_linking_to_external_redirects" name="Manually_linking_to_external_redirects"> Manually linking to external redirects </h3>
<p>You should not create links to external redirects. Instead, just create regular external links to the site. The reason for this is because linking to an external redirect obscures the URL and users won't know where they will end up. This can be pretty annoying, and annoying users is a bad thing.
</p>
<h3 id="Editing_External_Redirects" name="Editing_External_Redirects"> Editing External Redirects </h3>
<p>Since an external redirect page immediately bounces you to the external site, editing the external redirect can be a challenge. To do so, simply add "<code>?action=edit</code>" to the end of the URL for the external redirect page. This is somewhat inconvenient, but it works. For example:
</p><p><a class="external" href="http://developer.mozilla.org/en/docs/Mozilla_Project_Wiki_%28external%29?action=edit">Example</a>
</p>
<h3 id="Migrating_pages_referred_to_by_external_redirects" name="Migrating_pages_referred_to_by_external_redirects"> Migrating pages referred to by external redirects </h3>
<p>If you migrate an article into the MDC check the category page to see if there's an external redirect pointing at it as well. </p><p>If there is, check the "what links here" (link in right column, in <i>Toolbox</i>) to see if any other pages link to that external redirect. If any links exist, change them so they point at the newly migrated article. </p><p>When no pages link to the external redirect page, redirect it to the newly migrated article and put it in the "Junk" category (using <span class="nowiki">[[Category:Junk]]</span>) so it can be deleted.
</p><p>If you have any questions about using External Redirects, feel free to email Deb Richardson at <a class="link-mailto" href="mailto:deb@dria.org">.
</a></p><a class="link-mailto" href="mailto:deb@dria.org">{{ languages( { "fr": "Project:fr/Redirections_externes", "es": "Project:es/Redireccionamiento_externo", "pl": "Project:pl/Zewn\u0119trzne_przekierowania" } ) }}</a>
Revert to this revision