Difference between revisions of "Template:Instruction editnotice"

From blackwiki
Jump to navigation Jump to search
imported>Sdkb
(fixing up doc)
imported>Sdkb
(second example)
Line 4: Line 4:
 
{{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.
 
{{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===
+
===Example 1===
 
<pre>{{Instruction editnotice
 
<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!
 
|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!
Line 13: Line 13:
 
{{Instruction editnotice
 
{{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!
 
| 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
 +
|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
 +
|header =
 +
|image = Information icon4.svg
 +
|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>

Revision as of 05:34, 25 November 2020

Template documentation

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:

Example 2

This uses some parameters from {{editnotice}} to override the default values here.

{{Instruction editnotice
|header =
|image = Information icon4.svg
|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: