Notepad

From Network Security Wiki
Jump to navigation Jump to search

New Templates[edit]

   Question.png     This section needs verification or testing!
   Edit-clear.png     This section needs formatting or rework.
   Paste.png     This section is under construction.
   Ambox notice.png     This notice is for testing only...
This is a Test quote..

Formatting[edit]

  • Syntax Highlight: <syntaxhighlight lang=bash> </syntaxhighlight>
root@raspberrypi:/tmp/eeprog-0.7.6-tear12# i2cdump -y 0 0x53 i
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: 46 72 69 20 41 75 67 20 31 35 20 32 32 3a 32 36    Fri Aug 15 22:26
10: 3a 33 35 20 55 54 43 20 32 30 31 34 0a 00 00 00    :35 UTC 2014?...
20: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
30: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
<SNIP>
  • Formatting Test in Pre:
<pre style="white-space: pre-wrap; 
white-space: -moz-pre-wrap; 
white-space: -pre-wrap; 
white-space: -o-pre-wrap; 
word-wrap: break-word;">
  • Using References:
Text Lines.<ref>First reference</ref>

==References==
<references />
  • Multiple References:
1st Ref<ref name="name">Google.com</ref>
2nd Ref<ref name="name"/>

==References==
<references />
  • Deleted, Strike-through text:
<s>ABC</s>
ABC
<del>123456</del>
123456

Tables[edit]

<center>
{| style="text-align: left; background:transparent; width:75%;" border="1"
|-
! '''Heading'''
! '''Heading2'''
|-
| A
| 1
|-
| B
| 2
|-
|Colspan=2| C
|}
</center>

Results:

Heading Heading2
A 1
B 2
C
  • Wikitable Sortable:
<center>
{| class="wikitable sortable" style="text-align: center; width:35%;"
|-
! Heading !! Heading2
|-
| A || 1
|-
| B || 2
|}
</center>

Result:

Heading Heading2
A 1
B 2
  • Use to display Fractions :1/2 = 0.5
  • Templates:
  • Break
    <br/>
  • Line
    ----

  • Bullet Levels:
  • Start each line
  • with an [asterisk(*).
    • More asterisks give deeper
      • and deeper levels.

  • Numbered Bullets:
  1. Start each line
  2. with a number sign (#).
    1. More number signs give deeper
      1. and deeper
      2. levels.
  3. Line breaks
    don't break levels.
      1. But jumping levels creates empty space.
  4. Blank lines
  1. end the list and start another.

  • Definition list:
Definition lists
item 
definition
semicolon plus term
colon plus definition
item 1
definition 1
item 2
definition 2-1
definition 2-2
  • Indent Text:
Single indent
Double indent
Multiple indent
  • Adding External Links

MediaWiki
http://mediawiki.org

  • Adding Comments:
<!----- Write Code Below ------>

Scrollable PRE[edit]

<pre style="width: 300px; height: 10pc; overflow-y: scroll;">

1
2
3
4
5
6
7
8
9
10
11
12
 

<pre style="width: 1000px; overflow-x: scroll;">

1
2
3
4
5
6
7
8
 

<pre style="width: 97%; overflow-x: scroll;">

1
2
3
4
5
6
7
8
9
10
11
12
 

Multi-column bulleted list[edit]

<div style="column-count:2;-moz-column-count:2;-webkit-column-count:2">
* apple
* carpet
* geography
* mountain
* nowhere
* postage
* ragged
* toast
</div>

Gives:

  • apple
  • carpet
  • geography
  • mountain
  • nowhere
  • postage
  • ragged
  • toast

Multi-column numbered list[edit]

<div style="column-count:3;-moz-column-count:3;-webkit-column-count:3">
#apple
#carpet
#geography
#mountain
#nowhere
#postage
#ragged
#toast
</div>

Gives:

  1. apple
  2. carpet
  3. geography
  4. mountain
  5. nowhere
  6. postage
  7. ragged
  8. toast

Old Templates[edit]

  • Verify:

   Question.png     This section needs verification!!

  • UC:

   Paste.png     This section is under construction..

  • Quote:

{{{1}}}

Misc[edit]

  • Adding Favicon:
Simply upload your favicon.ico to the root of your domain/subdomain, make sure file name is in lower case and its name is favicon.ico
Alternatively edit the $wgFavicon setting in LocalSettings.php and add $wgFavicon = "$wgScriptPath/path/to/your/favicon.ico";
See Manual:$wgFavicon for more details.
Tip: The favicon image should be either 16 x 16 pixels or 32 x 32 pixels.
  • Hide [view source] [history] [discussion] and enable to Editors in Vector skin:
Edit skins/Vector.php
Find line        <!-- /debughtml -->
Add commands

                                <!-- No [view source] [[history] [discussion] ] tab for users who can not edit -->
                                <?php global $wgUser; if( !$wgUser->isAllowed('edit') ) { ?>
                                    <style type="text/css">
                                      #ca-viewsource { display: none !important; }
                                      #ca-talk { display: none !important; }
                                      #ca-history { display: none !important; }
                                    </style> 
                                <?php } ?>
  • Tell search engines not to index the page:

__NOINDEX__

Links[edit]

Images[edit]

  • [[File:Rpi gpio led test.jpg|thumb||My setup for GPIO LED test]]
My setup for GPIO LED test










New Page Template[edit]

[[Category:     ]]
__TOC__
<br />




<br />
;References
<references/>
<br />
<br />
<br />


{{DISQUS}}

*add Security


References[edit]

Single Reference
<ref> www.hcl.com </ref>
Multiple References
<ref name="HCL"> www.hcl.com </ref>
<ref name="HCL"/>
<ref name="HCL"/>
Calling References
<references/>

Syntax Highlight[edit]

  • With Line Numbers:
<syntaxhighlight lang="python" line='line'>

</syntaxhighlight>
  • Without Line Numbers:
<syntaxhighlight lang="python">

</syntaxhighlight>