Difference between revisions of "Template:Note/en"

From Collective Computational Unit
Jump to navigation Jump to search
m (1 revision imported)
 
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
<onlyinclude>{{#switch:
 
<onlyinclude>{{#switch:
 
| =
 
| =
{{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <div role="note" class="note note-{{#switch:{{{2|}}}
+
{{#if: {{#if:{{{1|}}}|{{{1}}}|{{#if:<noinclude>demo</noinclude>|demo|{{{demo|}}}}} }} | <templatestyles src="Note/styles.css" /><div role="note" class="note note-{{#switch:{{{2|}}}
 
     |gotcha=error
 
     |gotcha=error
 
     |=info
 
     |=info
 
     |#default={{{2|}}}
 
     |#default={{{2|}}}
     }}" style="background-position:{{dir|{{pagelang}}|right|left}} 7px top 50%; {{dir|{{pagelang}}|padding-right: 40px; padding-left: 0.5em;|padding-right: 0.5em; padding-left: 40px;}}">{{{1}}}</div>
+
     }} {{#if:{{{inline|}}}|note-inline}}">{{{1}}}</div>
 
   | [[File:Bulbgraph.png|18px|Note|link=]]&nbsp;'''Note:''' }}
 
   | [[File:Bulbgraph.png|18px|Note|link=]]&nbsp;'''Note:''' }}
 
| #default=
 
| #default=
   {{ {{TNTN|Note}}
+
   {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Note|noshift=1}}
  |1={{#if:{{{1|}}}|<nowiki></nowiki>{{{1|}}}}}
 
  |2={{{2|}}}
 
  |demo=<noinclude>demo</noinclude>
 
  }}
 
 
}}</onlyinclude>
 
}}</onlyinclude>
{{ {{TNTN|documentation}} |content=
+
{{documentation|content=
 
== Usage ==
 
== Usage ==
 
<pre>
 
<pre>
Line 25: Line 21:
 
{{note}} Loose test
 
{{note}} Loose test
 
{{tip}} Loose test
 
{{tip}} Loose test
 +
 +
* Text {{note|Foo|inline=1}}
 
</pre>
 
</pre>
 
{{note|Foo}}
 
{{note|Foo}}
Line 34: Line 32:
  
 
{{tip}} Loose test
 
{{tip}} Loose test
 +
 +
* Text {{note|Foo|inline=1}}
  
 
<templatedata>
 
<templatedata>
Line 46: Line 46:
 
"label": "Type",
 
"label": "Type",
 
"description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.",
 
"description": "'reminder', 'error', 'gotcha' or nothing. Will affect formatting.",
"type": "string"
+
"type": "line"
 +
},
 +
"inline": {
 +
"label": "Inline formatting",
 +
"description": "Show the template without line breaks before and after it",
 +
"type": "line"
 
}
 
}
 
},
 
},

Latest revision as of 14:52, 9 May 2019

<languages/>

<templatestyles src="Note/styles.css" />

{{{1}}}

{{#invoke:documentation|main|_content={{ {{#invoke:documentation|contentTitle}}}}}} [[Category:Templates{{#translation:}}|Note/en]]