Difference between revisions of "Template:Main site"

From GeeklogWiki
Jump to: navigation, search
m
m
Line 1: Line 1:
 
<includeonly>http://www.geeklog.net/{{#if:{{{type|}}}|{{#if:{{article|{{{type}}}}}
 
<includeonly>http://www.geeklog.net/{{#if:{{{type|}}}|{{#if:{{article|{{{type}}}}}
|{{{type}}}.php/
+
|article.php/
 
|{{#if:{{forum|{{{type}}}}}
 
|{{#if:{{forum|{{{type}}}}}
|{{{type}}}/viewtopic.php?showtopic=}}
+
|forum/viewtopic.php?showtopic=}}
 
}}
 
}}
 
}}
 
}}
Line 8: Line 8:
  
 
==Usage==
 
==Usage==
<pre><nowiki>{{main site| type=article| id=articleID}}</nowiki></pre>
+
<pre><nowiki>{{main site| type=item_type| id=item_id}}</nowiki></pre>
  
 
For example, <nowiki>{{main site| type=article| id=2004063013542379}}</nowiki> would display as:
 
For example, <nowiki>{{main site| type=article| id=2004063013542379}}</nowiki> would display as:
Line 14: Line 14:
 
{{main site| type=article| id=2004063013542379}}
 
{{main site| type=article| id=2004063013542379}}
  
<pre><nowiki>{{main site| type=forum| id=forumID}}</nowiki></pre>
+
<nowiki>{{main site| type=forum| id=87624}}</nowiki> would display as:
 
 
For example, <nowiki>{{main site| type=forum| id=87624}}</nowiki> would display as:
 
  
 
{{main site| type=forum| id=87624}}
 
{{main site| type=forum| id=87624}}
  
 
</noinclude>
 
</noinclude>

Revision as of 11:47, 26 May 2009

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

Usage

{{main site| type=item_type| id=item_id}}

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

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

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

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