Template talk:Commands: Difference between revisions

From Alliance Doc
Jump to navigation Jump to search
(Created page with "Unfortunately, there is no way, at least that I could find, to have newlines between each command and not have a newline on the last command with this looping command. To make...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Unfortunately, there is no way, at least that I could find, to have newlines between each command and not have a newline on the last command with this looping command. To make things look symetrical, I have added a newline at the top and spaces in front of the command. I dislike this extra white space, but the alternative is to have an empty line only at the bottom, making it look awkward. I believe the special characters in previous versions was a result of the same problem. This version simply replaced the special characters with the <nowiki><nowiki></nowiki> tags with the return line or space added using normal characters to make it a little clearer what was being done
Unfortunately, there is no way, at least that I could find, to have newlines between each command and not have a newline on the last command with this looping command. To make things look symetrical, I have added a newline at the top and spaces in front of the command. I dislike this extra white space, but the alternative is to have an empty line only at the bottom, making it look awkward. I believe the special characters in previous versions was a result of the same problem. This version simply replaced the special characters with the <nowiki><nowiki></nowiki> tags with the return line or space added using normal characters to make it a little clearer what was being done
Template does not render second (or later?) lines if they contain '='.  Example from Autotools page:
<pre>
{{Commands
|mkdir $HOME/SOFTWARE
|make install --prefix=$HOME/SOFTWARE
}}
</pre>
{{Commands
|mkdir $HOME/SOFTWARE
|make install --prefix=$HOME/SOFTWARE
}}
:[[User:Rdickson|Ross Dickson]] ([[User talk:Rdickson|talk]]) 19:47, 21 November 2016 (UTC)
Solution is that = must be enclosed in double braces,
<pre>{{=}}</pre>
:[[User:Rdickson|Ross Dickson]] ([[User talk:Rdickson|talk]]) 20:13, 21 November 2016 (UTC)

Latest revision as of 20:13, 21 November 2016

Unfortunately, there is no way, at least that I could find, to have newlines between each command and not have a newline on the last command with this looping command. To make things look symetrical, I have added a newline at the top and spaces in front of the command. I dislike this extra white space, but the alternative is to have an empty line only at the bottom, making it look awkward. I believe the special characters in previous versions was a result of the same problem. This version simply replaced the special characters with the <nowiki> tags with the return line or space added using normal characters to make it a little clearer what was being done

Template does not render second (or later?) lines if they contain '='. Example from Autotools page:

{{Commands
|mkdir $HOME/SOFTWARE
|make install --prefix=$HOME/SOFTWARE
}}
[name@server ~]$ mkdir $HOME/SOFTWARE
Ross Dickson (talk) 19:47, 21 November 2016 (UTC)

Solution is that = must be enclosed in double braces,

{{=}}
Ross Dickson (talk) 20:13, 21 November 2016 (UTC)