Template:Qud look: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="qud-box-wrapper {{#ifeq:{{{bordercolor|}}}| y |white-border|}}"><div class="qud-box"><span class="qud-box-header">{{Qud text|&amp;y{{{title|{{BASEPAGENAME}}}}}}}</span><div class="qud-box-content" style="font-weight:bold; line-height:{{{lineheight|1.5}}}em; padding:0em {{{padding|0}}}em;">{{#tag:poem|{{Qud text|&amp;y{{{text|text here}}}{{#ifeq:{{{notxml|no}}}|yes| {{!}}notxml}}}}}}</div><span class="qud-box-footer-left">{{#ifeq: {{{bottomtext|}}}| none ||{{Qud text|&amp;Y{{{bottomtext|Perfect}}}}}}}</span></div></div><noinclude>[[Category:Templates]]
<includeonly>{{#invoke: qud look | qudlook |title ={{{title|{{#titleparts:{{BASEPAGENAME}}}}}}}|text={{{text|Text here.}}}|bottomtext={{{bottomtext|}}}|image={{{image|}}}|bordercolor={{{bordercolor|c}}}}}</includeonly><noinclude>[[Category:Qud Templates]]
{| class="wikitable"
{| class="wikitable"
! title
! title
Line 5: Line 5:
|-
|-
! text
! text
| the text that is automatically parsed. uses XML parsing by default.
| the text that is automatically parsed. auto determines whether to use XML parsing or not.
|-
|-
! bottomtext
! bottomtext
Line 18: Line 18:
! padding
! padding
| left padding. defaults to 0em.
| left padding. defaults to 0em.
|-
! notxml
| set to yes if you want it to parse using notxml.
|}
|}
==Example==
==Example==


{{Qud look
{{Qud look
| text=Four deer legs paw nervously at the ground while human hands clutch the haft of a vinereaper. This creature's expressive face and muscular torso show a clear human lineage, but the thick fur over dappled flanks, the flickering, pointed ears, and the majestic antlers atop =pronouns.possessive= head tell a different story
| text=Four deer legs paw nervously at the ground while human hands clutch the haft of a vinereaper. This creature's expressive face and muscular torso show a clear human lineage, but the thick fur over dappled flanks, the flickering, pointed ears, and the majestic antlers atop =pronouns.possessive= head tell a different story.
| title=hindren villager}}
| title=hindren villager}}
</noinclude>
</noinclude>

Latest revision as of 14:17, 6 October 2021

title specifies the title of the chat box. defaults to pagename in off white (&y)
text the text that is automatically parsed. auto determines whether to use XML parsing or not.
bottomtext The text that appears on the bottom of the border. defaults to Perfect in white (&Y). setting it to 'none' makes it disappear entirely.
bordercolor if = y, change the border to offwhite(&y). defaults to Cyan. (&C)
lineheight takes a float and changes line height to that in em. defaults to 1.5em.
padding left padding. defaults to 0em.

Example

hindren villager

Four deer legs paw nervously at the ground while human hands clutch the haft of a vinereaper. This creature's expressive face and muscular torso show a clear human lineage, but the thick fur over dappled flanks, the flickering, pointed ears, and the majestic antlers atop =pronouns.possessive= head tell a different story.

Perfect