Difference between revisions of "Template:RenamedSyscall"

From WikiPrizm
Jump to navigationJump to search
Line 1: Line 1:
<noinclude>Use this template for syscalls that have been renamed in libfxcg.  Just pass in the old name and the new name:
+
<noinclude>Use this template for syscalls that have been renamed in libfxcg.  Just pass in the old name:
  <nowiki>{{renamedsyscall
+
  <nowiki>#redirect [[Serial_Read]]
| old = Serial_ReadNBytes
+
{{RenamedSyscall
| new = Serial_Read
+
| name = Serial_ReadNBytes
}}</nowiki></noinclude>
+
}}</nowiki>
<includeonly>
+
The explicit redirect is necessary due to technical limitations with redirects and templating, unfortunately.
#REDIRECT [[{{{new}}}]]
+
</noinclude><includeonly>
{{DISPLAYTITLE:{{{old}}}}}
+
{{DISPLAYTITLE:{{{name}}}}}
 
[[Category:Syscalls]]
 
[[Category:Syscalls]]
 
[[Category:Renamed Syscalls]]</includeonly>
 
[[Category:Renamed Syscalls]]</includeonly>

Revision as of 12:34, 18 May 2012

Use this template for syscalls that have been renamed in libfxcg. Just pass in the old name:

#redirect [[Serial_Read]]
{{RenamedSyscall
| name = Serial_ReadNBytes
}}

The explicit redirect is necessary due to technical limitations with redirects and templating, unfortunately.