Difference between revisions of "Template:Dosanddonts"

From blackwiki
Jump to navigation Jump to search
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

Template documentation[view] [edit] [history] [purge]

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


[main]

[caption]
DO:
Green check.png [do1]                                        
Green check.png [do2]
Green check.png [do3]
Green check.png [do4]
Green check.png [do5]
Green check.png [do6]
Green check.png [do7]
DON'T:
Red x.svg Don't [dont1]                                        
Red x.svg Don't [dont2]
Red x.svg Don't [dont3]
Red x.svg Don't [dont4]
Red x.svg Don't [dont5]
Red x.svg Don't [dont6]
Red x.svg Don't [dont7]

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]]