Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel
Difference between revisions of "Template:Samegame"
From Unreal Wiki, The Unreal Engine Documentation Site
m (too complicated) |
m (this should do the trick (sucks I have to save this to see the effect)) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#if:{{ARTICLESPACE}}|{{ARTICLESPACE}}:}}{{{1}}}{{#if:{{#pos:{{PAGENAME}}|(}}|_{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|(}}| | + | {{#if:{{ARTICLESPACE}}|{{ARTICLESPACE}}:}}{{{1}}}{{#if:{{#pos:{{PAGENAME}}|(}}|_{{#sub:{{PAGENAME}}|{{#pos:{{PAGENAME}}|(}}|{{#expr:1+{{#pos:{{PAGENAME}}|)}}-{{#pos:{{PAGENAME}}|(}}}}}}}}<noinclude> |
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |
Latest revision as of 05:34, 29 November 2008
Template:{{{1}}}
[edit] Documentation
This template generates a page link name for another page in the same namespace and with the same game name in parentheses, if available. It is used mostly on class description pages to avoid content duplication, e.g. between the UE2Runtime, UT2003 and UT2004 class descriptions.
Usage
A link to anchor "Usage" on page "Template:Infobox class" (this namespace!) with the text "Class Infobox":
[[{{samegame|Infobox class}}#Usage|Class Infobox]]