block tales
d · e · h · p
Template Documentation
Note: Portions of the template sample may not be visible without values provided.
Editors can experiment in this template's sandbox and test case pages.
Lua Logo
"Just as important as CSS, you know.."
This template uses Lua as its script language. (Module:Code)
CSS Logo
"Without this, we'd be nothing! Literally! Well, not really. Just ugly."
This template uses CSS as its style sheet language. (Template:Code/styles.css)

Description

The template that allows for formatting and display of wikitext code.

The coloring and display of this template uses the following classes in styles.css:

  • .code-block
  • .code-block-container
  • .code-block-detached
  • .code-evaluated
  • .code-evaluated-attached
  • .code-inline
  • .code-wrapper

Syntax

{{Code|<1>|<eval>|<block>|<highlight>}}

Examples

Basic Usage with Eval

{{Code|<nowiki>[[Griefer]]</nowiki>|eval=1}}

[[Griefer]]Griefer

{{Code|<nowiki>[[Captain Trotter]]</nowiki>|eval=1|highlight=1}}

[[Captain Trotter]]Captain Trotter

Default vs. Highlight

Lorem ipsum [[dolor]] sit amet, consectetur {{adipiscing}} elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
Lorem ipsum [[dolor]] sit amet, consectetur {{adipiscing}} elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Templates

Syntax highlighting varies greatly depending on spacing.

{{Code|<nowiki>{{Hieroglyph|2B|8A|7K|5D|7G|5G}}</nowiki>|eval=1|block=1|highlight=1}}
{{Hieroglyph|2B|8A|7K|5D|7G|5G}}
Hieroglyph Brown 2BHieroglyph Brown 8AHieroglyph Brown 7KHieroglyph Brown 5DHieroglyph Brown 7GHieroglyph Brown 5G
{{ Hieroglyph | 2B | 8A | 7K | 5D | 7G | 5G }}
Hieroglyph Brown 2BHieroglyph Brown 8AHieroglyph Brown 7KHieroglyph Brown 5DHieroglyph Brown 7GHieroglyph Brown 5G
{{Hieroglyph |2B |8A |7K |5D |7G |5G }}
Hieroglyph Brown 2BHieroglyph Brown 8AHieroglyph Brown 7KHieroglyph Brown 5DHieroglyph Brown 7GHieroglyph Brown 5G

Detached Eval

{{Code|<nowiki>{{distinguish|Hatred}}</nowiki>|detachEval=1|highlight=1}}
{{distinguish|Hatred}}
Not to be confused with Hatred.

Template Data

An experimental template that allows for formatting and display of wikitext code.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Wikitext1

The wikitext to display. Must be enclosed by <nowiki>.

Example
<nowiki>[[Block Tales Wiki|home page]]</nowiki>
Stringrequired
Show Wikitext Outputeval

Set to "1" to also show processed wiki output.

Example
1
Booleanoptional
Use Block Layoutblock

Set to "1" to use block elements instead of inline.

Example
1
Booleanoptional
Enable Synntax Highlightinghighlight

Set to "1" to enable syntax highlighting.

Example
1
Booleanoptional
ViewEditBlock Tales LogoWiki Templates NavigationWiki Templates Navigation
ViewEditTemplates
NoticesMainBigDataDeleteDisambiguationFanmadeInternalNavMaintenancePlagiarismRemovedRightTOCStubUnreleasedBestWrittenArticle
OtherLuaCSS
Infomation BoxesCardCard2CardSummonEnemyEnemy3EnemyDuoEnemyTrioGameCharacterItemLocationStatisticsStatisticsBP
Navigation BoxesCardsNavCardsNav/ActiveCardsNav/PassiveEnemiesNavEnemiesNav/BossesEnemiesNav/EnemiesItemsNavNavigationBoxMechanicsNavMiscNavModulesNavStoryProgressionNavWeaponsNav
InfoiconsStatusAnkhATK DownATK UpBigBigheadBurnChargeConfusionDEF DownDEF UpDetachmentDizzyDodgyEnchant BurnEnchant IceEnchant PoisonExhaustedFastFineFirst StrikeFocusedFrozenGuardedHalved DamageHP RegenInvisibleNRG RegenPeeling OrangePiercingPoisonSilencedSleepSlowSmallSP RegenSpikyStinkyStretchy
AttributesBall WeaknessBurn WeaknessChanges StanceDisables NRGDouble TurnsExplosiveFlamingFlyingInvincibility In NumbersItem-ResistantMelee DeflectingMobileProjectile DeflectingSpiky
StatArmorAttackBPDefenseHPNRGSPXP
OtherBroken ArmorBroken DefenseBUXFlavorItemsProjectileRobuxTIX
OtherAchievementTableCharacter NavbarCodeCombat LogHieroglyphQuote
ViewEditModules
ModulesNavboxTemplateStatTemplate