Difference between revisions of "Template:Main site"

From GeeklogWiki
Jump to: navigation, search
m (Template:Article moved to Template:Main site: I've made it general)
m (Changed template's name)
Line 8: Line 8:
  
 
==Usage==
 
==Usage==
<pre><nowiki>{{article| type=article| id=articleID}}</nowiki></pre>
+
<pre><nowiki>{{main site| type=article| id=articleID}}</nowiki></pre>
  
For example, <nowiki>{{article| type=article| id=2004063013542379}}</nowiki> would display as:
+
For example, <nowiki>{{main site| type=article| id=2004063013542379}}</nowiki> would display as:
  
{{article| type=article| id=2004063013542379}}
+
{{main site| type=article| id=2004063013542379}}
  
<pre><nowiki>{{article| type=forum| id=forumID}}</nowiki></pre>
+
<pre><nowiki>{{main site| type=forum| id=forumID}}</nowiki></pre>
  
For example, <nowiki>{{article| type=forum| id=87624}}</nowiki> would display as:
+
For example, <nowiki>{{main site| type=forum| id=87624}}</nowiki> would display as:
  
{{article| type=forum| id=87624}}
+
{{main site| type=forum| id=87624}}
  
 
</noinclude>
 
</noinclude>

Revision as of 11:42, 26 May 2009

Supply an item type and ID from the main site and get a link for it.

Usage

{{main site| type=article| id=articleID}}

For example, {{main site| type=article| id=2004063013542379}} would display as:

http://www.geeklog.net/article.php/{{{1}}}

{{main site| type=forum| id=forumID}}

For example, {{main site| type=forum| id=87624}} would display as:

http://www.geeklog.net/article.php/{{{1}}}