Difference between revisions of "Template:Instruction editnotice"
Jump to navigation
Jump to search
Template documentation
imported>Sdkb (attempt to standardize formatting of instruction editnotices) |
imported>Sdkb m (alt) |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | {{#invoke:Template wrapper|wrap|_template=Editnotice|expiry={{{expiry|indefinite}}}|header={{{header|Instructions}}}|headerstyle={{{headerstyle|font-size:150%;}}}|image={{{image|Crystal128-kig.svg{{!}}link=}}}|style={{{style|background-color: #eaf8f4; border: 2px solid #008560;}}}}}<noinclude>{{documentation|content= | + | {{#invoke:Template wrapper|wrap|_include-positional=yes|_template=Editnotice|expiry={{{expiry|indefinite}}}|header={{{header|Instructions}}}|headerstyle={{{headerstyle|font-size:150%;}}}|image={{{image|Crystal128-kig.svg{{!}}link={{!}}alt=}}}|style={{{style|background-color: #eaf8f4; border: 2px solid #008560;}}}}}<noinclude>{{documentation|content= |
| − | {{wrapper template|Editnotice}} | + | This template should be used for [[WP:editnotice|editnotice]]s that provide instruction on how to edit a page. |
| + | |||
| + | {{wrapper template|Editnotice}} Please refer to {{tl|editnotice}} for documentation—all parameters from there will work with this template, but the header, image, style, and expiration are set by default here to encourage consistent formatting. | ||
| + | |||
| + | ===Example 1=== | ||
| + | <pre>{{Instruction editnotice | ||
| + | |text = To keep this list sortable, when adding a new entry using the [[WP:Source editor|source editor]], please use {{tlx|sortname|GIVEN NAME(S)|SURNAME}}. Thanks! | ||
| + | }}</pre> | ||
| − | This | + | This will generate the following: |
| + | |||
| + | {{Instruction editnotice | ||
| + | | text = To keep this list sortable, when adding a new entry using the [[WP:Source editor|source editor]], please use {{tlx|sortname|GIVEN NAME(S)|SURNAME}}. Thanks! | ||
| + | }} | ||
| + | |||
| + | ===Example 2=== | ||
| + | This uses some parameters from {{tl|editnotice}} to override the default values here. | ||
| + | |||
| + | <pre>{{Instruction editnotice | ||
| + | |header = | ||
| + | |image = Information icon4.svg{{!}}link={{!}}alt= | ||
| + | |text = To keep this list sortable, when adding a new entry using the [[WP:Source editor|source editor]], please use {{tlx|sortname|GIVEN NAME(S)|SURNAME}}. Thanks! | ||
| + | }}</pre> | ||
| − | + | This will generate the following: | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | {{Instruction editnotice|text= To | + | {{Instruction editnotice |
| + | |header = | ||
| + | |image = Information icon4.svg{{!}}link={{!}}alt= | ||
| + | |text = To keep this list sortable, when adding a new entry using the [[WP:Source editor|source editor]], please use {{tlx|sortname|GIVEN NAME(S)|SURNAME}}. Thanks! | ||
| + | }} | ||
}} | }} | ||
[[Category:Editnotice templates]] | [[Category:Editnotice templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 22:17, 19 December 2020
Instructions
{{{1}}} |
This template should be used for editnotices that provide instruction on how to edit a page.
Template:Wrapper template Please refer to {{editnotice}} for documentation—all parameters from there will work with this template, but the header, image, style, and expiration are set by default here to encourage consistent formatting.
Example 1
{{Instruction editnotice
|text = To keep this list sortable, when adding a new entry using the [[WP:Source editor|source editor]], please use {{tlx|sortname|GIVEN NAME(S)|SURNAME}}. Thanks!
}}
This will generate the following:
Instructions
To keep this list sortable, when adding a new entry using the source editor, please use {{sortname|GIVEN NAME(S)|SURNAME}}. Thanks! |
Example 2
This uses some parameters from {{editnotice}} to override the default values here.
{{Instruction editnotice
|header =
|image = Information icon4.svg{{!}}link={{!}}alt=
|text = To keep this list sortable, when adding a new entry using the [[WP:Source editor|source editor]], please use {{tlx|sortname|GIVEN NAME(S)|SURNAME}}. Thanks!
}}
This will generate the following:
To keep this list sortable, when adding a new entry using the source editor, please use {{sortname|GIVEN NAME(S)|SURNAME}}. Thanks! |
| Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |