Difference between revisions of "Template:Instruction editnotice"

From blackwiki
Jump to navigation Jump to search
imported>Sdkb
(attempt to standardize formatting of instruction editnotices)
 
imported>Sdkb
(fixing up doc)
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=}}}|style={{{style|background-color: #eaf8f4; border: 2px solid #008560;}}}}}<noinclude>{{documentation|content=
{{wrapper template|Editnotice}} All parameters from {{tl|editnotice}} will work with this template, but the header, image, style, and expiration are set by default to encourage consistent formatting.
+
This template should be used for [[WP:editnotice|editnotice]]s that provide instruction on how to edit a page.
  
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===
 
===Example===
From [[Template:Editnotices/Page/List of Pomona College people]]:
+
<pre>{{Instruction editnotice
<code><nowiki>{{Instruction editnotice|text=
+
|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!
To add a new entry using the [[WP:Source editor|source editor]], you may use the following code, filling in the parts in all-caps:<pre>
+
}}</pre>
| {{sortname|GIVEN NAME(S)|SURNAME}}
+
 
| style="text-align:center;" | CLASS YEAR OR TENURE START–TENURE END
+
This will generate the following:
| NOTABILITY
 
| style="text-align:center;" | REFERENCE(S)
 
</pre> Please sort by class year (for alumni) or start of tenure (for faculty), ensuring <code><nowiki>|-</nowiki><<nowiki/>/nowiki><nowiki></code> is present between entries.
 
}}</nowiki></code>
 
  
{{Instruction editnotice|text= To add a new entry using the [[WP:Source editor|source editor]], you may use the following code, filling in the parts in all-caps:<pre> | {{sortname|GIVEN NAME(S)|SURNAME}} | style="text-align:center;" | CLASS YEAR OR TENURE START–TENURE END | NOTABILITY | style="text-align:center;" | REFERENCE(S) </pre> Please sort by class year (for alumni) or start of tenure (for faculty), ensuring <code><nowiki>|-</nowiki></code> is present between entries. }}
+
{{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!
 +
}}
 
}}
 
}}
 
[[Category:Editnotice templates]]
 
[[Category:Editnotice templates]]
 
</noinclude>
 
</noinclude>

Revision as of 23:15, 2 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

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