Difference between revisions of "Template:Main site"
From GeeklogWiki
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}}}}} | ||
− | | | + | |article.php/ |
|{{#if:{{forum|{{{type}}}}} | |{{#if:{{forum|{{{type}}}}} | ||
− | | | + | |forum/viewtopic.php?showtopic=}} |
}} | }} | ||
}} | }} | ||
Line 8: | Line 8: | ||
==Usage== | ==Usage== | ||
− | <pre><nowiki>{{main site| type= | + | <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}} | ||
− | + | <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}}}