Template:File/Doc: Difference between revisions

DoggoBit (talk | contribs)
No edit summary
DHCP (talk | contribs)
m Usage: added {{expand}}: we should mention (somewhere) that nowiki tag makes some symbols display as `&xyz`. I see this often across the wiki.
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:


== Usage ==
== Usage ==
{{expand|Add note that nowiki breaks stuff like angle brackets}}


Simply include this template in your page, specifying the language, file name and content of the file. Note that you may have to surround the code in <code><<nowiki>nowiki</nowiki>></code> tags in order to display it correctly.
Simply include this template in your page, specifying the language, file name and content of the file. Note that you may have to surround the code in <code><<nowiki>nowiki</nowiki>></code> tags in order to display it correctly.
Line 38: Line 40:
       "description": "Name of the file the code belongs to",
       "description": "Name of the file the code belongs to",
       "type": "string",
       "type": "string",
       "required": true,
       "required": true
      "aliases": ["1"]
     },
     },
     "lang": {
     "lang": {
Line 45: Line 46:
       "description": "The programming language used in the code",
       "description": "The programming language used in the code",
       "type": "string",
       "type": "string",
       "required": true,
       "required": true
      "aliases": ["2"]
     },
     },
     "3": {
     "3": {