Template:Keyboard: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
m (This problem happens in {{boxcodelite}} too)
mNo edit summary
 
(30 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{clear}}
<div style="clear:both; float:left; width:100%; margin:5px; outline:1px solid #e0e2e6; outline-offset:-1px;">
<div style="float:left; width:100%;">
  <div style="float:left; padding-left:1px;">[[image:64px-Keyboard.png|x48px|link=|Type This]]</div>
  [[image:64px-Keyboard.png|64x64px|left|link=|Type This]]<pre<noinclude></noinclude>>{{{content|"Hello there"}}}</pre<noinclude></noinclude>>
{{#tag:pre|{{{content|"Hello there"}}}|style="min-height:48px; padding:0px; border:none; outline:inherit; outline-offset:inherit;"}}
</div>
</div>{{clear}}<noinclude>
{{clear}}
<noinclude>


==Usage==
== Usage ==
<nowiki>{{Keyboard|content=some content}}</nowiki>
<nowiki>{{Keyboard|content=some content}}</nowiki>


==Example==
== Examples ==
{{Keyboard|content=
{{Keyboard|content=
<syntaxhighlight lang="bash">
ps3mfw.exe %1 "Y:\PS3-Firmwares\OFW430.PUP" ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 --patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
ps3mfw.exe %1 "Y:\PS3-Firmwares\OFW430.PUP" ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 --patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
</syntaxhighlight>
}}
}}


==Problems==
{{Keyboard|content=<syntaxhighlight lang="bash">
The text is not really preformatted, the content in the examples below are identical but are displayed different
ps3mfw.exe %1 "Y:\PS3-Firmwares\OFW430.PUP" ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 --patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
{{Keyboard|content=
</syntaxhighlight>}}
          '''ps3mfw.exe''' %1 ''"Y:\PS3-Firmwares\OFW430.PUP"'' | ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 --patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
}}


The example above is displaying texts in bold and italic, and the character "'''|'''" (named pipe in wiki slang) breaks the template because is considered an indication to enter the next parameter<br>
== Warning ==
The example below is really preformatted because is not using the template <nowiki>{{keyboard}}</nowiki>, in other words, the <nowiki><pre></nowiki> is made outside of <nowiki>{{keyboard}}</nowiki> template
The | character (named pipe in wiki slang) breaks the template because is considered an indication to enter the next parameter of template <nowiki>{{keyboard}}</nowiki>, after the pipe it stops displaying the content<br>
To bypass this problem is needed to replace the pipe characters in the content by <nowiki>{{!}}</nowiki>. This is an official mediawiki hack, the template <nowiki>{{!}}</nowiki> is considered as standard characters by the template <nowiki>{{keyboard}}</nowiki> but is replaced by a | when is displayed. Or surround the conent by either <nowiki><pre> or <syntaxhighlight></nowiki> tags


<pre>
<nowiki>{{Keyboard|content=1,2,3,4,5|6,7,8,9,10}}</nowiki>
          '''ps3mfw.exe''' %1 ''"Y:\PS3-Firmwares\OFW430.PUP"'' | ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 --patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
{{Keyboard|content=1,2,3,4,5|6,7,8,9,10}}
</pre>
<nowiki>{{Keyboard|content=1,2,3,4,5{{!}}6,7,8,9,10}}</nowiki>
{{Keyboard|content=1,2,3,4,5{{!}}6,7,8,9,10}}
<nowiki>{{Keyboard|content=<pre>1,2,3,4,5|6,7,8,9,10</pre>}}</nowiki>
{{Keyboard|content=<pre>1,2,3,4,5|6,7,8,9,10</pre>}}
<nowiki>{{Keyboard|content=<syntaxhighlight lang="bash">1,2,3,4,5|6,7,8,9,10</syntaxhighlight>}}</nowiki>
{{Keyboard|content=<syntaxhighlight>1,2,3,4,5|6,7,8,9,10</syntaxhighlight>}}


[[Category:templates]]</noinclude>
[[Category:templates]]</noinclude>

Latest revision as of 02:21, 25 September 2021

Type This
"Hello there"

Usage[edit source]

{{Keyboard|content=some content}}

Examples[edit source]

Type This
ps3mfw.exe %1 "Y:\PS3-Firmwares\OFW430.PUP" ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 	--patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true
Type This
ps3mfw.exe %1 "Y:\PS3-Firmwares\OFW430.PUP" ""Z:/MFWOtherOS-out/MFW430.PUP" --gui false --debug true --patch_pup --pup-build "" --version-string "" --version-suffix "PSDEVWIKI" --patch_lv1 	--patch-lv1-peek-poke true --patch-lv1-remove-lv2-protection true --patch-lv1-sysmgr-disable-integrity-check-4x true --patch-lv1-coreos-hash-check true --patch_cos --patch-lv0-coreos-ecdsa-check true --patch-spkg-ecdsa-check true --patch-pup-search-in-game-disc true --patch-lv2-peek-poke-4x true --patch-lv2-lv1-peek-poke-4x true --patch-lv2-npdrm-ecdsa-check true --patch-lv2-payload-hermes-4x true --patch-lv2-SC36-4x true --patch_xmb --add-install-pkg true --patch-act-pkg true --add-hb-seg true --patch-app-home true --patch-ren-apphome true --patch-alpha-sort true --patch-rape-sfo true --patch_vsh --allow-pseudoretail-pkg true --allow-debug-pkg true --patch-vsh-react-psn-v2-4x true

Warning[edit source]

The | character (named pipe in wiki slang) breaks the template because is considered an indication to enter the next parameter of template {{keyboard}}, after the pipe it stops displaying the content
To bypass this problem is needed to replace the pipe characters in the content by {{!}}. This is an official mediawiki hack, the template {{!}} is considered as standard characters by the template {{keyboard}} but is replaced by a | when is displayed. Or surround the conent by either <pre> or <syntaxhighlight> tags

{{Keyboard|content=1,2,3,4,5|6,7,8,9,10}}

Type This
1,2,3,4,5

{{Keyboard|content=1,2,3,4,5{{!}}6,7,8,9,10}}

Type This
1,2,3,4,5|6,7,8,9,10

{{Keyboard|content=<pre>1,2,3,4,5|6,7,8,9,10</pre>}}

Type This
1,2,3,4,5|6,7,8,9,10

{{Keyboard|content=<syntaxhighlight lang="bash">1,2,3,4,5|6,7,8,9,10</syntaxhighlight>}}

Type This
1,2,3,4,5|6,7,8,9,10