User:Tigerpaw28/Sandbox/Template:CollapseNote: Difference between revisions
Tigerpaw28 (talk | contribs) m Relocating div |
→Predefined Notes: Collapsible notes would allow for a little more... clarity. Revert if this seems excessive. |
||
| (9 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><div class="" style="margin: .25em 1.5em .25em;background-color:#efefef;border: 2px solid #eeeeee;padding: 2px; text-align: left;font-style:italic;clear:left;"> | |||
<span style="font-weight:900;font-style:normal;">{{{header|Note}}} : </span>{{{visible|}}} <span class="ocreditspan">{{User:Tigerpaw28/Sandbox/Template:CollapseNote/Notes|{{{hideable}}}}}</span> | |||
</div> | |||
</includeonly> | |||
<noinclude> | |||
== Format of the template code == | |||
<pre> | |||
<nowiki><div class="tt1_graynote2"></nowiki> | |||
:<nowiki><!--- Header ---></nowiki> | |||
:<nowiki><span style="font-weight:900;font-style:normal;">{{{header|Note}}} : </span></nowiki> | |||
:<nowiki><!--- Non-hideable content ---></nowiki> | |||
:<nowiki>{{{visible|}}} </nowiki> | |||
< | |||
<!--- | :<nowiki><!--- Hideable content --></nowiki> | ||
<span | :<nowiki><span class="ocreditspan">{{User:Tigerpaw28/Sandbox/Template:CollapseNote/Notes|{{{hideable}}}}}</span></nowiki> | ||
{{{ | <nowiki></div></nowiki> | ||
</ | </pre> | ||
< | |||
{{ | == How to use == | ||
<!--- | <pre> | ||
{{ | {{User:Tigerpaw28/Sandbox/TemplateCollapseNote|header=Sample|visible=Sample|hideable=Sample}} | ||
< | </pre> | ||
|{{CollapseNote/ | |||
}} | :This template has three parameters: | ||
</ | |||
::header - This is the text shown in bold and followed by a colon. This parameter is optional and if omitted the header text will be the standard Note header. | |||
::visibile - This is text that will follow the header and always be visible. This parameter is optional. | |||
::hideable - This is the collapsible text and a required parameter. It can be either custom text or the name of a predefined note (see below). | |||
== Predefined Notes == | |||
To add additional notes, first edit [[User:Tigerpaw28/Sandbox/Template:CollapseNote/Notes]] using the syntax described there, then add to this list. | |||
{| class="prettytable sortable" border="1" | |||
|- | |||
!NOTE NAME | |||
!NOTE TEXT | |||
|- | |||
|EarthforceFiction||These stories do not fit into the normal Marvel continuity. See "[[Earthforce]]" for details. | |||
|- | |||
|Idw-tfa||Events from the supplemental [[IDW Publishing]] or [[Fun Publications]] stories are in italics. | |||
|- | |||
|Noteclassics||''[[Transformers: Classics|Classics]]'' fiction continues from the [[The Transformers (Marvel comic)|original Marvel US comic series]], but does not include [[Transformers: Generation 2 (Marvel)|Marvel's ''Generation 2'' comics]], the [[The Transformers (Marvel comic)#Marvel UK|UK stories]] or any other subsequently-published stories. | |||
|} | |||
== Examples == | |||
=== Hideable text only, predefined === | |||
<pre>{{User:Tigerpaw28/Sandbox/Template:CollapseNote|hideable=Noteclassics}}</pre> | |||
{{User:Tigerpaw28/Sandbox/Template:CollapseNote|hideable=Noteclassics}} | |||
=== Hideable text only, custom === | |||
<pre>{{User:Tigerpaw28/Sandbox/Template:CollapseNote|hideable=These stories do not fit into the normal Marvel continuity. See [[Earthforce]] for details.}}</pre> | |||
{{User:Tigerpaw28/Sandbox/Template:CollapseNote|hideable=These stories do not fit into the normal Marvel continuity. See [[Earthforce]] for details.}} | |||
=== Hideable and Visible text === | |||
<pre>{{User:Tigerpaw28/Sandbox/Template:CollapseNote|visible=This text is always visible.|hideable=EarthforceFiction}}</pre> | |||
{{User:Tigerpaw28/Sandbox/Template:CollapseNote|visible=This text is always visible.|hideable=EarthforceFiction}} | |||
=== Hideable and Header text === | |||
<pre>{{User:Tigerpaw28/Sandbox/Template:CollapseNote|header=Continuity Note|hideable=Idw-tfa}}</pre> | |||
{{User:Tigerpaw28/Sandbox/Template:CollapseNote|header=Continuity Note|hideable=Idw-tfa}} | |||
=== Hideable, Visible, and Header text === | |||
<pre>{{User:Tigerpaw28/Sandbox/Template:CollapseNote|header=Continuity Note|visible=This section is divided by source.|hideable=Events from [[IDW Publishing]] or [[Fun Publications]] books are in italics.}}</pre> | |||
{{User:Tigerpaw28/Sandbox/Template:CollapseNote|header=Continuity Note|visible=This section is divided by source.|hideable=Events from [[IDW Publishing]] or [[Fun Publications]] books are in italics.}} | |||
</noinclude> | |||
Latest revision as of 11:35, 10 January 2016
Format of the template code
[edit]<div class="tt1_graynote2">
:<!--- Header --->
:<span style="font-weight:900;font-style:normal;">{{{header|Note}}} : </span>
:<!--- Non-hideable content --->
:{{{visible|}}}
:<!--- Hideable content -->
:<span class="ocreditspan">{{User:Tigerpaw28/Sandbox/Template:CollapseNote/Notes|{{{hideable}}}}}</span>
</div>
How to use
[edit]{{User:Tigerpaw28/Sandbox/TemplateCollapseNote|header=Sample|visible=Sample|hideable=Sample}}
- This template has three parameters:
- header - This is the text shown in bold and followed by a colon. This parameter is optional and if omitted the header text will be the standard Note header.
- visibile - This is text that will follow the header and always be visible. This parameter is optional.
- hideable - This is the collapsible text and a required parameter. It can be either custom text or the name of a predefined note (see below).
Predefined Notes
[edit]To add additional notes, first edit User:Tigerpaw28/Sandbox/Template:CollapseNote/Notes using the syntax described there, then add to this list.
| NOTE NAME | NOTE TEXT |
|---|---|
| EarthforceFiction | These stories do not fit into the normal Marvel continuity. See "Earthforce" for details. |
| Idw-tfa | Events from the supplemental IDW Publishing or Fun Publications stories are in italics. |
| Noteclassics | Classics fiction continues from the original Marvel US comic series, but does not include Marvel's Generation 2 comics, the UK stories or any other subsequently-published stories. |
Examples
[edit]Hideable text only, predefined
[edit]{{User:Tigerpaw28/Sandbox/Template:CollapseNote|hideable=Noteclassics}}
Note : Classics fiction continues from the original Marvel US comic series, but does not include Marvel's Generation 2 comics, the UK stories or any other subsequently-published stories.
Hideable text only, custom
[edit]{{User:Tigerpaw28/Sandbox/Template:CollapseNote|hideable=These stories do not fit into the normal Marvel continuity. See [[Earthforce]] for details.}}
Note : These stories do not fit into the normal Marvel continuity. See Earthforce for details.
Hideable and Visible text
[edit]{{User:Tigerpaw28/Sandbox/Template:CollapseNote|visible=This text is always visible.|hideable=EarthforceFiction}}
Note : This text is always visible. These stories do not fit into the normal Marvel continuity. See Earthforce for details.
Hideable and Header text
[edit]{{User:Tigerpaw28/Sandbox/Template:CollapseNote|header=Continuity Note|hideable=Idw-tfa}}
Continuity Note : Events from the supplemental IDW Publishing or Fun Publications stories are in italics.
Hideable, Visible, and Header text
[edit]{{User:Tigerpaw28/Sandbox/Template:CollapseNote|header=Continuity Note|visible=This section is divided by source.|hideable=Events from [[IDW Publishing]] or [[Fun Publications]] books are in italics.}}
Continuity Note : This section is divided by source. Events from IDW Publishing or Fun Publications books are in italics.

