Template:Expandable: Difference between revisions

From Medieval Engineers Wiki
Jump to navigation Jump to search
m (Protected "Template:Expandable" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
mNo edit summary
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{| role="presentation" class="wikitable mw-collapsible mw-collapsed"
-->{| role="presentation" class="wikitable mw-collapsible mw-collapsed"
! {{{title}}}
! {{{title}}}&nbsp;
|-
|-
| {{{text}}}
| {{{content}}}
|}<!--
|}<!--
--></includeonly><!--
--></includeonly><!--
Line 10: Line 10:
{{Expandable
{{Expandable
|title=Bacon Ipsum
|title=Bacon Ipsum
|text=Bacon ipsum dolor amet commodo salami meatloaf doner adipisicing fatback ad in veniam qui corned beef mollit consectetur. Ball tip meatball pork voluptate labore. In nulla jowl rump ullamco short loin venison, leberkas est. Est filet mignon flank, esse ut aliqua consequat irure occaecat picanha kielbasa minim in jerky eiusmod. Anim t-bone tempor nostrud tail ea jowl ham cupidatat eiusmod eu ut swine boudin. Leberkas exercitation ea pariatur short ribs beef ribs prosciutto tri-tip meatball commodo anim.
|content=Bacon ipsum dolor amet commodo salami meatloaf doner adipisicing fatback ad in veniam qui corned beef mollit consectetur. Ball tip meatball pork voluptate labore. In nulla jowl rump ullamco short loin venison, leberkas est. Est filet mignon flank, esse ut aliqua consequat irure occaecat picanha kielbasa minim in jerky eiusmod. Anim t-bone tempor nostrud tail ea jowl ham cupidatat eiusmod eu ut swine boudin. Leberkas exercitation ea pariatur short ribs beef ribs prosciutto tri-tip meatball commodo anim.
}}
}}


==Usage==
==Usage==
The TextBox template is meant to be used to make a decorative box around text. Its suggested use is to highlight text while separating it from the main body of text. This is not considered good wiki practice but visually suits our guides. The format of the box is hard-coded and doesn't not change per theme.
The Expandable template is meant to be used to collapse a section of content. This can be any content that is "bulky" and takes up a lot of space, making navigation of the article difficult. By collapsing this information, it is out of the way until the reader expands it.
*Hint: This works well if you embed lengthy source code inside of it.
*Hint: Source code content has no maximum size and will expand regardless of screen size.
<pre>{{Expandable
<pre>{{Expandable
|title=<text>
|title=<text>
|text=<content>
|content=<content>
}}</pre>
}}</pre>
*The code above can be pasted into your page and edited.
*The code above can be pasted into your page and edited.
Line 25: Line 27:
<pre>{{Expandable
<pre>{{Expandable
|title=Bacon Ipsum
|title=Bacon Ipsum
|text=Bacon ipsum dolor amet commodo salami meatloaf doner adipisicing fatback ad in veniam qui corned beef mollit consectetur. Ball tip meatball pork voluptate labore. In nulla jowl rump ullamco short loin venison, leberkas est. Est filet mignon flank, esse ut aliqua consequat irure occaecat picanha kielbasa minim in jerky eiusmod. Anim t-bone tempor nostrud tail ea jowl ham cupidatat eiusmod eu ut swine boudin. Leberkas exercitation ea pariatur short ribs beef ribs prosciutto tri-tip meatball commodo anim.
|content=Bacon ipsum dolor amet commodo salami meatloaf doner adipisicing fatback ad in veniam qui corned beef mollit consectetur. Ball tip meatball pork voluptate labore. In nulla jowl rump ullamco short loin venison, leberkas est. Est filet mignon flank, esse ut aliqua consequat irure occaecat picanha kielbasa minim in jerky eiusmod. Anim t-bone tempor nostrud tail ea jowl ham cupidatat eiusmod eu ut swine boudin. Leberkas exercitation ea pariatur short ribs beef ribs prosciutto tri-tip meatball commodo anim.
}}</pre>
}}</pre>
*Example bacon generated at https://baconipsum.com/
*Example bacon generated at https://baconipsum.com/
[[Category:Templates/Formatting]]</noinclude>
[[Category:Templates/Formatting]]</noinclude>

Latest revision as of 06:29, 6 January 2018

Example

Usage

The Expandable template is meant to be used to collapse a section of content. This can be any content that is "bulky" and takes up a lot of space, making navigation of the article difficult. By collapsing this information, it is out of the way until the reader expands it.

  • Hint: This works well if you embed lengthy source code inside of it.
  • Hint: Source code content has no maximum size and will expand regardless of screen size.
{{Expandable
|title=<text>
|content=<content>
}}
  • The code above can be pasted into your page and edited.
  • All variables must be used

Example Source

{{Expandable
|title=Bacon Ipsum
|content=Bacon ipsum dolor amet commodo salami meatloaf doner adipisicing fatback ad in veniam qui corned beef mollit consectetur. Ball tip meatball pork voluptate labore. In nulla jowl rump ullamco short loin venison, leberkas est. Est filet mignon flank, esse ut aliqua consequat irure occaecat picanha kielbasa minim in jerky eiusmod. Anim t-bone tempor nostrud tail ea jowl ham cupidatat eiusmod eu ut swine boudin. Leberkas exercitation ea pariatur short ribs beef ribs prosciutto tri-tip meatball commodo anim.
}}