Difference between revisions of "Template:Dosanddonts"
Jump to navigation
Jump to search
[main]
imported>Andrybak (add parameter nocat) |
imported>Andrybak (add parameter "demo") |
||
| Line 1: | Line 1: | ||
| − | <includeonly>{{information page|pages={{{guideline}}}|shortcut1={{ {{{|safesubst:}}}#if: {{{shortcut1|}}}|{{{shortcut1}}}|{{ {{{|safesubst:}}}#if: {{{shortcut|}}}|{{{shortcut}}}|}}}}|shortcut2={{ {{{|safesubst:}}}#if: {{{shortcut2|}}}|{{{shortcut2}}}|}}|shortcut3={{ {{{|safesubst:}}}#if: {{{shortcut3|}}}|{{{shortcut3}}}}}|nocat={{{nocat|{{wrong-namespace|no=4|nowarn=true|y}}}}}}} | + | <includeonly>{{information page|pages={{{guideline}}}|shortcut1={{ {{{|safesubst:}}}#if: {{{shortcut1|}}}|{{{shortcut1}}}|{{ {{{|safesubst:}}}#if: {{{shortcut|}}}|{{{shortcut}}}|}}}}|shortcut2={{ {{{|safesubst:}}}#if: {{{shortcut2|}}}|{{{shortcut2}}}|}}|shortcut3={{ {{{|safesubst:}}}#if: {{{shortcut3|}}}|{{{shortcut3}}}}}|nocat={{{nocat|{{{demo|{{wrong-namespace|no=4|nowarn=true|y}}}}}}}}}} |
| − | {{ {{{|safesubst:}}}ifsubst| | __NOEDITSECTION__ }} | + | {{#if:{{yesno|{{{demo|}}}}}||{{ {{{|safesubst:}}}ifsubst| | __NOEDITSECTION__ }}}} |
{{ {{{|safesubst:}}}#if: {{{main|}}}| <div style="text-align:center; font-size:16pt;"><br/>'''{{{main}}}'''<br/><br/></div> |}} | {{ {{{|safesubst:}}}#if: {{{main|}}}| <div style="text-align:center; font-size:16pt;"><br/>'''{{{main}}}'''<br/><br/></div> |}} | ||
| Line 73: | Line 73: | ||
{{DEFAULTSORT:{{PAGENAME}}}} | {{DEFAULTSORT:{{PAGENAME}}}} | ||
{{wrong-namespace|yes=4|nowarn=true| | {{wrong-namespace|yes=4|nowarn=true| | ||
| − | {{#if:{{yesno|{{{nocat|}}}}}|| | + | {{#if:{{yesno|{{{nocat|{{{demo|}}}}}}}}|| |
[[Category:Wikipedia dos and don'ts]] | [[Category:Wikipedia dos and don'ts]] | ||
{{ {{{|safesubst:}}}#ifexist: Category:{{{project|}}}|[[Category:{{{project|}}}]]|}} | {{ {{{|safesubst:}}}#ifexist: Category:{{{project|}}}|[[Category:{{{project|}}}]]|}} | ||
Latest revision as of 04:12, 26 March 2020
Purpose
Creates a formatted "dos and don'ts" information page, with up to ten entries in each column. This template includes the {{information page}} template and generic "See also" links. It applies categories only when it is used in the Wikipedia namespace.
Usage
{{dosanddonts
| guideline = <!--MANDATORY: name of guideline being summarized-->
| shortcut1 = <!--OPTIONAL: shortcut to this page; "shortcut = ..." is also accepted-->
| shortcut2 = <!--OPTIONAL: shortcut to this page-->
| shortcut3 = <!--OPTIONAL: shortcut to this page-->
| main = <!--OPTIONAL: sentence explaining the role or importance of the topic-->
| caption = <!--OPTIONAL: table caption-->
| do1 =
| do2 =
| do3 =
| do4 =
| do5 =
| do6 =
| do7 =
| do8 =
| do9 =
| do10 =
| dont1 = <!--Template will place "Don't" in front of this text if it isn't already included -->
| dont2 =
| dont3 =
| dont4 =
| dont5 =
| dont6 =
| dont7 =
| dont8 =
| dont9 =
| dont10 =
| project = <!--OPTIONAL: relevant WikiProject (without "Wikipedia:" prefix)-->
| seealso = <!--OPTIONAL: Links placed here will be pre-pended to the default "See also" links-->
}}
Example output
| 40x40px | This is an information page that describes a communal consensus on some aspect or aspects of Wikipedia's norms and practices. It is intended to supplement and/or clarify [guideline]. It is not one of Wikipedia's policies or guidelines; where something is inconsistent with this essay, please defer to those. |
[main]
|
| ||||||||||||||||||
|
Also: Do consider joining [project]. | |||||||||||||||||||
See also
Template:Wikipedia dos and don'ts
{{DEFAULTSORT:{{PAGENAME}}}} [[Category:Wikipedia basic information]] [[Category:Wikipedia help]] [[Category:Wikipedia editing aids]]
| The above documentation is transcluded from Template:Dosanddonts/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |