Wiki linking: Difference between revisions

    From Consumerium development wiki R&D Wiki
    (standards are imposed by the GFDL text corpus and the need to support multiple languages and services, the Mediawiki and Getwiki defaults are wrong, and we must say so)
    m (fix typos and one duplicate link)
     
    (8 intermediate revisions by 4 users not shown)
    Line 1: Line 1:
    ===What you type is not what they see===
    ==What you type is not what they see==
    It is possible to make link texts differ from the name of the target using the "pipe" (unix) symbol which is "|" like this:
    It is possible to make link texts differ from the name of the target using the "pipe" (unix) symbol which is "|" like this:


    Line 5: Line 5:
    *Remember <nowiki>[[reality first|what ever you want people to see second]]</nowiki> if you have trouble remembering which way it is.
    *Remember <nowiki>[[reality first|what ever you want people to see second]]</nowiki> if you have trouble remembering which way it is.


    This is called [[anchor text]] and is usually best avoided, as it does not reinforce the name of the page in the end user's mind.


    ----
    ==Interwiki linking==
    is used to link to other wiki's namespaces without writing the fully qualified URL. This makes collaboration between wikis much simpler.
    *To link to http://www.wikipedia.org/wiki/Wikipedia use [[w:Wikipedia]]
    *To link to http://meta.wikipedia.org/wiki/Wikipedia use [[m:Wikipedia]]
    *To link to http://wiktionary.org/wiki/Consumer use [[wiktionary:Consumer]]
    Links outside [[Consumerium]] are colored [[w:color|differently]] then the usual ones.
    ----
    ----
    ==Name spaces==
    ==Name spaces==
    Line 26: Line 18:
    *"Image" [[image uploading is disabled for now, sorry]]
    *"Image" [[image uploading is disabled for now, sorry]]
    *"Image_talk" [[image uploading is disabled for now, sorry]]
    *"Image_talk" [[image uploading is disabled for now, sorry]]
     
    ----


    ==Hiding namespaces==
    ==Hiding namespaces==
    Line 32: Line 24:
    * <nowiki>[[wiktionary:Product|]]</nowiki> (notice the "pipe" symbol) is presented like this [[wiktionary:Product|Product]]
    * <nowiki>[[wiktionary:Product|]]</nowiki> (notice the "pipe" symbol) is presented like this [[wiktionary:Product|Product]]
    * <nowiki>[[Consumerium:Village pump|]]</nowiki> is presented like this [[Consumerium:Village pump|Village pump]]
    * <nowiki>[[Consumerium:Village pump|]]</nowiki> is presented like this [[Consumerium:Village pump|Village pump]]
    ----
    ==Interwiki linking==
    is used to link to other wiki's namespaces without writing the fully qualified URL. This makes collaboration between wikis much simpler.


    == proposed standards ==
    *To link to http://www.wikipedia.org/wiki/Wikipedia use [[w:Wikipedia]]
    *To link to http://meta.wikipedia.org/wiki/Wikipedia use [[m:Wikipedia]]
    *To link to http://wiktionary.org/wiki/Consumer use [[wiktionary:Consumer]]


    *[[interwiki link standard]]
    Links outside [[Consumerium]] are colored [[w:color|differently]] then the usual ones.
    *[[interwiki identity standard]] - for links between authors and articles which are presently treated as "special", despite the fact they are often very tenuous
    *[[standard wiki URI]]


    There are some temporary hacks which violate standards of the vast majority of [[GFDL text corpus]] articles, and others which make it difficult to move away from a service-specific hierarchy to a language-specific hierarchy.  These are:
    ----


    ===[[MediaWiki]] 1.2.0rc3 and [[GetWiki]] defaults ==
    ===[[MediaWiki]] 1.2.0rc3 and [[GetWiki]] defaults ===
    The following are the non-[[standard wiki URI]]s which are the unwise defaults:
    The following are the non-[[standard wiki URI]]s which are the unwise defaults:
      http://www.consumerium.org/wiki/wiki.phtml?title=Wiki_linking (as before)
      http://www.consumerium.org/wiki/wiki.phtml?title=Wiki_linking (as before)
    Line 50: Line 45:
       
       
    ===Current Interwiki links===
    ===Current Interwiki links===
    <pre>
      REPLACE INTO interwiki (iw_prefix,iw_url,iw_local) VALUES
      REPLACE INTO interwiki (iw_prefix,iw_url,iw_local) VALUES
    ('w','http://www.wikipedia.org/wiki/$1',1),
    ('w','http://www.wikipedia.org/wiki/$1',1),
    ('m','http://meta.wikipedia.org/wiki/$1',1),
    ('m','http://meta.wikimedia.org/wiki/$1',1),
    ('meta','http://meta.wikipedia.org/wiki/$1',1),
    ('meta','http://meta.wikimedia.org/wiki/$1',1),
    ('simple','http://simple.wikipedia.org/wiki/$1',1);
    ('simple','http://simple.wikipedia.org/wiki/$1',1),
    ('Wiktionary','http://wiktionary.org/wiki/$1',0),
    ('WikiBooks','http://wikibooks.org/wiki/$1',0);
    </pre>


    Should anyone have the need to link to Wikipedia in languages other than English, just stick in the language code like so: [[Wikipedia:fr:Commerce �quitable]] or [[w:fr:Commerce �quitable]]. ''This also violates the proposed [[interwiki link standard]], which would reverse this to [[fr:Wikipedia:Commerce_�quitable]], putting the language first to create a language-specific hierarchy, and requiring the full service name "Wikipedia".''
    ===Linking to other language Wikipedias===
    Should anyone have the need to link to Wikipedia in languages other than English, just stick in the language code like so: [[Wikipedia:fr:Commerce équitable]] or [[w:fr:Commerce équitable]].
    ----
    ===Proposed Interwiki link standard===
    ''Please use alternate anchor text to simulate an [[interwiki link standard]] for now, e.g. [http://recyclopedia.info/wiki/wiki.phtml?title=Recyclopedia:avoid_anchor_text en: Recyclopedia: avoid anchor text].  Eventually this should be directly supported in software.''
    ----
    ==Linking to URLs that use apostrophes (')==
    Directly writing the apostrophe to the url does not work and the apostrophe (') should be replaced by "%27" instead of the apostrophe, in the URL.  Ugly but it works.

    Latest revision as of 15:12, 5 June 2005

    What you type is not what they see[edit | edit source]

    It is possible to make link texts differ from the name of the target using the "pipe" (unix) symbol which is "|" like this:

    • [[XML|eXtendable Markup Language]], which would be presented like this eXtendable Markup Language
    • Remember [[reality first|what ever you want people to see second]] if you have trouble remembering which way it is.

    This is called anchor text and is usually best avoided, as it does not reinforce the name of the page in the end user's mind.


    Name spaces[edit | edit source]

    There exists a number of namespaces in the consumerium wiki space these are

    • "Special" this is used for machine generated pages, accessible through the "special pages" drop down list on the top of the page
    • "Talk" this is where you go, when you click on the "Discuss this page"-link on an ordinary page
    • "User" you can have a page of your own in this space if you register following the "Log In"-link on the upper right hand corner
    • "User_talk" for discussions with registered users ("Discuss this page"-link on User pages)
    • "Consumerium", is the rough equivalent of the Wikipedia-namespace on Wikipedia.
    • "Consumerium_talk" is for Discussing the Consudev: pages
    • "Image" image uploading is disabled for now, sorry
    • "Image_talk" image uploading is disabled for now, sorry

    Hiding namespaces[edit | edit source]

    You can use "the pipe trick" to hide the namespace without typing in alternative text like this

    • [[wiktionary:Product|]] (notice the "pipe" symbol) is presented like this Product
    • [[Consumerium:Village pump|]] is presented like this Village pump

    Interwiki linking[edit | edit source]

    is used to link to other wiki's namespaces without writing the fully qualified URL. This makes collaboration between wikis much simpler.

    Links outside Consumerium are colored differently then the usual ones.


    MediaWiki 1.2.0rc3 and GetWiki defaults[edit | edit source]

    The following are the non-standard wiki URIs which are the unwise defaults:

    http://www.consumerium.org/wiki/wiki.phtml?title=Wiki_linking (as before)
    http://www.consumerium.org/wiki/index.php?title=Wiki_linking (notice the change from wiki.phtml to index.php
    http://www.consumerium.org/wiki/index.php/Wiki_linking (new ease of use without mod_rewrite
    

    The standard wiki URI as used at Wikipedia would be http://en.consumerium.org/wiki/Wiki_linking - the /wiki/ subspace indicating articles amenable to wiki based editing. There may be other spaces for /print/ or a non-wiki /edit/.

    Current Interwiki links[edit | edit source]

     REPLACE INTO interwiki (iw_prefix,iw_url,iw_local) VALUES
    ('w','http://www.wikipedia.org/wiki/$1',1),
    ('m','http://meta.wikimedia.org/wiki/$1',1),
    ('meta','http://meta.wikimedia.org/wiki/$1',1),
    ('simple','http://simple.wikipedia.org/wiki/$1',1),
    ('Wiktionary','http://wiktionary.org/wiki/$1',0),
    ('WikiBooks','http://wikibooks.org/wiki/$1',0);
    

    Linking to other language Wikipedias[edit | edit source]

    Should anyone have the need to link to Wikipedia in languages other than English, just stick in the language code like so: Wikipedia:fr:Commerce équitable or w:fr:Commerce équitable.


    Proposed Interwiki link standard[edit | edit source]

    Please use alternate anchor text to simulate an interwiki link standard for now, e.g. en: Recyclopedia: avoid anchor text. Eventually this should be directly supported in software.


    Linking to URLs that use apostrophes (')[edit | edit source]

    Directly writing the apostrophe to the url does not work and the apostrophe (') should be replaced by "%27" instead of the apostrophe, in the URL. Ugly but it works.