Latest Neocron News and Information

  • New test server patch #563 has been released to Vedeena

Legacy THNapi:Api No Index

From Neocron Wiki
Revision as of 12:58, 24 July 2008 by Brammers (talk | contribs) (New page: {{api | tag = api:no_index | command = Api_No_Index | usage = This command prevents any item db tags on the whole page from link to an item. | thn_only = no }} == Usage == Sometimes ...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Api No Index

  • Item DB Tag: <api:no_index>
  • Web service function: Api_No_Index
  • Usage: This command prevents any item db tags on the whole page from link to an item.

Required parameters

Optional parameters


Usage

Sometimes it is not appropriate for a page to be indexed by the THN api linking layer. An example would be the ASG page where 2 vehicles are mentioned as Item DB tags.

Normally when the page is saved, the Wiki and the THN API would link the items to the ASG page. The <api:no_index/> turns off any linking for the whole page.

To stop a single item being indexed simply add index="no" to the existing Item DB tag. (See THNapi:Parameter - Index for more information.)

Test pages

Due to the way the THN API links articles and items only in the Main Namespace. So these test pages must be move to the Main namespace for testing, and should only be done on the NC-Wiki testing and development server. However these tests also serve as examples on the usage of tis tag and the index attribute.