Middlebury

Difference between revisions of "Template:Hi"

m (Reverted edits by Afranco (Talk) to last version by Chunt)
(Testing using HTML Links instead of wiki-style links)
Line 1: Line 1:
<includeonly>[https://mediawiki.middlebury.edu/wiki/hi/{{{1}}} {{{2|{{{1}}}}}}]</includeonly>
+
<includeonly><a href="https://mediawiki.middlebury.edu/wiki/hi/{{{1}}}">{{{2|{{{1}}}}}}</a></includeonly> <noinclude>
<noinclude>
 
 
Usage
 
Usage
 
* Add a link to a page in the hi (Helpdesk Internal) wiki:
 
* Add a link to a page in the hi (Helpdesk Internal) wiki:
** <code><nowiki>{{hi|ArticleName}}</nowiki></code> &raquo; {{hi|ArticleName}}
+
** <code>
 +
<nowiki>{{hi|ArticleName}}</nowiki> </code> &raquo; {{hi|ArticleName}}
 
* You can also include optional text:  
 
* You can also include optional text:  
** <code><nowiki>{{hi|ArticleName|some other text to display}}</nowiki></code> &raquo; {{hi|ArticleName|some other text to display}}
+
** <code>
 +
<nowiki>{{hi|ArticleName|some other text to display}}</nowiki> </code> &raquo; {{hi|ArticleName|some other text to display}}
  
 
Warning: This template seems to have a bug where if this HI template link is inserted into a paragraph and there is a '''space''' directly after it, the rest of that paragraph will be shoved into a lower dotted line like this: (If you go to Edit, you'll see that the following blah blah blah section should all be on the same line!)
 
Warning: This template seems to have a bug where if this HI template link is inserted into a paragraph and there is a '''space''' directly after it, the rest of that paragraph will be shoved into a lower dotted line like this: (If you go to Edit, you'll see that the following blah blah blah section should all be on the same line!)

Revision as of 12:53, 16 December 2008

Usage

  • Add a link to a page in the hi (Helpdesk Internal) wiki:

{{hi|ArticleName}} » <a href="https://mediawiki.middlebury.edu/wiki/hi/ArticleName">ArticleName</a>

  • You can also include optional text:

{{hi|ArticleName|some other text to display}} » <a href="https://mediawiki.middlebury.edu/wiki/hi/ArticleName">some other text to display</a>

Warning: This template seems to have a bug where if this HI template link is inserted into a paragraph and there is a space directly after it, the rest of that paragraph will be shoved into a lower dotted line like this: (If you go to Edit, you'll see that the following blah blah blah section should all be on the same line!)

Paragraph blah blah blah <a href="https://mediawiki.middlebury.edu/wiki/hi/Main Page">HI Main Page</a> blah blah blah end of paragraph.

Unfortunately, the only workaround I know of so far is to format sentences so that any HI links go at the end of the sentence, with a period directly after them, so that this problem is avoided.


Powered by MediaWiki