Linking To Wiki Pages Used As Thl Content
<h3 class="heading-h6"><a name="THLToolboxhomegtDevelopersZonegtWebDevelopmentgtLinkingtoWikiPagesUsedasTHLContent" class="anchorpoint"></a><a href="/tools/wiki/home.html">THL Toolbox</a> > <a href="/tools/wiki/Developers%27%20Zone.html">Developers' Zone</a> > <a href="/tools/wiki/Web%20Development.html">Web Development</a> > Linking to Wiki Pages Used as THL Content</h3><p class="paragraph">
</p><h3 class="heading-h1"><a name="LinkingtoWikiPagesUsedasTHLContent" class="anchorpoint"></a>Linking to Wiki Pages Used as THL Content</h3><p class="paragraph">Every page on the new THL site has the necessary code for importing any Collab Wiki page into its content. This is done through formulating a special link to the wiki page using the hash symbol (#). The link is formed as any HTML link using the <a> element. The href attribute for the <a> element should be set to: #wiki=<em class="italic">{the url for the public version of the wiki page relative to the collab site}</em>.</p><p class="paragraph">To find the link to the public version of the wiki page, do the following:</p><ol><li>Go to that page on the collab site</li>
<li>Click on the "Info" link at the top of the page</li>
<li>Locate the link to "Public View" and copy that URL from the "/access/…" to the end of the URL</li>
<li>Set href attribute of the a element to #wiki= plus the copied URL.</li></ol><p class="paragraph">By way of example, the URL for the public version of this page is:</p><p class="paragraph"><span class="t-80">
<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/linking%20to%20wiki%20pages%20used%20as%20thl%20content.html" target="rwikiexternal">https://collab.itc.virginia.edu/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/linking%20to%20wiki%20pages%20used%20as%20thl%20content.html</a></span>
</span></p><p class="paragraph">A link from a THL page to include this content in the page would thus be:</p><p class="paragraph"><span class="t-90">
<a href="/tools/wiki/linking%20to%20wiki%20pages%20used%20as%20thl%20content.html"><a href="#wiki=/access/wiki/site/c06fa8cf-c49c-4ebc-007f-482de5382105/linking%20to%20wiki%20pages%20used%20as%20thl%20content.html">View instructions on how to link to a wiki page</a></a>.
</span></p><p class="paragraph">Clicking on such a link would replace the content of THL page with the wiki content, as you are viewing presently.</p><p class="paragraph"><strong class="bold">New Markup as of August 2010, from Than Grove</strong></p><p class="paragraph">
<img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://dev.thlib.org/about/wiki/thdl%20home%20overview.html" target="rwikiexternal">http://dev.thlib.org/about/wiki/thdl%20home%20overview.html</a></span></p><p class="paragraph">The old way of doing wikis also still works, e.g.:
<br/><img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://dev.thlib.org/#wiki=/access/wiki/site/0b308aa3-d044-469b-009a-d34c7841413d/thdl%20home%20about%20us.html" target="rwikiexternal">http://dev.thlib.org/#wiki=/access/wiki/site/0b308aa3-d044-469b-009a-d34c7841413d/thdl%20home%20about%20us.html</a></span>
but I've also added code to allow for an abbreviated version:
<br/><img src="/" alt="external link: " title="external link"/><span class="nobr"><a href="http://dev.thlib.org/#wiki=/about/thdl%20home%20about%20us.html" target="rwikiexternal">http://dev.thlib.org/#wiki=/about/thdl%20home%20about%20us.html</a></span>
</p><h3 class="heading-h2"><a name="LinkingwithinaWikiPagetoanotherWikiPage" class="anchorpoint"></a>Linking within a Wiki Page to another Wiki Page</h3><p class="paragraph">
To link from one wiki page the content of which is delivered into a THLIB page to another wiki page the content of which is delivered into a THLIB page, use square brackets [ ]for the link. You can specify the text of the link you want to appear and separate it from the name of the wiki page like this:
</p><div class="code"><pre>[Text you want to appear|name of wiki page]</pre></div><p class="paragraph">
</p><h3 class="heading-h2"><a name="LinkingwithinaWikiPagetoaSpecificSectionofanotherWikiPage" class="anchorpoint"></a>Linking within a Wiki Page to a Specific Section of another Wiki Page</h3><p class="paragraph">
In the wiki page being linked to, enter an anchor tag at the place you want to link to. Then in the wiki page that has the link, create the link as described above, but add #[name of anchor] at the end of the wiki page name. Example:
Wiki page being linked to:
</p><div class="code"><pre>{anchor:featurerelations}
h3 7. FEATURE RELATIONS COMPONENT</pre></div><p class="paragraph">
Wiki page that has the link to this section:
</p><div class="code"><pre>see the [FEATURE RELATIONS COMPONENT|thl place dictionary editorial manual#featurerelations] section of the Place Dictionary Editor's Manual</pre></div><p class="paragraph">
</p><h3 class="heading-h6"><a name="ProvidedforunrestrictedusebythespanclassnobrimgsrcsakairwikitoolimagesicklearrowgifaltexternallinktitleexternallinkahrefhttpwwwthliborgtargetrwikiexternalTibetanandHimalayanLibraryaspan" class="anchorpoint"></a><em class="italic">Provided for unrestricted use by the <span class="nobr"><img src="/" alt="external link: " title="external link"/><a href="http://www.thlib.org" target="rwikiexternal">Tibetan and Himalayan Library</a></span></em></h3>