Difference between revisions of "Template:Main site"

From GeeklogWiki
Jump to: navigation, search
(Another approach)
m (Switched)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>http://www.geeklog.net/{{#if:{{{type|}}}|
+
#REDIRECT [[Template:Article]]
{{#switch:{{{type}}}
 
|article=article.php/}}
 
|forum=forum/viewtopic.php?showtopic=}}
 
|#default={{{hair color2}}}}}
 
}}{{{id}}}</includeonly><noinclude>Supply an item type and ID from the main site and get a link for it.
 
 
 
==Usage==
 
<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:
 
 
 
{{main site| type=article| id=2004063013542379}}
 
 
 
<nowiki>{{main site| type=forum| id=87624}}</nowiki> would display as:
 
 
 
{{main site| type=forum| id=87624}}
 
 
 
</noinclude>
 

Latest revision as of 12:08, 26 May 2009

Redirect to: