Help:Script Samples: Difference between revisions

Content deleted Content added
Line 182:
 
=== Use links and formatting inside a code block ===
For this use poempre template instead of pre tags (<code>&#123;&#123;pre|code goes here&#125;&#125;</code>):
<pre>▼
{{Pre|class=black-white|▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt▼
{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}▼
{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$▼
}}▼
</pre>▼
 
 
{{Pre|class=black-white|▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt▼
{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}▼
{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0▼
[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$▼
}}▼
 
 
{{Tip| in this example <code>&#123;&#123;pre&#125;&#125;</code> was used in conjunction with <code>&#123;&#123;Color&#125;&#125;</code> (to provide a text color change) and <code>&#123;&#123;H&#125;&#125;</code> to change the background color of the font for the number 4}}▼
 
 
Or use poem tags instead of pre:
<pre>
&lt;poem&gt;
Line 215 ⟶ 237:
Enfolding sunny spots of greenery.
</poem>
 
 
Or use <code>&#123;&#123;pre|code goes here&#125;&#125;</code> template:
▲<pre>
▲{{Pre|class=black-white|
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt
▲{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}
▲{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$
▲}}
▲</pre>
 
 
▲{{Pre|class=black-white|
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$ egrep -c "0x0000244[57]" node_[ab]/command_output/pmcli/netinfo.txt
▲{{Color|purple|node_a/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}{{H|4|red}}
▲{{Color|purple|node_b/command_output/pmcli/netinfo.txt}}{{Color|cyan|:}}0
▲[caleb_cooper@ola cfd7416402094f6a2b8dcbccb9bad4d439b1d21a]$
▲}}
 
▲{{Tip| in this example <code>&#123;&#123;pre&#125;&#125;</code> was used in conjunction with <code>&#123;&#123;Color&#125;&#125;</code> (to provide a text color change) and <code>&#123;&#123;H&#125;&#125;</code> to change the background color of the font for the number 4}}