Difference between revisions of "Template:Main site"

From GeeklogWiki
Jump to: navigation, search
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/
+
|{{type}}.php/
 
|{{#if:{{forum|{{{type}}}}}
 
|{{#if:{{forum|{{{type}}}}}
|{{{type}}}/viewtopic.php?showtopic=}}
+
|{{type}}/viewtopic.php?showtopic=}}
 
}}
 
}}
 
}}
 
}}
{{{id}}}</includeonly><noinclude>Supply an item type and ID from the main site and get a link for it.
+
{{id}}</includeonly><noinclude>Supply an item type and ID from the main site and get a link for it.
  
 
==Usage==
 
==Usage==
<pre><nowiki>{{article|article|articleID}}</nowiki></pre>
+
<pre><nowiki>{{article| type=article| id=articleID}}</nowiki></pre>
  
For example, <nowiki>{{article|article|2004063013542379}}</nowiki> would display as:
+
For example, <nowiki>{{article| type=article| id=2004063013542379}}</nowiki> would display as:
  
{{article|article|2004063013542379}}
+
{{article| type=article| id=2004063013542379}}
  
<pre><nowiki>{{article|forum|forumID}}</nowiki></pre>
+
<pre><nowiki>{{article| type=forum| id=forumID}}</nowiki></pre>
  
For example, <nowiki>{{article|forum|87624}}</nowiki> would display as:
+
For example, <nowiki>{{article| type=forum| id=87624}}</nowiki> would display as:
  
{{article|forum|87624}}
+
{{article| type=forum| id=87624}}
  
 
</noinclude>
 
</noinclude>

Revision as of 11:41, 26 May 2009

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

Usage

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

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

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

{{article| type=forum| id=forumID}}

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

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