Redirects

From iGeek

There are 3 kinds of redirects:

  • Normal -- MW built in Redirect
  • External -- MW redirect to external pages
  • Atomic -- Custom -- that allows a Page with one name, to show up in another category (with another name).

Normal[edit | edit source]

Normally a redirect is just that would make a page redirect you to the Main Page (making the source page an alias for the target page).

#Redirect [[Main Page]]

External[edit | edit source]

If you need to redirect to another site/page, it can be done. This is actually a confusing UserInterface, as someone is just somewhere else, and don't know how to get back. But if can be useful -- as I could create two sites that interlink back and forth, or have a UI (Breadcrumbs/etc) to get them back.

{{#externalredirect: https://www.apple.com/}}

Atomic[edit | edit source]

Well, I want something more powerful... so I created my Atomic Redirect.

This does a little more than just redirect --- it allows a Page with one name, to show up in another category (and by another name). They still get directed to the new page, but a little intro text can give them the continuity they need.

If you create a page: Atom:Income_Inequality with the contents:

{{DEFAULTSORT:Income Inequality, Atom}}
< noinclude>
{{#set:Redirect=[[Income_inequality,_vanishing_middle_class,_and_other_scams|Income Inequality]]}}
[[Category:Terms]]
< /noinclude>

It did a few things:

  1. The {{#set:Redirect=[[Income_inequality,_vanishing_middle_class,_and_other_scams|Income Inequality]]}} creates a link that shows as [Income Inequality[ and links to a page named [Income_inequality,_vanishing_middle_class,_and_other_scams]
  2. If you use {{Show List 3col|[[Category:Terms]]}} it runs each return item though a filter that will substitute my link (atomic redirect) for the list item.
  3. What this does is allow me to write an article like this, that has multiple things "Income Inequality", "Vanishing Middle Class" can each show as a result elsewhere -- but direct the user to the correct compound article.
  4. DEFATULTSORT does what it always does... but since this would show up under "A's" for "Atom:Income Inequality" in search results. This fixes that to the proper position, as if it was named "Income Inequality".


GeekPirate.small.png


👁️ See also

  • Help - This is the root of the help pages. These vary from simple to detailed programming


🔗 More

Main Page
The root of all evil... and the home page for this website.

Porting
How to move things from the old iGeeek site to the new site.

Examples
Here is a bunch of examples of how to do formatting / use templates in this site.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.