Difference between revisions of "Template:Path"

From Audacity Wiki
Jump to: navigation, search
(Possible style for a template for file paths)
 
(match Manual; depend on path css class)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Wip}}
+
<noinclude>{{Intro|The '''''Path'' Template''' is intended to emphasize the text of absolute and relative ''' file paths''' in operating systems. It highlights the path by using brown font and increasing the letter and word spacing slightly compared to the unformatted text on the page.|}}  
  
 
+
The '''''Code'' Template''' can be used to format a string of text in a consistent way across the Wiki, with a background and foreground colour which will make it stand out amongst surrounding text. This template is intended for '''code snippets''' (either in programs or in scripts), for emphasising the specific code used. ''Code'' Template can be used for any program or script.
+
'''''NOTE:''''' This template should be used '''only for ''file paths'''''. Paths through operating system dialogues should be highlighted with [[Template:Menu]]. Further templates are available for other uses, see [[Templates]].''
 
 
'''''NOTE:''''' This template should be used '''only for ''file paths'''''. ''(Other templates are available for other uses, see [[Templates]].)''
 
  
  
Line 12: Line 10:
  
 
For example, typing this:  
 
For example, typing this:  
  <nowiki>Select path: {{</nowiki>path|C:windows}}.</nowiki>
+
  <nowiki>Select path: {{</nowiki>path|C:\Windows\Data Files\Audio<nowiki>}}</nowiki>
 +
 
  
 
will cause the following to be displayed:
 
will cause the following to be displayed:
 
:Select path: <span style="font-family: monospace; font-style: italic">C:windows</span>
 
  
  
'''''IMPORTANT NOTE:''' Wikis are very picky when it comes to what goes inside a template "call", some things (like equal signs, e.g.) might not come out as expected unless some tricks are resorted to! You may have to enclose the text part of the call in <code>&lt;nowiki&gt;&lt;/nowiki&gt;</code> tags to get it right.''
+
:Select path: <span class="path">C:\Windows\Data Files\Audio</span>
  
 +
[[Category:Templates]]
 
----
 
----
 
''Ignore the following, it's only a representation of formatting and a parameter dummy.''
 
''Ignore the following, it's only a representation of formatting and a parameter dummy.''
  
</noinclude><span style="font-family: monospace; font-style: italic">{{{1}}}</span>
+
</noinclude><span class="path">{{{1}}}</span>

Latest revision as of 15:28, 11 May 2012

The Path Template is intended to emphasize the text of absolute and relative file paths in operating systems. It highlights the path by using brown font and increasing the letter and word spacing slightly compared to the unformatted text on the page.


NOTE: This template should be used only for file paths. Paths through operating system dialogues should be highlighted with Template:Menu. Further templates are available for other uses, see Templates.


Usage of Template Path:

{{path|text to be formatted}}

For example, typing this:

Select path: {{path|C:\Windows\Data Files\Audio}}


will cause the following to be displayed:


Select path: C:\Windows\Data Files\Audio

Ignore the following, it's only a representation of formatting and a parameter dummy.

{{{1}}}