Difference between revisions of "Template talk:Type"

From Kerbal Space Program Wiki
Jump to: navigation, search
Line 9: Line 9:
 
   |type=List<Blah>
 
   |type=List<Blah>
 
   |name=ClassID
 
   |name=ClassID
   |desc=?
+
   |desc=This one doesn't.
 
   |hasget=1
 
   |hasget=1
 
   |hasset=
 
   |hasset=
Line 16: Line 16:
 
   |type=SomeTypeWithoutAngleBrackets
 
   |type=SomeTypeWithoutAngleBrackets
 
   |name=ThisWorks
 
   |name=ThisWorks
   |desc=?
+
   |desc=This one works.
 
   |hasget=1
 
   |hasget=1
 
   |hasset=
 
   |hasset=
Line 22: Line 22:
 
{{PropertiesEnd}}
 
{{PropertiesEnd}}
  
Right now my workaround is to use weird unicode brackets that don't upset the templates. [[User:Glyph|Glyph]] ([[User talk:Glyph|talk]]) 22:27, 13 October 2015 (UTC)
+
Right now my workaround is to use weird unicode brackets that don't upset the templates. Any solution to this should also work for nested generics like List<List<Things>>. [[User:Glyph|Glyph]] ([[User talk:Glyph|talk]]) 22:27, 13 October 2015 (UTC)

Revision as of 22:28, 13 October 2015

Problem angle brackets and template

Can't have < and > signs in a link or it won't work: BaseActio>nList

Example of this causing things to fail:

Properties

The following are public properties available in Type.

Signature Description
List<Blah> ClassID { get; } This one doesn't.
SomeTypeWithoutAngleBrackets ThisWorks { get; } This one works.

Right now my workaround is to use weird unicode brackets that don't upset the templates. Any solution to this should also work for nested generics like List<List<Things>>. Glyph (talk) 22:27, 13 October 2015 (UTC)