Difference between revisions of "Template:Main site"

From GeeklogWiki
Jump to: navigation, search
m (Working demo)
Line 1: Line 1:
<includeonly>http://www.geeklog.net/article.php/{{{1}}}</includeonly><noinclude>Supply an article ID from the main site and get a link for it.
+
<includeonly>http://www.geeklog.net/{{#if:{{{type|}}}|{{#if:{{article|{{{type}}}}}
 +
|{{{type}}}.php/
 +
|{{#if:{{forum|{{{type}}}}}
 +
|{{{type}}}/viewtopic.php?showtopic=}}
 +
}}
 +
}}
 +
{{{id}}}</includeonly><noinclude>Supply an item type and ID from the main site and get a link for it.
  
 
==Usage==
 
==Usage==
<pre><nowiki>{{article|articleID}}</nowiki></pre>
+
<pre><nowiki>{{article|article|articleID}}</nowiki></pre>
  
For example, <nowiki>{{article|2004063013542379}}</nowiki> would display as:
+
For example, <nowiki>{{article|article|2004063013542379}}</nowiki> would display as:
 +
 
 +
{{article|article|2004063013542379}}
 +
 
 +
<pre><nowiki>{{article|forum|forumID}}</nowiki></pre>
 +
 
 +
For example, <nowiki>{{article|forum|87624}}</nowiki> would display as:
 +
 
 +
{{article|forum|87624}}
  
{{article|2004063013542379}}
 
 
</noinclude>
 
</noinclude>

Revision as of 11:38, 26 May 2009

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

Usage

{{article|article|articleID}}

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

http://www.geeklog.net/article.php/article

{{article|forum|forumID}}

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

http://www.geeklog.net/article.php/forum