「利用者:Mindrones/Wiki/Templates/New Shortcut」の版間の差分

提供: wiki
移動先: 案内検索
 
(1版 をインポートしました)
 
(相違点なし)

2018年6月29日 (金) 04:39時点における最新版

First case

You write the specific shortcut in the wikitext

To extrude a mesh in edit mode in a 3d view editor, select vertices and press {{shortcut|E}}.

Here's the result:

To extrude a mesh in edit mode in a 3d view editor, select vertices and press E.

Disadvantage

When the shortcut changes, you have to change all occurrencies of {{shortcut|E}} all over the wiki wherever they're not appropriate anymore !!!

Big Big job.....


Second case

You write the specific shortcut in a conditional template

Example:

{{#switch: {{{1|}}}
    |3dview=
        {{#switch: {{{2|}}}
            |mesh=
                {{#switch: {{{3|}}}
                    |object=
                        {{#switch: {{{4|}}}
                            |new_group={{shortcut|ctrl|G}}
                            |track={{shortcut|ctrl|T}}
                            | - MISSING: OPERATOR (4)
                        }}
                    |edit=
                        {{#switch: {{{4|}}}
                            |extrude={{shortcut|E}}
                            |quad2tris={{shortcut|ctrl|T}}
                            | - MISSING: OPERATOR (4)
                        }}
                    | - MISSING: MODE (3)
                }}
            | - MISSING: OBJECT TYPE (2)
        }}
    |MISSING: EDITOR (1)
}}

Then you write:

To extrude a mesh vertices in edit mode in a 3d view editor, press {{Command|3dview|mesh|edit|extrude}}.

To extrude a mesh vertices in edit mode in a 3d view editor, press E.

To make quad to tris in a mesh in edit mode in a 3d view editor, press {{Command|3dview|mesh|edit|quad_to_tris}}.

To make quad to tris in a mesh in edit mode in a 3d view editor, press CtrlT.

To track an object to another one in object mode in a 3d view editor, press {{Command|3dview|mesh|object|track}}.

To track an object to another one in object mode in a 3d view editor, press CtrlT.


Advantage

We can update one single place (the template "Command") and the whole wiki will be updated.