Difference between revisions of "Template:Main site"
From GeeklogWiki
m (Changed template's name) |
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/ | + | |{{{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== |
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}}}