Template:Keyboard: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{clear}}
{{clear}}
<div style="float:left; width:100%;">
<div style="float:left; width:100%;">
  [[image:64px-Keyboard.png|64x64px|left|link=|Type This]]<pre<noinclude></noinclude>>{{{content|"Hello there"}}}</pre<noinclude></noinclude>>
  [[image:64px-Keyboard.png|x64px|left|link=|Type This]]{{#tag:pre|{{{content|"Hello there"}}}|style="min-height:54px; margin:0px; padding:5px; border:1px solid #e0e0e0;"}}
</div>
</div>
{{clear}}
{{clear}}
<noinclude>
<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'''  <br>                  <span style="color:blue">''%1 "Y:\PS3-Firmwares\OFW430.PUP"''</span> | ""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 <strike>is ignoring the spaces at the line start. This is normal, only for the first line</strike>, is displaying it in bold, italic, and blue, it does a linebreak, the character "'''|'''" (named pipe in wiki slang) breaks the template because is considered an indication to enter the next parameter, after the pipe it stops displaying the content (click in "edit" to see the differences)<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


<pre>
<nowiki>{{Keyboard|content=1,2,3,4,5|6,7,8,9,10}}</nowiki>
'''ps3mfw.exe'''  <br>                   <span style="color:blue">''%1 "Y:\PS3-Firmwares\OFW430.PUP"''</span> | ""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}}


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

Revision as of 13:38, 12 September 2021

Type This
"Hello there"


Usage

{{Keyboard|content=some content}}

Examples

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

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

{{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